Pass category on createOrder

cxxxv1
Contributor
Contributor

What is the proper way to pass a 'CATEGORY' for later use in reporting transactions. This is what I have so far:

 

paypal.Buttons({

fundingSource: paypal.FUNDING.PAYPAL,

createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: ppFEE
},
description: 'TICKET',
}]
});
},

onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
if (details.status == "COMPLETED"){

FinishRegistration();
}
});
}

}).render('#paypal-button');

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.