Wix.Billing

getProducts

Note:
Have a dashboard app? Use Wix.Dashboard.getProducts instead.

Returns a json with pricing information for all of your app’s packages – premium plans and in-app purchase packages. 

SDK Version: SDK 1.76.0+
Display: New Editor
Components: Settings Panel, Settings Modal

Syntax:

Copy

Parameters:

NameTypeDescription
optionsObjectOptions for this method
options.currencyStringCurrency for your app’s in-app purchase package. Use this parameter to limit your package to a specific currency. If left blank, we’ll display the currency according to the user’s region (locale).
onSuccess (required)FunctionA callback function to receive the pricing information
onFailureFunctionA callback function for when an error occurs

Example:

Copy
Did this help?