Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ravi-patwal opened this issue Aug 13, 2015 · 3 comments
Open

Comments

@ravi-patwal
Copy link

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
Copy link

linus-amg commented Jun 21, 2016

PAYMENTREQUEST_0_CURRENCYCODE (USD, MXN, etc.)

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

@linus-amg
Copy link

linus-amg commented Jun 21, 2016

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants