thephpleague / omnipay-paypal

PayPal driver for the Omnipay PHP payment processing library
MIT License
295 stars 174 forks source link

Paypal Smart buttons #228

Open eileenmcnaughton opened 5 years ago

eileenmcnaughton commented 5 years ago

This is more documentation than an issue. Paypal has introduced an sdk intended to replace Paypal checkout.js on the front end.

As perhaps others have discovered - paypal documentation is labrythine ! The most important documentation on this change is

https://developer.paypal.com/docs/checkout/reference/upgrade-integration/#6-fix-deprecations

But they don't mention that they require a different token format (back to the old Express Checkout EC... instead of the Pay-ID that checkout.js used). I was setting up the transaction through RestAuthorizeRequest - with some patches that I did a previous PR on but for this last change in token format I've just hacked it in as I suspect a later Omnipay switch to the new Paypal php sdk will make more sense anyway