I only want a single Paypal button with Javascript SDK

adenadeau
New Community Member

I read through the Paypal documents and have the current code on my page (my id is x's)

 

<script src="https://www.paypal.com/sdk/js?client-id=xxxxxxxxx&components=buttons"></script>
<script>
paypal.Buttons({
style: {
layout: 'vertical',
color: 'gold',
shape: 'rect',
label: 'checkout'
}
}).render('#paypal-button-container');
</script>
<script>
paypal.Buttons({
createOrder: function(data, actions) {
// Set up the transaction
return actions.order.create({
purchase_units: [{
amount: {
value: '1000.00'
}
}]
});
}
}).render('#paypal-button-container');
</script>
<div id = "paypal-button-container"></div>

 

For some reason, I see the following images all on the page - https://ibb.co/WnZtMSX

 

Any assistance would be greatly appreciated!

 

Thanks

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.