How to determine if shop is a test / staff / partner shop

Shopify Partner
36 2 8

My app creates an AppSubscription and I'd like to be able to determine if the shop that installs the app is some kind of test shop (e.g. partner store, staff store) or if it's that of a real customer so that I can create test charges or real charges accordingly.

The documentation doesn't provide any details on this and on similar questions (1, 2) asked in the forums, Shopify staff never answered.

My questions:

  1. What is the recommended approach to determine whether or not a store is a "real" store and not that of a partner, staff member, etc? I would like to do this definitively and with confidence.
  2. Where can one find a complete list of the possible Shop.plan_name values or ShopPlan.diplayName values?

 

0 Likes