Testing managed app pricing in app

Hey there,

Unless I’m missing the obvious - but is there a way to test managed app pricing before we submit our app for approval?

Right now I have an app built locally, but I would like to test/configure pricing plans for both free/paid. Can you do this before submitting the app for approval? And then run test payments through a development store?

What am I missing here?

Thanks,
James

Hi,

The managed pricing will only be available when you choose the distribution method, just choose the public distribution then create a new listing without submitting, your app will be in a darft status.

You will be able to add your plan, as for testing charge, when you use a development store, you will be able to see this:

Regards,

Don’t forget to enable the test flag in your createAppSubscription mutation
in your development environment:

{
  "name": "Super Duper Recurring Plan",
  "test": true,
  "returnUrl": "http://super-duper.shopifyapps.com/",
  "lineItems": [
    {
      "plan": {
        "appRecurringPricingDetails": {
          "price": {
            "amount": 10,
            "currencyCode": "USD"
          },
          "interval": "EVERY_30_DAYS"
        }
      }
    }
  ]
}

Otherwise your development store won’t be able to accept the subscription.

There is no need for createAppSubscription, since the whole cycle is handled by the managed pricing, and by default a test charge is created for development stores.

1 Like

Ah got it, thanks @dchar I missed that.

@Dchar thank you, however I can’t see this option anywhere - even after I’ve selected the distribution method to be public distribution.

My goal (for development pipeline) is to have 3 versions of the app setup.

(1) Local app for initial testing (what I’m working on now)
(2) Staging app (on server) for testing
(3) Final production app

I may be stating the obvious here, but do I need to go through all " Complete your listing content" steps before I have access to managed pricing? Even for my local test version.

Because, you need to first select a language and create a listing, no need to input any information just go directly to “Pricing details” add your plan then save.