GET FEATURED ON OUR BLOG!
https://www.paypal.com/sdk/js?client-id=AUWl8h46cQb9bAkfvvWrQ633ppWEp901PCffLkd98EojvlysF3PSM2pwL-rMGoKvQaRH3Q_vTA4tWyRV¤cy=USD
function initPayPalButton() {
paypal.Buttons({
style: {
shape: ‘rect’,
color: ‘gold’,
layout: ‘vertical’,
label: ‘paypal’,
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{“description”:”Pay with Paypal or Debit/Credit Card. Powered by Paypal”,”amount”:{“currency_code”:”USD”,”value”:53,”breakdown”:{“item_total”:{“currency_code”:”USD”,”value”:50},”shipping”:{“currency_code”:”USD”,”value”:3},”tax_total”:{“currency_code”:”USD”,”value”:0}}}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
alert(‘Transaction completed by ‘ + details.payer.name.given_name + ‘!’);
});
},
onError: function(err) {
console.log(err);
}
}).render(‘#paypal-button-container’);
}
initPayPalButton();
Processing…
Success! You're on the list.
Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.
Recent Comments