getPaymentCurrency( )


Gets site payment currency information.

The getPaymentCurrency() function returns a Promise that resolves to the site's payment currency information.

The retrieved payment currency information is the information that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
function getPaymentCurrency(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get site payment currency information
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getPaymentCurrency = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getPaymentCurrency(); // "USD" });
Errors

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

Did this help?