Determine if a shop is eligible to upgrade an app to its paid version

Web-Stat
Tourist
8 1 1

Hello,

I was wondering if there was a way to determine if a shop was eligible to upgrade our app to its paid version.

Right now if a shop using Shopify for free tries to upgrade, this is shown:

Your plan does not allow Shopify App Store purchases

So we could look at  the Shop object in the API and see what plan is being used, but there is no final list of plan names, and some names are not obvious (professional, npo_lite, custom, grandfather, unlimited, staff, affiliate, trial, dormant, npo_full, basic, comped, starter, business, frozen, shopify_plus)

So we can try and guess from the plan name, but I was wondering if there was a more reliable way of achieving this.

Thank you in advance

Olivier

Web-Stat / https://www.web-stat.com

0 Likes