REST | 403 | No permission for the requested operation

Twinbird24
Contributor
Contributor

I have a website that uses express checkout. I followed the docs to get it set up, and everything worked fine up until now (the sandbox account could make/receive payments). Now, I'm not able to make API calls to the sandbox to test the PayPal checkout on my website. I get the following error message when I click the "PayPal Checkout" button: 

 

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

Correlation id: ef45a9e652c21, ef45a9e652c21

{
  "name": "PERMISSION_DENIED",
  "message": "No permission for the requested operation",
  "information_link": "https://developer.paypal.com/docs/api/payments/#errors",
  "debug_id": "ef45a9e652c21"
}

 

I've changed nothing with the code on my website, and I'm not sure what to do to prevent this error.

Login to Me Too
28 REPLIES 28

MTS_Justin
Moderator
Moderator
Hello,

Thanks for reporting this issue.

I've raised the issue internally and asked for it to be reviewed. It appears to be an issue with scopes and the system thinking you don't have the required scopes to process the payment request.

I'll update this thread once the issue is resolved or I have an update to share.

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Twinbird24
Contributor
Contributor

Thanks Justin, I look forward to the reply!

Login to Me Too

owenhere
Contributor
Contributor

I'm having the same issue. It was working a few days ago. I've made no coding or account changes.

 

{"name":"PERMISSION_DENIED","message":"No permission for the requested operation","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"d2fae13931d1a"}

Login to Me Too

oOcarzyOo
New Community Member

I am also facing this problem, don't know what is causing this please check mine also. This is the error response:

Uncaught Error: Error: Request to post https://www.sandbox.paypal.com/v1/payments/payment failed with 403 error. Correlation id: 36cd87412e22e, 36cd87412e22e

{
"name": "PERMISSION_DENIED",
"message": "No permission for the requested operation",
"information_link": "https://developer.paypal.com/docs/api/payments/#errors",
"debug_id": "36cd87412e22e"
}

 

Login to Me Too

Adam7288
Contributor
Contributor

Same here same exact error.

Login to Me Too

Twinbird24
Contributor
Contributor

While waiting for a reply from PayPal, you could use the sandbox key in this demo, it will work: https://developer.paypal.com/demo/checkout/#/pattern/client

Login to Me Too

merijn2222
Contributor
Contributor

Having the same error, spending hours and hours, but still no sollution

Login to Me Too

Chunks1
Contributor
Contributor

Having the same issue, works ok with demo ID or an ID that I created ages ago, but if I create a new app, the new ID gives the above error.

Login to Me Too

varadig
Contributor
Contributor

Same here, and I cant user the mSdk too:

 

Session Expired

------------

Please log in again to PayPal

 

W/paypal.sdk: fc SN:11 PayPal Debug-ID: 9523e62e6f3d3 [sandbox, 2.15.3;release]
E/paypal.sdk: request failure with http statusCode:401,exception:
E/paypal.sdk: Exception parsing server response
              org.json.JSONException: End of input at character 0 of 
                  at org.json.JSONTokener.syntaxError(JSONTokener.java:449)
                  at org.json.JSONTokener.nextValue(JSONTokener.java:97)
                  at com.paypal.android.sdk.cs.m(Unknown Source)
                  at com.paypal.android.sdk.fc.d(Unknown Source)
                  at com.paypal.android.sdk.ce.a(Unknown Source)
                  at com.paypal.android.sdk.ci.a(Unknown Source)
                  at com.paypal.android.sdk.cm.onResponse(Unknown Source)
                  at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135)
                  at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
                  at java.lang.Thread.run(Thread.java:762)
E/paypal.sdk: request failed with server response:
E/paypal.sdk: INTERNAL_SERVER_ERROR
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.