Skip to content

Commit 18ecec8

Browse files
authored
Update UPGRADE.md
Fix a couple of typos
1 parent 4a3c9b0 commit 18ecec8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UPGRADE.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Upgrade apps from 2.x to 3.x
2-
- The `redirect()` method no calls `exit()` after sending the content. This is up to the developer now.
2+
- The `redirect()` method no longer calls `exit()` after sending the content. This is up to the developer now.
33
- It is now possible to use `setAmountInteger(integer $value)` and `setMoney(Money $money)`
4-
- HTTPPlug is used. Guzzle will be installed when using `omnipay/omnipay`, otherwise you need to required your own implementation (see http://docs.php-http.org/en/latest/clients.html)
4+
- HTTPPlug is used. Guzzle will be installed when using `omnipay/omnipay`, otherwise you need to require your own implementation (see http://docs.php-http.org/en/latest/clients.html)
55
- The package is renamed from `omnipay/omnipay` to `league/omnipay` and no longer installs all gateways by default.
66
## Upgrade Gateways from 2.x to 3.x
77

@@ -13,7 +13,7 @@ The primary difference is the HTTP Client. We are now using HTTPlug (http://http
1313
- No need to call `$request->send()`, requests are sent directly.
1414
- Instead of `$client->createRequest(..)` you can create+send the request directly with `$client->request(..)`.
1515
- When sending a JSON body, convert the body to a string with `json_encode()` and set the correct Content-Type.
16-
- The response is a PSR-7 Response object. You can call `$response->getBody()->getContents()` to get the body as string.
16+
- The response is a PSR-7 Response object. You can call `$response->getBody()->getContents()` to get the body as a string.
1717
- `$response->json()` and `$response->xml()` are gone, but you can implement the logic directly.
1818
- An HTTP Client is no longer added by default by `omnipay/common`, but `omnipay/omnipay` will add Guzzle.
1919
Gateways should not rely on Guzzle or other clients directly.

0 commit comments

Comments
 (0)