FEATURE: Add BRL currency support

This commit is contained in:
Justin DiRose 2020-06-30 10:13:05 -05:00
parent 4830468e32
commit 88f36c18a6
No known key found for this signature in database
GPG Key ID: 4B811FB264021800
4 changed files with 11 additions and 3 deletions

View File

@ -44,6 +44,8 @@ class PaymentSerializer < ApplicationSerializer
"£"
when "inr"
""
when "brl"
"R$"
else
"$"
end

View File

@ -15,7 +15,8 @@ export default Controller.extend({
{ id: "EUR", name: "EUR" },
{ id: "GBP", name: "GBP" },
{ id: "USD", name: "USD" },
{ id: "INR", name: "INR" }
{ id: "INR", name: "INR" },
{ id: "BRL", name: "BRL" }
];
},

View File

@ -16,6 +16,10 @@ export default Helper.helper(function(params) {
case "inr":
currencySign = "₹";
break;
case "BRL":
case "brl":
currencySign = "R$";
break;
default:
currencySign = "$";
}

View File

@ -22,9 +22,10 @@ plugins:
type: enum
choices:
- AUD
- BRL
- CAD
- EUR
- GBP
- USD
- NZD
- INR
- NZD
- USD