Submit payment ID for CSV download

Icemarin
Member
Member

What am I doing wrong? Payment only works I cannot transfer an ID to PayPal. I need something so that I can assign the payment. The best is a parameter that is then specified in the CSV (sales download).

id -> doesn't work

invoice_id -> doesn't work

 


<script>
paypal.Buttons({

createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
id: "12345",
amount: {
value: '10.00'
},
invoice_id: 'test12345',
}],

application_context: {
shipping_preference: 'NO_SHIPPING',
},

});
},

onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
PayOK();
});
},

style: {
color: 'blue'
}

}).render('#paypal-button-container');
</script>

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.