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

Closed
asa wants to merge 6 commits from asa/capsul-flask:currency into main
asa commented 1 year ago

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 1 year ago
asa changed title from add ability to specify non-dollar currencies to WIP: add ability to specify non-dollar currencies 1 year ago
asa commented 1 year ago
Poster

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 1 year ago
Please reopen this pull request to perform a merge.
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-currency main
git pull currency

Step 2:

Merge the changes and update on Forgejo.
git checkout main
git merge --no-ff asa-currency
git push origin main
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 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#37
Loading…
There is no content yet.