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:
Blake Erickson 2024-12-17 14:58:05 -07:00 committed by GitHub
parent 2c46e3cffb
commit 02ba5e1ff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 0 deletions

View File

@ -55,6 +55,8 @@ module DiscourseSubscriptions
"R"
when "chf"
"CHF"
when "pln"
""
else
"$"
end

View File

@ -44,6 +44,7 @@ export default class AdminPluginsDiscourseSubscriptionsProductsShowPlansShowCont
{ id: "JPY", name: "JPY" },
{ id: "ZAR", name: "ZAR" },
{ id: "CHF", name: "CHF" },
{ id: "PLN", name: "PLN" },
];
}

View File

@ -28,6 +28,9 @@ export function formatCurrency([currency, amount]) {
case "CHF":
currencySign = "CHF";
break;
case "PLN":
currencySign = "zł";
break;
default:
currencySign = "$";
}

View File

@ -36,6 +36,7 @@ discourse_subscriptions:
- SGD
- ZAR
- CHF
- PLN
discourse_subscriptions_campaign_enabled:
client: true
default: false