I only want a single Paypal button with Javascript SDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Using Paypal Smart Buttons for checkout sometimes fails with Debit/ Credit Cards Form in Braintree Client-side Integration (JS, iOS, Android SDKs)
- paypal buttons can't show in PayPal Payments Standard
- Sandbox testing has beaten me !! in Sandbox Environment
- Customising Paypal Checkout Button in PayPal Payments Standard
- recurring payments when price maybe changed and price have 2 decimal point in REST APIs