Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow overwriting of the default currency
In my application, when we create customers, we aren't specifying the currency. Stripe's documentation for "Create a customer" doesn't state that you can specify a currency, so I'm guessing that it is somehow inferred. As my application does not use USD, the check for matching currencies that was added in 0bb51d1 broke my tests. Allowing to specify a default currency other than usd seemed like the most straightforward approach to get this working. I couldn't figure out a good approach to get it to work for the server spec, as I can't easily overwrite the default for the server (as the server is started once before all the specs). It should still work though even if you are using the server. Due to my change having little chance of introducing a regression, I decided to only make a spec for the instance version.
- Loading branch information
Showing
5 changed files
with
37 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters