By default, the following currencies are supported by the add-on, including the handling of currency symbols and placement:
- AUD - Australian Dollar
- CAD - Canadian Dollar
- CHF - Swiss Franc
- DKK - Danish Krone
- EUR - Euro
- GBP - British Pound
- HKD - Hong Kong Dollar
- INR - Indian Rupee
- JPY - Japanese Yen
- NZD - New Zealand Dollar
- SGD - Singapore Dollar
- USD - United States Dollar
Additional currencies that Stripe supports can be added by creating a configuration file:
- Create a new php file at /application/config/msv_payments_stripe.php
- Within this file enter and configure the following:
<?php
return
['currencies' =>
['XYZ' => [
'name' => 'Currency Name',
'minimum' => 0.5,
'symbol' => '$',
'symbol-after' => false,
'zero-decimal' => false,
'currency-label' => 'XYZ']
]
];
- Please take note of the settings such as zero-decimal, and that the 'key' of this currency array is the currency code. Refer to the file /packages/msv_payments_stripe/src/MsvPaymentsStripe/Stripe/Currency.php for the existing list of currencies and how they have been defined.
If you believe however, that a commonly used currency has been missed, please contact us and we can look to add it to the add-on by default.