The Billing API allows to charge site owners for using your app.
With the Billing API, you can:
- Retrieve data about a site's previous paid plans for your app.
- Redirect site owners to the standard Wix checkout page in case you manage your app's pricing page outside of Wix.
- Ensure that your app's integration with the Custom Charges service plugin works as intended.
For more information on how to track data associated with individual app
instances, see the App Instances API.
It’s important to note the following points before starting to code:
- Wix allows you to manage your app's pricing page either through Wix or externally. You can display up to 4 different plans for your app on the Wix pricing page.
- In case you manage your pricing page on your own servers, you can still redirect site owners to the standard Wix checkout page by using
getUrl()
.
- Set up an external pricing page
- App instance: A specific occurrence of your app on a particular Wix site.
- Paid plan: The site owners have installed a version of your app that isn't free of charge. Your app can charge a single payment or on a subscription basis.
- Wix pricing page: Wix offers your app an out-of-the-box pricing page that displays up to 4 plans for your app to site owners.
- Wix checkout: Wix allows you to charge site owners either through the Wix Billing ecosystem or to manage your app's billing externally. In case you manage your app's pricing page on your own servers, you can still redirect site owners to the standard Wix checkout page by using
getUrl()
.