paypal-recurring icon indicating copy to clipboard operation
paypal-recurring copied to clipboard

How to pass the currency while creating recurring payment profile

Open ravi-patwal opened this issue 9 years ago • 3 comments

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?

ravi-patwal avatar Aug 13 '15 10:08 ravi-patwal

PAYMENTREQUEST_0_CURRENCYCODE (USD, MXN, etc.)

https://developer.paypal.com/docs/classic/express-checkout/gs_expresscheckout/

linus-amg avatar Jun 21 '16 19:06 linus-amg

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

linus-amg avatar Jun 21 '16 19:06 linus-amg

I thought PayPal would automatically convert other currencies to the one set by the seller?

nhabbott avatar Jun 22 '16 05:06 nhabbott