getAllCurrencies( )


Gets the list of all currencies for which Wix supports conversion.

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.

Notes:

Method Declaration
Copy
function getAllCurrencies(): Promise<Array<Currency>>;
Request
This method does not take any parameters
Returns
Return Type:Promise<Array<Currency>>
Return a list of all supported currencies.
JavaScript
import { currencies } from "wix-pay-backend"; currencies.getAllCurrencies().then((listOfAllCurrencies) => { const firstCurrencyCode = listOfAllCurrencies[0].code; const firstCurrencyCSymbol = listOfAllCurrencies[0].symbol; }); /* * listOfAllCurrencies: * [ * {"code": "BIF", "symbol": "FBu"}, * {"code": "CVE", "symbol": "$"}, * {"code": "KMF", "symbol": "CF"}, * ... * ] */
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?