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:
Parameters:
Name | Type | Description |
---|---|---|
options | Object | Options for this method |
options.currency | String | Currency 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) | Function | A callback function to receive the pricing information |
onFailure | Function | A callback function for when an error occurs |
Example: