Smart Payment Buttons render error

VasilisaA
New Community Member

I added the PayPal JavaScript SDK to my web site:

<script src="https://www.paypal.com/sdk/js?client-id=SB_CLIENT_ID"></script // Required. Replace SB_CLIENT_ID with your sandbox client ID. 

 

Added conteiner for button:

<div id="paypal-button-container"></div>

 

After rendered the PayPal Smart Payment Button and received error 'paypal is  not defined':

<script> paypal.Buttons().render('#paypal-button-container'); </script>

 

what I'm doing wrong?

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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