PayPal’s documentation is pretty bad, but they do have a PHP notification verification sample here which mentions: PHP Currently does not support certificate chain validation, that is necessary to validate webhook directly, from received data. To resolve that, we need to use alternative, which makes a c…
Tag: paypal-rest-sdk
How do I integrate PayPal Smart Button in Laravel 8?
I am trying to integrate PayPal Smart buttons in my Laravel 8 Website. These are the documentation I am using: https://developer.paypal.com/docs/checkout/integrate/ https://developer.paypal.com/docs/checkout/reference/server-integration/set-up-transaction/ https://github.com/paypal/Checkout-PHP-SDK Issue: I g…
PayPal Orders v2 create returning 422 (Unprocessable Entity) when passing amount discount
I’m using the PayPal REST SDK client side JavaScript to create an order and I have the below code: This returns the aforementioned error and status code 422 (Unprocessable Entity). This chunk of the code appears to be the problem, if it is removed the error goes away: I checked and this appears to be va…