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?
... View more