How can a change a smart pay button from sandbox to live?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not sure I'm in the right group, seems way too technical for me, but here goes...
I created a smart pay button using my live personal account. I copied the code and put it on my website. I noticed it's in sandbox mode, I have no idea why since I didn't use a sandbox account to create the button. How can I turn it into live mode?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @myrmicat,
Thank you for contacting PayPal community.
Our sincere apologies for the inconvenience caused.
By default, PayPal system will generate Smart button code in Sandbox environment and merchant can test the integration using sandbox accounts.
Merchants need to create LIVE REST API credentials and pass/enter the LIVE API credentials in the Smart button code in order to receive payments in LIVE production.
I request to please follow the below steps to create LIVE REST API credentials via your PayPal account.
Login to https://developer.paypal.com/ >> My apps & credentials >> toggle "LIVE" >> create "App" >> fill required details >> you can able to access your LIVE REST API Credentials(Client ID & Secret).
Guide link for REST API Credentials - https://developer.paypal.com/api/rest/#get-credentials
Once you create LIVE REST API credentials (Client ID & Secret), please enter/pass the Client ID in your button code as below.
Present button code implemented on your website, pointing to sandbox :
<script src="https://www.paypal.com/sdk/js?client-id=sb¤cy=USD" data-sdk-integration-source="button-factory"></script>
Pass the LIVE "Client_ID" as below to process payments in LIVE :
<script src="https://www.paypal.com/sdk/js?client-id=Enter_the_Client_ID_value_here¤cy=USD" data-sdk-integration-source="button-factory"></script>
I request to please use the updated button code on your website.
I request to please process a test payments via card which is not linked to your PayPal account. Since, merchant can't process self payments.
Thank you so much for your patience and understanding.
Sincerely,
Chiranjeevi
PayPal/Braintree MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- changing prices on paypal buttons in PayPal Payments Standard
- credit is not eligible unless vault=true in SDKs
- permission_denied response in call to patch order when paying by Card in Braintree Client-side Integration (JS, iOS, Android SDKs)
- Sandbox isnt working in REST APIs