(try again) add ability to specify non-dollar currencies #38

Open
asa wants to merge 9 commits from asa/capsul-flask:main into main
asa commented 8 months ago

take two, after a problem in #37

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.

take two, after a problem in https://git.cyberia.club/cyberia/capsul-flask/pulls/37 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 9 commits 8 months ago
Owner

Hey, thanks for this, we are looking at it.

Hey, thanks for this, we are looking at it.
This pull request has changes conflicting with the target branch.
capsulflask/cli.py
capsulflask/payment.py
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: cyberia/capsul-flask#38
Loading…
There is no content yet.