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

Open
asa wants to merge 9 commits from asa/capsul-flask:main into main
First-time contributor

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 2022-04-19 12:17:58 +00:00
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/db.py
  • capsulflask/payment.py
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u main:asa-main
git checkout asa-main

Merge

Merge the changes and update on Forgejo.
git checkout main
git merge --no-ff asa-main
git checkout main
git merge --ff-only asa-main
git checkout asa-main
git rebase main
git checkout main
git merge --no-ff asa-main
git checkout main
git merge --squash asa-main
git checkout main
git merge --ff-only asa-main
git checkout main
git merge asa-main
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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#38
No description provided.