MediaWiki:Paypal.js
Da lemieradici.
Versione del 23 ott 2018 alle 22:25 di WikiSysop (Discussione | contributi)
alert("Paypal.js caricato"); paypal.Button.render({ env: 'sandbox', // Or 'sandbox' client: { sandbox: 'lemieradici2017@gmail.com', production: 'xxxxxxxxx' }, commit: true, // Show a 'Pay Now' button payment: function(data, actions) { return actions.payment.create({ payment: { transactions: [ { amount: { total: '1.00', currency: 'EUR' } } ] } }); }, onAuthorize: function(data, actions) { return actions.payment.execute().then(function(payment) { alert("Pagamento completato. Attendi mail di conferma"); // The payment is complete! // You can now show a confirmation message to the customer }); } }, '#paypal-button');