Shopify Remix App Development - Set Up Billing
HTML-код
- Опубликовано: 14 окт 2024
- In this video I show you how to get subscriptions working in your Shopify Remix app. The 2nd video in this series which will be live next week will show you how to then use this billing to set an app metafield which you can use to conditionally make an Theme App Extension available to subscribed customers only.
More extensive version of this code on my GitHub: github.com/mar...
Thank you so much! I struggled with this since Shopify docs is sucks
Thanks for this video, really appreciate it
Love you, thanks for creating this video. Can you do a video om Shopify Managed Pricing which released recently?
Thank you for this!!! Very helpful! Been struggling with Billing API for a minute.
This was very helpful, are you still planning to do the follow up video?
Yes, the 2nd video with the meta fields based on billing status is on this channel
This is such a great video! Very helpful.
Thanks for making this.
The guide was very helpful. Could you please also explain how I can implement additional charges for my app in certain cases?
I think this should help shopify.dev/docs/apps/launch/billing/support-one-time-purchases
Thanks for the great video. Do you have any suggestions for preventing a store from uninstalling the app and reinstalling it and getting an new trial?
If your app creates data they might find useful to keep them if you delete that on install they have to set it all up again if they do that
thank you, very helpful!
Great intro to billing!
What will you suggest for an app with free trial, if the customer install the app and while is in free trial days is uninstalling the app and installing back, should keep get free trial or straight to the subscription billing page?
If you have your app set to delete user data from your database on uninstall (which you should) then whilst a user could keep installing and reinstalling after a free trial they would have to add all their data again so it's unlikely they will
@@MarkCodesRUclips Thanks but this will create a loop which can uninstall the app on last day of free trial and reinstall it, i was thinking to keep in database if was installed before, so based on this to redirect to the subscription plan page
thx mark i got this error : TypeError: Cannot read properties of undefined (reading 'length')
okay fix it but now i got this Error: Variable $name of type String! was provided invalid value
That sounds like a typescript error whereby that variable is expecting a string and got something else. If you go for the JavaScript version of the starter it will probably be easier to work with
@@MarkCodesRUclipsMh okay thanks for reply. But yes i have choice Javascript.
Around 11:20, is there any reason you're using a graphql request to check for active subscriptions instead of getting it from the billing object from the authenticate method?
No reason at all...you could equally use the billing object
@@MarkCodesRUclips ah good. Wasn’t sure if there might have been a reason. On something slightly different - do you know if it’s possible to get the current usage of a usage based plan? I cant seem to find any GraphQL objects with the current usage. I’m thinking I just have to keep track of it myself.
Do you mean how many people are subscribed to an app?
@@MarkCodesRUclips no sorry, I mean in terms of usage based billing for the merchant. Shopify keeps track of the usage records that have been created, and the merchant can check this in Admin>Billing. I just don’t seem to see a way to retrieve that data. Will have another look at it tomorrow, but just wondered if you knew of it or not?
@dan110024 I’m still not quite sure if I get you but in your partner account for the app you can see install and uninstall history and payments etc