Saltar al contenido

Pagar inscripción a evento presencial


},

createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{"description":"Asistencia al evento en Madrid de Crecetrader Marzo 2023","amount":{"currency_code":"EUR","value":15}}] }); },

onApprove: function(data, actions) { return actions.order.capture().then(function(orderData) {

// Full available details console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));

// Show a success message within this page, e.g. const element = document.getElementById('paypal-button-container'); element.innerHTML = ''; element.innerHTML = '

Thank you for your payment!

';

// Or go to another URL: actions.redirect('thank_you.html');

}); },

onError: function(err) { console.log(err); } }).render('#paypal-button-container'); } initPayPalButton();

Configuración