thephpleague / omnipay-paypal

PayPal driver for the Omnipay PHP payment processing library
MIT License
299 stars 176 forks source link

PayPal_Rest - /v1/payments endpoint is deprecated #227

Open Alofoxx opened 5 years ago

Alofoxx commented 5 years ago

PayPal_Rest - PayPal developer docs say "Deprecation notice: The /v1/payments endpoint is deprecated. Use the /v2/payments endpoint instead." Payments API Docs

Are there any plans to upgrade the rest calls to /v2/? Is it necessary? Is anyone other than myself interested in upgrading PayPal_Rest gateway? I'm thinking about working on it.

eileenmcnaughton commented 5 years ago

Note the paypal documentation is confusing - the key thing is to add a new composer entry - composer require paypal/paypal-checkout-sdk 1.0.0

Then their functions become available with use https://developer.paypal.com/docs/checkout/reference/server-integration/setup-sdk/#set-up-the-environment

eileenmcnaughton commented 5 years ago

As an aside I've just switched some code to use 'SmartButtons' which replaced checkout.js - I managed to do it with only my existing checkout.js hacks except in the function RestAuthorizeRequest::getTransactionReference - where the expected token format has changed and I just kinda threw my hands up & hacked my branch

Comments here

stevethomas commented 5 years ago

We did a partial implementation of v2 here: https://github.com/codinglabsau/omnipay-paypal

It supports the completePurchase method only, but may be enough for someone to pick and fill in the missing pieces.

Wirone commented 4 years ago

Billing Plans are deprecated, new billing Plans/Subscriptions should be used instead. Is there a plan for implementing it?