{ "intent": "authorize", "payer": { "payment_method": "paypal" }, "redirect_urls": { "return_url": "https://thewebions.com/demos/khalid_bcu/vendor/paypal/rest-api-sdk-php/sample/payments/ExecutePayment.php?success=true", "cancel_url": "https://thewebions.com/demos/khalid_bcu/vendor/paypal/rest-api-sdk-php/sample/payments/ExecutePayment.php?success=false" }, "transactions": [ { "amount": { "currency": "USD", "total": "0.17" }, "description": "Payment description" } ] }
Got Http response code 401 when accessing https://api.sandbox.paypal.com/v1/oauth2/token.
{ "error": "invalid_authz_code", "error_description": "Authorization code not found in cache" }