How to remove PayPal Buy Now button from sandbox to go live?

Winter101
Contributor
Contributor

I created the new smart Buy Now button and embedded HTML into my website. Looks good... but doesn't work. When I click and try to log in - it doesn't recognize my credentials. Then I noticed the URL starts with "https://www.sandbox.paypal.com/checkoutnow?sessionID....etc." Does it mean my button is in the sandbox? How do I go live? I tried PayPal chat ... but it's useless.

Login to Me Too
3 REPLIES 3

GCWS
New Community Member

Definitely useless to find answers here. I had same exact problem. 

Login to Me Too

MTS_Justin
Moderator
Moderator

Hello,

If you create any payments standard button (buy now, add to cart, donation, subscription) in our sandbox environment, it's use is limited to our sandbox environment, you would need to re-create the button within a "live" account using the same settings.

This doesn't apply to smart payment buttons, where you can just substitute the sandbox "client id" for your live "client id" within the button code.

Thanks !


Was my post helpful? If so, please give me a kudos!
Login to Me Too

JSchouten
New Community Member

Hi,

 

I just solved a PayPal button/sandbox issue for a client today. If you use the PayPal button generating page (https://www.paypal.com/buttons/), you will most likely need to set up an App in the PayPal Developer Dashboard in order to get a Live Client ID, even if PayPal makes it look like you don't have to do anything else.

 

Your button script might look different than this one, but this is most likely the source of your problem:
<script src="https://www.paypal.com/sdk/js?client-id=sb&enable-funding=venmo&currency=USD" data-sdk-integration-source="button-factory"></script>

 

That "sb" stands for sandbox.

 

Here's what we did:

  1. Go to the PayPal Developer Dashboard: https://developer.paypal.com/developer/applications
  2. Click on "My Apps & Credentials" (if you're not already there after logging in)
  3. Make sure the toggle at the top of the page is set to "Live"
  4. Click "Create App"
  5. Give the app a name, then click "Create App"
  6. Use the Client ID that displays for this app to replace the "sb" in your button script.
    1. The script tag my client had delivered to me using the PayPal button generator looked like this: 
      <script src="https://www.paypal.com/sdk/js?client-id=sb&enable-funding=venmo&currency=USD" data-sdk-integration-source="button-factory"></script>
    2. Afterward, it looked like this:
      <script src="https://www.paypal.com/sdk/js?client-id=YOURCLIENTIDHERE&enable-funding=venmo&currency=USD" data-sdk-integration-source="button-factory"></script>

Again, I could not find this ANYWHERE in PayPal's documentation, but it worked for me. I hope this helps.

Login to Me Too

Haven't Found your Answer?

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