(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/payment.py
You can also view command line instructions.

Step 1:

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

Step 2:

Merge the changes and update on Forgejo.
git checkout main
git merge --no-ff asa-main
git push origin main
Sign in to join this conversation.
No reviewers
No Label
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.