Check app subscription status in checkout ui extensions

Solved

Check app subscription status in checkout ui extensions

Turbofan1178
Shopify Partner
57 4 10

Is there an api or what is a working pattern for checking if a merchant has an active subscription from checkout ui extensions?

Founder, WC: Invite To WhatsApp Channel
- Invite customers to join your WhatsApp channel with a single click
- Boost outreach message open rates
- Grow sales with direct outreach on WhatsApp channels
Accepted Solution (1)
Liam
Community Manager
3108 341 878

This is an accepted solution.

So you should be able to use the RecurringApplicationCharge resource to get a list of recurring application charges (see example from our docs) which will also return the status of the charge (if it's active) and the return URL. 

 

Would this work for you?

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

View solution in original post

Replies 5 (5)

Liam
Community Manager
3108 341 878

Hi Turbofan1178,

 

Just to confirm, are you looking to see if a merchant has an active subscription that originates from any app or just your app?

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

Turbofan1178
Shopify Partner
57 4 10

One that originates from my app.

Founder, WC: Invite To WhatsApp Channel
- Invite customers to join your WhatsApp channel with a single click
- Boost outreach message open rates
- Grow sales with direct outreach on WhatsApp channels
Liam
Community Manager
3108 341 878

This is an accepted solution.

So you should be able to use the RecurringApplicationCharge resource to get a list of recurring application charges (see example from our docs) which will also return the status of the charge (if it's active) and the return URL. 

 

Would this work for you?

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

bootsgridDev
Shopify Partner
22 0 3

Hi @Liam 

 

Can you Please provide,

 

How you have checked the active subscription status and disabled app blocks in the theme editor, if the subscription status is empty?

 

I have done it in the  theme extension but its bit confusing & don't know how to implement it  in checkout UI extension.

 

Please provide solution ASAP.

bootsgridDev
Shopify Partner
22 0 3

Hi @Turbofan1178 

 

Can you Please provide,

 

How you have checked the active subscription status and disabled app blocks in the theme editor, if the subscription status is empty?

 

I have done it in the  theme extension but bit confusing & don't know how to implement it  for checkout UI extension.

 

Please provide solution ASAP.