FEATURE: Add support for CHF currency (#254)
Stripe supports the Swiss Franc so we can add support for it. https://meta.discourse.org/t/316003
This commit is contained in:
parent
d82b34080b
commit
1811b5955d
|
@ -53,6 +53,8 @@ module DiscourseSubscriptions
|
|||
"S$"
|
||||
when "zar"
|
||||
"R"
|
||||
when "chf"
|
||||
"CHF"
|
||||
else
|
||||
"$"
|
||||
end
|
||||
|
|
|
@ -43,6 +43,7 @@ export default class AdminPluginsDiscourseSubscriptionsProductsShowPlansShowCont
|
|||
{ id: "SGD", name: "SGD" },
|
||||
{ id: "JPY", name: "JPY" },
|
||||
{ id: "ZAR", name: "ZAR" },
|
||||
{ id: "CHF", name: "CHF" },
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,9 @@ export function formatCurrency([currency, amount]) {
|
|||
case "ZAR":
|
||||
currencySign = "R";
|
||||
break;
|
||||
case "CHF":
|
||||
currencySign = "CHF";
|
||||
break;
|
||||
default:
|
||||
currencySign = "$";
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ discourse_subscriptions:
|
|||
- DKK
|
||||
- SGD
|
||||
- ZAR
|
||||
- CHF
|
||||
discourse_subscriptions_campaign_enabled:
|
||||
client: true
|
||||
default: false
|
||||
|
|
Loading…
Reference in New Issue