PayPal Buttons not visible

OssieINXS
Contributor
Contributor

Please help,

I have generated the PayPal buttons and placed the code on my webpage.

Using the default Client-id the buttons are visible on the page.

When i insert my Testing client id i have errors.

 


<div id="paypal-container-BESHZ2ERY639N"></div>
<script>
  paypal.HostedButtons({
    hostedButtonId: "BESHZ2ERY639N",
  }).render("#paypal-container-BESHZ2ERY639N")
</script>
 
Cheers Ossie

 

Login to Me Too
1 REPLY 1

MTS_Jennifer
Moderator
Moderator

Hello @OssieINXS 

Thank you for reaching out to the PayPal Sandbox Community.

Regarding your query about the PayPal Buttons and links, I would like to inform you that the button code cannot be altered or changed. The reason behind this is that the hosted button id is specific to an internal client id. Therefore, it is not possible to modify the client id that is provided.

However, if you wish to test this in the sandbox environment, you can recreate the button in your sandbox account. This will allow you to experiment with the button functionality and make any necessary adjustments without affecting your live account.

 

  • Log into your sandbox account at https://sandbox.paypal.com
  • Click on Pay & Get Paid
  • Click on Pay Links and Buttons
  • Fill in the details
  • Customize the button
  • Click Build It
  • Paste the code or the link to your webpage for testing

You will need to recreate the button in live when you are ready to go live by logging into your live https://paypal.com account and creating the button.

 

Thank you,

Jennifer

MTS

PayPal

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.