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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -