paypal-recurring
paypal-recurring copied to clipboard
How to pass the currency while creating recurring payment profile
The amount mentioned is 10USD. How will we provide the currency options for other countries with different currencies.
In Paypal API it is specified but does the module have that option?
PAYMENTREQUEST_0_CURRENCYCODE (USD, MXN, etc.)
https://developer.paypal.com/docs/classic/express-checkout/gs_expresscheckout/
you can pass those as options to .authenticate(), like this .authenticate({ PAYMENTREQUEST_0_CURRENCYCODE: 'USD' })
there is a merge happening, thats happening here: https://github.com/jaybryant/paypal-recurring/blob/master/lib/Paypal.coffee#L91 afaik
I thought PayPal would automatically convert other currencies to the one set by the seller?