Test Your App’s Upgrade Process

Your app can include multiple pricing plans for your users to purchase. Each plan can offer different features and tiers of access to your app.
This article explains how to test your app's upgrade process to ensure that your app responds as expected when an upgrade occurs. Testing helps you verify:

  • That your app provides all advertised features for each pricing plan.
  • That your app responds as expected to events relevant to the app upgrade flow, such as Paid Plan Changed and Paid Plan Purchased.
  • That your app correctly detects upgrades if it uses polling.

Simulate the app purchase flow

To ensure that the upgrade process for your app's paid plans behaves as expected, simulate the user experience by installing and upgrading your app from a test site.

  1. Before you begin, make sure that:

  2. Select your app in the app dashboard.

  3. Hover over Test App at the top of the page, and then select Dashboard and a site for testing the upgrade flow.

    App Market opens, prompting you to upgrade the app on your test site.

  4. Select Upgrade on your app to proceed to the Wix pricing page.

    Note: If you are using an external pricing page, complete the checkout flow according to your site's configuration.

  5. Select a paid plan to start the purchase flow.

  6. Enter your payment information. Payment depends on your app's status.

    • Unpublished apps: The total charge is $0. Use test credit card details to complete the purchase.
    • Published apps: Enter the coupon code you created earlier into the Enter promo code section of the Complete Your Purchase page to complete the purchase.
  7. Select Submit Purchase to complete your app upgrade.

  8. Confirm that your app upgraded by calling Get App Instance. Verify that the isFree field in the response object is false.  

  9. Check that your upgraded app instance's functionality operates as expected.

See also

Did this help?