Search...
getAllCurrencies( )
Gets the list of all currencies for which Wix supports conversion.
Description
The getAllCurrencies()
function returns a Promise that resolves to an array of currencies.
The array lists all currencies for which Wix supports conversion and their symbols.
Note: The
getAllCurrencies()
function is different fromsiteSettings.getCurrencies()
in that this function gets the complete list of all of the currencies that are supported on Wix sites. ThesiteSettings.getCurrencies()
function gets only the currencies that have been set for use in your site using the backend functionsiteSettings.setCurrencies()
.
Authorization
Request
This endpoint does not take any parameters
Response Object
Fulfilled - The list of all supported currencies.
Status/Error Codes
Was this helpful?
Get all supported currencies
Copy Code
1import {currencies} from 'wix-pay-frontend';23currencies.getAllCurrencies()4 .then((listOfAllCurrencies) => {5 const firstCurrencyCode = listOfAllCurrencies[0].code;6 const firstCurrencyCSymbol = listOfAllCurrencies[0].symbol;7 });89/*10 * listOfAllCurrencies:11 * [12 * {"code": "BIF", "symbol": "FBu"},13 * {"code": "CVE", "symbol": "$"},14 * {"code": "KMF", "symbol": "CF"},15 * ...16 * ]17 */