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 call to PayPal’s verify-webhook-signature API. It also includes some files that aren’t within the
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 get two errors: This error underlines the fetch in my front-end. Here is my route file: Here is my PayPalController Method: Here is my front-end .blade.view file: I have edited the PayPalClient.php file with my
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 valid? Am I doing something