How to send "Instructions to merchant" while creating a order from client side
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have created a PayPal client-side code and want to send a value within the order.
createOrder: function (data, actions) {
//Creates the order
return actions.order.create({
application_context: {
//Disables shipping information
shipping_preference: "NO_SHIPPING"
},
purchase_units: [
{
note_to_payer: "Sporting Goods",
amount: {
currency_code: "USD",
value: total.value,
breakdown: {
item_total: {
currency_code: "USD",
value: total.value
},
shipping: {
currency_code: "USD",
value: 0
}
}
},
items: [
{
name: "TestProduct 1",
unit_amount: {
currency_code: "USD",
value: 50.0
},
quantity: "1",
sku: "001"
},
{
name: "TestProduct 2",
unit_amount: {
currency_code: "USD",
value: 80.0
},
quantity: "1",
sku: "002"
}
]
}
]
});
},
I want to pass a note for an order in the above code that will be available on invoice details. How can I do that?
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Why is PayPal forcing me to offer Venmo? in PayPal Payments Standard
- Authorization being forced prior to Paypal Button becoming available. in PayPal Payments Standard
- Getting an error when trying to create an order. in REST APIs
- Add to cart buttons create multiple cart tabs in PayPal Payments Standard
- in sandbox, cannot create a "but now" button in Sandbox Environment