Site icon Digital Virtual Services

Checkout Page

Checkout Page


},

createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{"description":"Price for a complete course","amount":{"currency_code":"USD","value":100}}] }); },

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

Exit mobile version