https://www.paypal.com/sdk/js?client-id=ARcyWdz7WNvoOU398tzWjVcI1UGX-SFvlOZu8nAFYiu4nonpkbAqgwk8R8fvrvwnc0DddGZXD_PRVvIy&currency=USD paypal.Buttons({ style: { shape: ‘rect’, color: ‘silver’, layout: ‘vertical’, label: ‘paypal’, }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ amount: { value: ‘0’ } }] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(details) { alert(‘Transaction completed by ‘ + details.payer.name.given_name + ‘!’); }); } }).render(‘#paypal-button-container’);

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