This article shares some possible use cases your app could support, as well as a sample flow that could support each use case. This can be a helpful jumping off point as you plan your app's implementation.
successURL
that you've submitted in the API call. If you haven't passed success URL, Wix
redirects the user to the default Wix success page.https://www.wix.com/my-account/app/<appID>/<AppInstanceID>
During development, all your plans will be automatically set to a price of 0.00, so you can test the flow. Once your app's approved, your plans' real prices will be activated and you'll receive a coupon for testing.Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
This call succeeds only in case you have previously set up an external pricing page in your app's dashboard.
The returned checkout URL is valid for 48 hours.
This API allows your app to manage your pricing page outside of Wix while still using the standard Wix checkout flow.
You can only call this method when authenticated as a Wix app or Wix user identity.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
Retrieves a list of the site owner's past purchases for your app.
You don't have to explicitly pass an identifier for the Wix site as part of the request, since this information is taken automatically from the context.
The response doesn't include any details about cancellations.
You can only call this method when authenticated as a Wix app or Wix user identity.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.