Pass category on createOrder
cxxxv1
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-08-2023
01:58 PM
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');
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.
Related Content
- Prevent changing shipping address via SET_PROVIDED_ADDRESS not working. Orders V2 Advanced Checkout in REST APIs
- How to pass "amount" using @paypal/react-paypal-js in REST APIs
- Add Others data in SDKs
- Error: "Unable to change shipping method. Please try again." in PayPal popup in REST APIs
- Payment not automatically being captured, funds not transferred in Sandbox Environment