cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid client-id for production

New Community Member

Invalid client-id for production

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.

4 REPLIES 4
New Community Member

Re: Invalid client-id for production

It suddenly started working again.

Member

Re: Invalid client-id for production

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:

 

https://www.paypal.com/sdk/js?client-id=AbOmm0jkCkIlj5rAwQGoqggOt5wmJ3AV1nUxrqa-YWbrpYyHB9Sfm70xwFkQ...

 

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.

Member

Re: Invalid client-id for production

Hi,

 

Just started developing with PayPal
According to instruction it should work with my sandbox id.

Sadly it doesn't!

 

Member

Re: Invalid client-id for production

I found one problem - created business account instead of personal