Upgrading
UPGRADING FROM V2 TO V3
There are few changes needed for upgrading from v2 to v3. but the bulk of changes can be done by leveraging the power of find and replace on your editor.
Change
^2.xx
(xx can vary) to^3.0
in yourcomposer.json
Run
composer update
. Of course, your app must meet the minimum requirements as well.Change
PayPalClient
namespace fromPayPal\Checkout\Http\PayPalClient
toPayPal\Http\PayPalClient
.Change environments namespace:
PayPal\Checkout\Environment\Environment
toPayPal\Http\Environment\Environment
.PayPal\Checkout\Environment\ProductionEnvironment
toPayPal\Http\Environment\ProductionEnvironment
.PayPal\Checkout\Environment\SandboxEnvironment
toPayPal\Http\Environment\SandboxEnvironment
.
Change requests namespace:
PayPal\Checkout\Http\OrderCreateRequest
toPayPal\Checkout\Requests\OrderCreateRequest
.PayPal\Checkout\Http\OrderCaptureRequest
toPayPal\Checkout\Requests\OrderCaptureRequest
.PayPal\Checkout\Http\OrderAuthorizeRequest
toPayPal\Checkout\Requests\OrderAuthorizeRequest
.PayPal\Checkout\Http\OrderShowRequest
toPayPal\Checkout\Requests\OrderShowRequest
.PayPal\Checkout\Http\PaypalRequest
toPayPal\Http\PaypalRequest
UPGRADING FROM V1 TO V2
There are no special requirements for upgrading from v1 to v2, other than changing ^1.xx (xx can vary) to ^2.0 in your composer. json and running composer update
. Of course, your app must meet the minimum requirements as well.
Last updated