paypal.Button.render({ env: 'sandbox', client: { sandbox: 'demo_sandbox_client_id' }, style: { color: 'gold', // 'gold, 'blue', 'silver', 'black' size: 'medium', // 'medium', 'small', 'large', 'responsive' shape: 'rect' // 'rect', 'pill' }, payment: function (data, actions) { return actions.payment.create({ transactions: [{ amount: { total: '0.01', currency: 'USD' } }] }); }, onAuthorize: function (data, actions) { return actions.payment.execute() .then(function () { window.alert('Thank you for your purchase!'); }); } }, '#paypal-button');