FEATURE: Add SGD as supported currency (#60)

Add additional currency Singapore dollars as supported Stripe currency
This commit is contained in:
chalkadmin 2021-04-13 18:20:00 +08:00 committed by GitHub
parent 312b1182b9
commit 1ae5a552a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,8 @@ module DiscourseSubscriptions
"R$"
when "dkk"
"KR"
when "sgd"
"S$"
else
"$"
end

View File

@ -38,6 +38,7 @@ export default Controller.extend({
{ id: "INR", name: "INR" },
{ id: "BRL", name: "BRL" },
{ id: "DKK", name: "DKK" },
{ id: "SGD", name: "SGD" },
];
},

View File

@ -24,6 +24,10 @@ export default Helper.helper(function (params) {
case "dkk":
currencySign = "DKK";
break;
case "SGD":
case "sgd":
currencySign = "S$";
break;
default:
currencySign = "$";
}

View File

@ -27,3 +27,4 @@ plugins:
- NZD
- USD
- DKK
- SGD