WIP: add ability to specify non-dollar currencies #37

Closed
asa wants to merge 6 commits from asa/capsul-flask:currency into main
First-time contributor

adds some settings that let you use different currencies, and replaces hardcoded references to dollars with either values from those settings or a generic "amount" as appropriate. currencies have a name (defaults to "dollar"), a symbol (defaults to "$"), the string that identifies them to stripe and btcpay (defaults to "usd" and "USD" respectively) and a conversion value that stripe needs because it wants to work in the smallest available units (defaults to 100, as in 100 cents to a dollar). details are in docs/configuration.md#currency.

adds some settings that let you use different currencies, and replaces hardcoded references to dollars with either values from those settings or a generic "amount" as appropriate. currencies have a name (defaults to "dollar"), a symbol (defaults to "$"), the string that identifies them to stripe and btcpay (defaults to "usd" and "USD" respectively) and a conversion value that stripe needs because it wants to work in the smallest available units (defaults to 100, as in 100 cents to a dollar). details are in docs/configuration.md#currency.
asa added 6 commits 2022-04-19 11:11:36 +00:00
asa changed title from add ability to specify non-dollar currencies to WIP: add ability to specify non-dollar currencies 2022-04-19 12:06:46 +00:00
Author
First-time contributor

oh hang on, when it merges with the changes since i forked there's a conflict between different schema migrations. let me add a commit for that and try again, sorry

oh hang on, when it merges with the changes since i forked there's a conflict between different schema migrations. let me add a commit for that and try again, sorry
asa closed this pull request 2022-04-19 12:10:01 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cyberia/capsul-flask#37
No description provided.