FEATURE: Add support for PLN currency (#258)
Stripe supports the Polish złoty so we can add support for it. https://meta.discourse.org/t/342040
This commit is contained in:
parent
2c46e3cffb
commit
02ba5e1ff2
|
@ -55,6 +55,8 @@ module DiscourseSubscriptions
|
||||||
"R"
|
"R"
|
||||||
when "chf"
|
when "chf"
|
||||||
"CHF"
|
"CHF"
|
||||||
|
when "pln"
|
||||||
|
"zł"
|
||||||
else
|
else
|
||||||
"$"
|
"$"
|
||||||
end
|
end
|
||||||
|
|
|
@ -44,6 +44,7 @@ export default class AdminPluginsDiscourseSubscriptionsProductsShowPlansShowCont
|
||||||
{ id: "JPY", name: "JPY" },
|
{ id: "JPY", name: "JPY" },
|
||||||
{ id: "ZAR", name: "ZAR" },
|
{ id: "ZAR", name: "ZAR" },
|
||||||
{ id: "CHF", name: "CHF" },
|
{ id: "CHF", name: "CHF" },
|
||||||
|
{ id: "PLN", name: "PLN" },
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,9 @@ export function formatCurrency([currency, amount]) {
|
||||||
case "CHF":
|
case "CHF":
|
||||||
currencySign = "CHF";
|
currencySign = "CHF";
|
||||||
break;
|
break;
|
||||||
|
case "PLN":
|
||||||
|
currencySign = "zł";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
currencySign = "$";
|
currencySign = "$";
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ discourse_subscriptions:
|
||||||
- SGD
|
- SGD
|
||||||
- ZAR
|
- ZAR
|
||||||
- CHF
|
- CHF
|
||||||
|
- PLN
|
||||||
discourse_subscriptions_campaign_enabled:
|
discourse_subscriptions_campaign_enabled:
|
||||||
client: true
|
client: true
|
||||||
default: false
|
default: false
|
||||||
|
|
Loading…
Reference in New Issue