Pay here

https://www.paypal.com/sdk/js?client-id=AV9JmtST89Hh52dqCHPdGgDO8UqZyXFsvnioJQxaqBeNu5ghVsx5cq_Ca88eq2mF10njSAasKp4NQDvm&enable-funding=venmo&currency=USD

function initPayPalButton() {
paypal.Buttons({
style: {
shape: ‘pill’,
color: ‘black’,
layout: ‘vertical’,
label: ‘buynow’,

},

createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{“description”:”You’ll get (via🤫usps) a password and addrees to a website full of downloadable memes , clips and even whole movies”,”amount”:{“currency_code”:”USD”,”value”:1.08,”breakdown”:{“item_total”:{“currency_code”:”USD”,”value”:1},”shipping”:{“currency_code”:”USD”,”value”:0},”tax_total”:{“currency_code”:”USD”,”value”:0.08}}}}]
});
},

onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {

// Full available details
console.log(‘Capture result’, orderData, JSON.stringify(orderData, null, 2));

// Show a success message within this page, e.g.
const element = document.getElementById(‘paypal-button-container’);
element.innerHTML = ”;
element.innerHTML = ‘

Thank you for your payment!

‘;

// Or go to another URL: actions.redirect(‘thank_you.html’);

});
},

onError: function(err) {
console.log(err);
}
}).render(‘#paypal-button-container’);
}
initPayPalButton();

Published by 𝔍𝔲𝔰𝔱𝔦𝔫 𝔏𝔲𝔟𝔦𝔫

▓▒▇▅▃▂/|▂▃▅▇▒▓ █║▌│█│║▌║││█║▌ ║█║ ⁹o⁴LubinJustin ║█║

Leave a comment

Design a site like this with WordPress.com
Get started