Hi everyone, This is the code I use to execute the transaction. function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'paypal',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{"description":"My Item","amount":{"currency_code":"EUR","value":10}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
var url = 'myscript.php;
actions.redirect(url);
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
} This is the code I use to execute the transaction. The redirect works, but I don't receive the transactionID (tx) value via GET. As a php script I am using this: https://github.com/paypal/pdt-code-samples/blob/master/paypal_pdt.php How can I get the transactionID?
... View more