Invalid client-id for production
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just started receiving this error when loading the script in our development environment.
Uncaught Error: Invalid client-id for production: AZDxjDScFpQtjWTOUtWKbyN_bDt4OgqaF4eYXlewfBP4-8aqX3PiV8e1GWU6liB2CUXlkA59kJXE7M6R
I'm using the following script src address:
https://www.paypal.com/sdk/js?disable-funding=credit,card&client-id=sb
My understanding of the recent documentation is that the environment is determined from the client-id now, and that sb is a valid sandbox id.
- Labels:
-
API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the same problem and it really hinders my progress integrating paypal in my project.
It just spontaneously starts giving this error, and spontaneously stops, for no apparent reason.
This is the url I use:
The problem does not happen on other computers I was able to test. Just on my specific computer. Using Google Chrome's Incognito mode or clearing the browser cache does not fix the problem. It's hardly Ip-related because both computers are on the same local network, so paypal server sees the same Ip address for both computers. If I change the client Id for 'sb', the link works. If I change intent=authorize for intent=capture, the link works.
For now I change the client id to 'sb' as soon as the problem happens, but I would appreciate fixing the problem for good.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Just started developing with PayPal
According to instruction it should work with my sandbox id.
Sadly it doesn't!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- PayPal integration with Next, Lambda and API Gateway - 400 Invalid Request in Sandbox Environment
- Error creating an order for cupture - Issues with Authorization header in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- Issue with Payment Processing - Token Not Valid (Status Code 400) in REST APIs
- Production account value in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- This currency cannot be accepted for this recipient's account Error During PayPal-Pabbly Integration in REST APIs