Enable the Right Features for Paying and Free Users

To support paid plan features in your app, you’ll need to check the user’s plan so that you can activate the right features. 

When you set up your app in the Wix Developers Center, a Plan ID is created for each paid plan. This Plan ID is displayed as the vendorProductId in the app instance query parameter.

You should activate or block specific features, depending on the vendorProductId value displayed.
  • If the value matches a Plan ID as defined in the Wix Developers Center – this app is a paying user, and you should activate your paid features (if you have more than one paid plan, the value indicates the specific plan).
  • If the value is “null” – this app is free, so activate your app’s free features only.

Decoded instance parameter example

1
2
3
4
5
6
7
{
  "instanceId": "aff5016d-2914-4d63-a38c-a6dc4e432ed7",
  "signDate": 1336914487311,
   "uid": null,
  "permissions": null
  "vendorProductId": "Premium-Package"
}

Subscription changes

Users can add your app, and upgrade your app, at any time. You can sign up for webhooks to receive notifications about subscription changes.