One-time payments let you offer packages that Wix users pay for as standalone, non-recurring purchases. For example, if your app sells custom images, you can sell each image as a one-time purchase or offer a pack of 10 images at a set fee.
One-time payments use the single billing model and can be part of either a freemium or premium business model.
Important: You can't mark your app as "Free" and offer one-time payments, as this would mislead Wix users. Your app must use a freemium or premium business model.
Add at least 1 single pricing plan to define what Wix users can purchase in your app.
Note: Single plans don't appear in the Wix App Market listing or on the Wix-hosted pricing page. You need to design your own pricing page to showcase these plans. See step 2.
Repeat these steps for each package you want to offer. For example, you might create separate plans for different credit amounts or package sizes.
You can always come back and update your pricing plans later if your needs change.
Because single plans aren't supported on the Wix-hosted pricing page, you need to build your own pricing UI. Display this page in your app's settings panel or dashboard so Wix users can browse the available packages and make a purchase.
Your pricing page should:
To set up the full external pricing page flow, including OAuth and webhook configuration, see Set up an external pricing page.
When a Wix user clicks a call-to-action button on your pricing page, direct them to the Wix checkout to complete the purchase.
successUrl you specified in the Get URL call. If you don't specify a successUrl, Wix uses its default success page.Note: Checkout links are valid for 48 hours. Call Get URL again to generate a fresh link before the current one expires.
For apps with an internal dashboard, set the successUrl to "https://www.wix.com/my-account/app/<APP_ID>/<INSTANCE_ID>" to redirect Wix users back to their app dashboard after purchase. You can find your app ID in the app dashboard, and the instance ID by calling Get App Instance.
Unlike recurring plans, one-time purchases require you to track each Wix user's balance on your server. For example, if a Wix user buys 100 SMS credits, your app needs to know how many credits they've used and how many remain.
Subscribe to the following webhooks to get notified when a Wix user makes a purchase:
Check the cycle property in these webhooks to identify the purchase details.
Use the Get Purchase History API to retrieve a Wix user's full purchase history. Don't rely solely on webhooks to know when a Wix user makes a purchase -- always validate with the API.
Keep track of each Wix user's remaining balance on your server. Make sure that:
All plans are automatically priced at 0.00 during development, so you can test the full purchase flow at no cost. Once your app is approved and published, the real prices you configured are activated.
Test the following:
Learn more about testing your app's upgrade process.