Hello,
I am trying to check if the store has a certain active subscription in order to display or not display the app theme extension. I could not figure out how to do this from the docs, it says something about the metafields but not necessarily how to use them or set it up. Billing api work great inside the admin panel but couldn’t find a similar option for the app theme extension.
Thanks in advance!
Hello @esburchd
Once you can make an external API call, utilize it to verify the status of a subscription. Pass the shop_name parameter in the API call, check its existence in your database, and then verify if the subscription is active.
If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.
1 Like
I need to keep a subscription table in my db? can’t i use the billing api offered by shopify?
This step: “and then verify if the subscription is active” got no idea how to do
Hello @esburchd
I prefer that you add all entries to your subscription table in the database. This way, you can manage and track all records easily.
Alternatively, you can use the billing API.
If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.
Hello @esburchd
When you call the API from the frontend, you need to provide the shop name. In the backend, we’ll use this shop name to check our database for corresponding merchant information. Once found, we’ll then verify in our subscription table whether the subscription is active or not.
If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.