List of ISO codes and corresponding currencies
This kind of information is required in advanced integrations of Tpay.com payment system like credit card payments via API calls.
An example problem which can occur is e.g.
- "I can see that order/payment currency is 978 - what does it mean?"
- or "I would like to create a payment in EUR currency instead of PLN, what code should I send in API call described at docs.tpay.com?"
The currency of card transactions in the Tpay.com payment system has assigned ISO codes. This is the international standard for currency identification.
The list of available currencies is ready to use at Tpay PHP library here https://github.com/tpay-com/tpay-php/blob/master/tpayLibs/src/Dictionaries/ISO_codes/CurrencyCodesDictionary.php
In the file body we can figure out that number 978 means EUR currency:
978 => 'EUR'
Tpay.com uses ISO codes also to identify the customer country (which can be independent of transaction currency and customer country). This list of codes is available here: https://github.com/tpay-com/tpay-php/blob/master/tpayLibs/src/Dictionaries/ISO_codes/CountryCodesDictionary.php