Permission denied (403) error with Express Checkout

formadev
Contributor
Contributor

I am setting up Express Checkout, but these past 2 days I am receiving a Permission denied (403) error when I click the PayPal button. It is supposed to launch the pop-up window for logging in, however it auto-closes after a second, and it returns an error in the console saying:

 

Request to post https://www.sandbox.paypal.com/v1/payments/payment failed with 403 error.

"name": "PERMISSION_DENIED",

"message": "No permission for the requested operation"

 

A few days into the build, this was working, but now it is always that error. I created a PayPal REST API app here:

 

https://developer.paypal.com/developer/applications/create

 

... and I am using the Client IDs from the sandbox and from the live tab. If I switch the setting "env" to "production", I get the same error.

 

To make sure this is not an error in my code, I run the test here:

 

https://developer.paypal.com/demo/checkout/#/pattern/client

 

... by replacing the "sandbox" and "production" values with my own. But it is still the same, when I click on the button, it always returns the "permission denied" error, like there is something wrong with the account's permissions.

 

I spent a couple of days looking through the account settings, trying to find if something was wrong, or disabled, or if some info is missing, but I can't find the cause there. I have run out of options.

 

Can you please help me?

Thank you!

Login to Me Too
10 REPLIES 10

JaishriW
Member
Member

I resolved my issue by Base64 encoding of (client id and secret key)
Basic+base64encoding(clientKey+:+secretkey)

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.