You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: UPGRADE.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
## 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.
3
3
- 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)
5
5
- The package is renamed from `omnipay/omnipay` to `league/omnipay` and no longer installs all gateways by default.
6
6
## Upgrade Gateways from 2.x to 3.x
7
7
@@ -13,7 +13,7 @@ The primary difference is the HTTP Client. We are now using HTTPlug (http://http
13
13
- No need to call `$request->send()`, requests are sent directly.
14
14
- Instead of `$client->createRequest(..)` you can create+send the request directly with `$client->request(..)`.
15
15
- 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.
17
17
-`$response->json()` and `$response->xml()` are gone, but you can implement the logic directly.
18
18
- An HTTP Client is no longer added by default by `omnipay/common`, but `omnipay/omnipay` will add Guzzle.
19
19
Gateways should not rely on Guzzle or other clients directly.
0 commit comments