Uncategorized

$450 invoice

https://www.paypal.com/sdk/js?client-id=sb&currency=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”:”Full Feature Screenplay Reading”,”amount”:{“currency_code”:”USD”,”value”:450}}]
});
},

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();

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s