The currency is set in the tab «General settings Client» Smarty utility control panel, default — RUB. The currency selected in this field is displayed in subscriber applications and is also used in payment gateways. It is also possible to redefine the currency for a particular subscriber on its editing page.
The list of available currencies can be replenished using the Smarty configuration file. The new currency to be added must be assigned an index (indexing starts at 100) in the format CURRENCY_SETTINGS_INDEX_. Next, this index should be added to the list of available currencies using the parameter CURRENCY_SETTINGS_DATA (below is an example of adding the belarusian ruble):
CURRENCY_SETTINGS_INDEX_BYN = 100
CURRENCY_SETTINGS_DATA[CURRENCY_SETTINGS_INDEX_BYN] = {
'name': 'BYN',
}
The currency should be maintained in gatewayit is necessary to configure its index (the currency index inside each payment gateway is different, usually indicated in its documentation).
CURRENCY_SETTINGS_INDEX_BYN = 100
CURRENCY_SETTINGS_DATA[CURRENCY_SETTINGS_INDEX_BYN] = {
'name': 'BYN',
'paypal_code': 'BYN',
'paymaster_code': 'BYN',
'squareup_code': 'BYN,'
'payture_code':
'null': ','
'ISO': 'BYN',
'is_zero_decimal': False,
}
The list of currencies in Smarty by default:
- RUB
- EUR
- USD
- AMD
- KGS
- KZT