javascript - Set description in paypal API (Client SITE) -
i trying set description payment. code example:
// make call rest api create payment return actions.payment.create({ payment: { transactions: [ { amount: { total: '<?= $amount / 100 ?>', currency: 'eur' }, description: {'the payment transaction description.'} } ] } }); },
it not work though. got example here: https://developer.paypal.com/docs/api/payments/
can set description on clientside? without description payment works fine.
you need remove {
, }
around description string.
Comments
Post a Comment