jockster / paypal-recurring

node.js package that makes recurring payments with PayPal easier to manage
MIT License
38 stars 15 forks source link

How to pass the currency while creating recurring payment profile #11

Open ravi-patwal opened 9 years ago

ravi-patwal commented 9 years ago

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?

linus-amg commented 8 years ago

PAYMENTREQUEST_0_CURRENCYCODE (USD, MXN, etc.)

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

linus-amg commented 8 years ago

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

nhabbott commented 8 years ago

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