Checkout UI Extension with Shopify billing API

Checkout UI Extension with Shopify billing API

bootsgridDev
Shopify Partner
22 0 3

How to check the subscription status in checkout UI extension and only show the app blocks if the subscription status is "ACTIVE"

 

Please give any solutions or ideas.

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1453 238 508

Hey @bootsgridDev , I've replied to your post here: 

 

- https://community.shopify.com/c/billing-api/checkout-ui-extensions-amp-usage-billing-api/m-p/2593024... 

 

Cheers, 

 

- Kyle G. 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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 @ShopifyDevSup 

 

Thankyou for the time you have taken to respond to my query.

 

But the post you have mentioned, using "available_if" attribute, which is working only in theme app extension. How can I execute this in my checkout ui extensions.

 

Example:   I want to enable my custom checkout field extensions(checkbox, textfield, select option components) only to my active subscribed users. Please explain how to do that.? I have stored my subscription status in  one metafield, how can I use it to enable or disable my checkout ui extensions in theme editor.