Open Erseni opened 4 years ago
createOrder={(data, actions) => { return actions.order.create({ purchase_units: [{ description: 'Payment for ' + name + '.', payee: { email_address: 'yyy@xxx.net', }, amount: { currency_code: 'EUR, value: (amount * 0.9).toFixed(2), }, payment_instruction : { disbursement_mode: 'INSTANT', platform_fees: [ { amount: { currency_code: currency, value: (amount * 0.1).toFixed(2), }, } ], }, }], }); }}