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

Add support for changing currency in Settings #19

Merged
merged 1 commit into from
Jan 26, 2013
Merged

Add support for changing currency in Settings #19

merged 1 commit into from
Jan 26, 2013

Conversation

huxley
Copy link
Contributor

@huxley huxley commented Jan 21, 2013

Stripe is now available in Canada so vendors are now able to choose to process in either American ("usd") and Canadian ("cad") currency.

At the moment, "usd" is hard-coded as the currency variable which causes errors if your account is set to "cad". I've added currency as one of the variables in PAYMENT_PLANS allowing customers processing in Canadian dollars to specify "cad".

Stripe only allows one currency per account (this might change in the long term), so an alternative way to achieve this might be to set a single setting for PAYMENTS_CURRENCY, but I opted to minimize the number of SETTINGS and instead removed the hard-coding.

Stripe is now available in Canada so you are now able to choose to process in either American ("usd") and Canadian ("cad") currency.

At the moment, "usd" is hard-coded as the currency variable in several spots which causes errors if your account is set to "cad". These changes allow the currency to be set as one of the variables in PAYMENT_PLANS.
paltman added a commit that referenced this pull request Jan 26, 2013
Add support for changing currency in Settings
@paltman paltman merged commit 506b455 into pinax:master Jan 26, 2013
@paltman
Copy link
Member

paltman commented Jan 26, 2013

@huxley thanks for the awesome patch

blueyed pushed a commit to blueyed/pinax-stripe that referenced this pull request Oct 24, 2017
* Add discount objects

* Add coupon webhook handlers

* Change Coupon id unique-togetherness
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

Successfully merging this pull request may close these issues.

None yet

2 participants