Hi, i have the same problem with this config paypal.Buttons({ createOrder: (data, actions) => { return actions.order.create({ 'purchase_units': [{ 'amount': { 'value': costOfPlans[this.plan] } }] }) }, onApprove: (data, actions) => { return actions.order.capture().then(function (details) { alert('Transaction completed: ' + data.orderID); return fetch(process.env.API_URL + '/paypal/verifyOrder', { method: 'post', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ orderID: data.orderID }) }) }) } }).render('#paypal-button')
... View more