https://www.paypal.com/sdk/js?client-id=sb&currency=AUD function initPayPalButton() { paypal.Buttons({ style: { shape: ‘rect’, color: ‘white’, layout: ‘vertical’, label: ‘buynow’, }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{“description”:”GQR Summer 2021″,”amount”:{“currency_code”:”AUD”,”value”:25}}] }); }, 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();