About app subscriptions, I have a question.
For example, I currently offer two subscription plans: Basic ($9.9) and Premium($14.9).
The Basic plan provides core features and 1,000 AI usage credits.
The Premium plan offers 10,000 AI usage credits, building on top of the Basic plan benefits.
Suppose a user purchases the Basic plan on the 1st of the month and then upgrades to the Premium plan on the 15th. How would the charges be calculated on Shopify? And how should Gadget handle the update?
I have experience developing for iOS, where Apple’s policy is to refund the unused portion of the subscription on a pro-rated basis and then charge for the Premium plan, with the billing period resetting from the upgrade date.
8 Replies
Additionally, I'd like to know where I can find the relevant Shopify policies and Gadget documentation regarding this matter.
I suggest that you use Matle for the subscriptions. Have you seen that? https://heymantle.com/
Mantle
Mantle • Grow your Shopify app business
Track important revenue metrics. Manage plans and pricing. Improve customer relationships. Focus on growing your business.
Hello,
Billing is a very complex subject. However, here are some docs that can help you get started:
https://docs.gadget.dev/guides/plugins/shopify/advanced-topics/billing#shopify-app-billing
https://shopify.dev/docs/apps/launch/billing
And some archived code:
https://github.com/gadget-inc/templates/tree/main/archived/shopify
Shopify
About billing for your app
Monetize your app with a range of different business models using Shopify’s Billing API.
GitHub
templates/archived/shopify at main · gadget-inc/templates
A collection of helpful app templates to accelerate your development with Gadget - gadget-inc/templates
Hi @Chocci_Milk , I have completed the subscription setup and now need to develop the renewal logic. Specifically, I plan to write code in shopifyAppSubscription/update.ts to update available usage time for users who successfully renew.
However, I'm unsure how to trigger the update and what testing methods are available.
Can you help me?
What do you mean by renewal? An app subscription is a set and forget kind of thing. There's no renewal. Shopify handles downgrades and marks a subscription as a not longer active when a user uninstalls. If they come back, a new subscription would be created when they select a plan.
I mean, it's a monthly membership with automatic fee deduction. I'd like to know whether this deduction was successful or not.
Shopify handles that all on their end. There's no webhook telling you if the user has paid or not. I'm not sure that I'm the best person to ask these questions to. The Shopify team would have better information to share with you
ok..thank you for replay