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...

Комментарии • 27

  • @redaessnoussi8427
    @redaessnoussi8427 Месяц назад +1

    Thank you so much! I struggled with this since Shopify docs is sucks

  • @WebSensePro
    @WebSensePro 10 дней назад

    Thanks for this video, really appreciate it

  • @WebSensePro
    @WebSensePro 10 дней назад

    Love you, thanks for creating this video. Can you do a video om Shopify Managed Pricing which released recently?

  • @offthewallchess
    @offthewallchess 7 месяцев назад +3

    Thank you for this!!! Very helpful! Been struggling with Billing API for a minute.

  • @benwilliamson1671
    @benwilliamson1671 7 месяцев назад +1

    This was very helpful, are you still planning to do the follow up video?

    • @MarkCodesYoutube
      @MarkCodesYoutube  7 месяцев назад

      Yes, the 2nd video with the meta fields based on billing status is on this channel

  • @seunoyebode
    @seunoyebode 6 месяцев назад

    This is such a great video! Very helpful.
    Thanks for making this.

  • @vikaxachatryan751
    @vikaxachatryan751 2 месяца назад

    The guide was very helpful. Could you please also explain how I can implement additional charges for my app in certain cases?

    • @MarkCodesYoutube
      @MarkCodesYoutube  2 месяца назад

      I think this should help shopify.dev/docs/apps/launch/billing/support-one-time-purchases

  • @christophermoriarty2855
    @christophermoriarty2855 5 месяцев назад

    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?

    • @MarkCodesYoutube
      @MarkCodesYoutube  5 месяцев назад

      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

  • @codename4618
    @codename4618 2 месяца назад

    thank you, very helpful!

  • @kirilltereshchenko7151
    @kirilltereshchenko7151 7 месяцев назад

    Great intro to billing!

  • @justdoitk
    @justdoitk 6 месяцев назад

    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?

    • @MarkCodesYoutube
      @MarkCodesYoutube  6 месяцев назад

      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

    • @justdoitk
      @justdoitk 6 месяцев назад

      @@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

  • @LarsHumpert
    @LarsHumpert Месяц назад

    thx mark i got this error : TypeError: Cannot read properties of undefined (reading 'length')

    • @LarsHumpert
      @LarsHumpert Месяц назад

      okay fix it but now i got this Error: Variable $name of type String! was provided invalid value

    • @MarkCodesYoutube
      @MarkCodesYoutube  Месяц назад +1

      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

    • @LarsHumpert
      @LarsHumpert Месяц назад

      @@MarkCodesRUclipsMh okay thanks for reply. But yes i have choice Javascript.

  • @dan110024
    @dan110024 6 месяцев назад

    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?

    • @MarkCodesYoutube
      @MarkCodesYoutube  6 месяцев назад

      No reason at all...you could equally use the billing object

    • @dan110024
      @dan110024 6 месяцев назад

      @@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.

    • @MarkCodesYoutube
      @MarkCodesYoutube  6 месяцев назад

      Do you mean how many people are subscribed to an app?

    • @dan110024
      @dan110024 6 месяцев назад

      @@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?

    • @MarkCodesYoutube
      @MarkCodesYoutube  6 месяцев назад

      @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