Differenze tra le versioni di "MediaWiki:Paypal.js"
Da lemieradici.
Riga 5: | Riga 5: | ||
client: { | client: { | ||
− | sandbox: ' | + | sandbox: 'lemieradici2017@gmail.com', |
production: 'xxxxxxxxx' | production: 'xxxxxxxxx' | ||
}, | }, |
Versione attuale delle 22:25, 23 ott 2018
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');