Re: Check if app users are on a test payment plan.

Check if app users are on a test payment plan.

Olllie
Shopify Partner
11 1 2

Hi team

 

Quick question - Is there any way to find out if our app users are on a regular or test recurring subscription?

 

I'm a bit worried that some users might have slipped through the cracks and got charged for test subscriptions when I accidentally included the test flagging for a couple of days.

 

Cheers

 

Ollie

Reply 1 (1)

Liam
Shopify Staff
2807 310 805

Hi Ollie!

 

You should be able to use the RecurringApplicationCharge resource in the Billing API to return a list of recurring charges for your app. Then you can iterate through the list of subscriptions returned in the API response to check each subscription's status and test flag (there is a test property for the 

RecurringApplicationCharge resource). 

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog