- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I created a new business account and had Paypal automatically generate the code for the Paypal buttons. I integrate the code/buttons into my website and it works fine with the Sandbox accounts. I can't figure out how to update it for live Production. If I look in my javascript/html code, I don't see anything that points back to paypal that I can update. In the Paypal Developer website, in the "My apps & credentials" section, I create an app on the Live tab. Within those credentials, I see an email id, a client id, and a secret. I have no idea where to put that into my code. My code always runs against the Sandbox. I also saw somewhere in the Help that I also need to point to the Paypal production server instead of the Sandbox, but I wouldn't know where to make that change either. Paypal phone support said call back during business hours (which it is), Paypal text support said to wait for several hours. Hope someone out there can help!
Thanks!
Jon
Solved! Go to Solution.
- Labels:
-
PayPal HTML Buttons
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I figured out my issue. The client id is embedded in the url within the js src string in the auto-generated button code. When I was using the sandbox, it used:
https://www.paypal.com/sdk/js?client-id=sb&enable...
I didn't realize sb meant sandbox at first. All I had to do was replace sb with my client id that gets generated when I create the app and it worked. That's what I couldn't find online.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Dashboard / My app and credentials, switch from sandbox to live and here add a new app.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I figured out my issue. The client id is embedded in the url within the js src string in the auto-generated button code. When I was using the sandbox, it used:
https://www.paypal.com/sdk/js?client-id=sb&enable...
I didn't realize sb meant sandbox at first. All I had to do was replace sb with my client id that gets generated when I create the app and it worked. That's what I couldn't find online.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Sandbox account collect billing and shipping address in Sandbox Environment
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment
- p is not a function error using the example downloaded from Paypal in SDKs
- Not receiving any confirmation emails for sandbox account in Sandbox Environment