how do I pass custom data to paypal js sdk?

GIO123
Contributor
Contributor
paypal
.Buttons({
createOrder: function(data, actions) {
// Set up the transaction
return actions.order.create({
purchase_units: [
{
amount: {
value: self.amount,
}
}
 
 
This is what I use so far. I want to pass 2 custom fields. how is this possible?

 

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.