Different Client IDs, one works the other doesn't, why?

Chunks1
Contributor
Contributor

I am testing an integration using this code:

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

 

This works fine using some old API credentials I setup, but if I create a new app then the new credentials don't work.

Can you not just change the API credentials in the code?

What am I missing here?

 

My original credentials (sandbox and live) work ok, but these I use to test integrations, I need my client to create an a REST API app and to send me the credentials, this didn't work.

So i thought, i'd create another app to see if I could get it working using the new client ID's, but it doesn't work.

 

I receive the following errors:

POST https://www.sandbox.paypal.com/v1/payments/payment 403 (Forbidden)

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

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

 

Anyone any idea whats wrong?

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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