Building a customer subscription flow

Поделиться
HTML-код
  • Опубликовано: 16 июл 2024
  • In this episode, you'll learn how to build the subscription flow for your platform customers.
    The platform we're building in this series allows creators to produce creative content (e.g., a newsletter), publish their content, and monetize their content with paid subscriptions.
    This is episode 15 in the series. Stay tuned and subscribe for updates. We'll cover all the ins and outs of Stripe Connect, how you need to model and store things in your database, how to handle authentication, how to process web hooks and post-payment events in your Stripe account, how to onboard creators, how to use Stripe Checkout on the front end to securely accept payment, how to setup the Stripe Customer Portal to allow subscribers to manage their payments and subscriptions.
    Presenter
    CJ Avilla - Software Engineer - / cjav_dev
    Table of contents
    00:00 Introduction
    00:45 Building a dashboard of subscribed newsletters
    09:25 Building the subscription and checkout flow
    15:00 Building the Checkout session logic
    27:00 Transferring money to the creator
    33:55 Conclusion
    Resources
    Stripe Connect docs: stripe.com/docs/connect
    Stripe Connect guide: stripe.com/docs/connect/explo...
    Sidekiq: github.com/sidekiq/sidekiq
    Tailwind UI: tailwindui.com/
    Stripe Checkout: stripe.com/docs/payments/chec...
    Stripe Customer Portal: stripe.com/docs/customer-mana...
    Checkout 101 video series: • Checkout 101: low code...
    Checkout playlist: • Stripe Checkout
    Support
    If you have a question, please feel free to reach out to our support team on Discord at stripe.com/go/developer-chat
    Updates
    Sign up to stay updated with developer news: go.stripe.global/dev-digest
    Feedback
    If you have any feedback about this or other episodes, let us know: forms.gle/VjNqzRhotM2snYo88
    #stripe #payments #ruby #rails #webhooks
  • РазвлеченияРазвлечения

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

  • @StripeDev
    @StripeDev  9 месяцев назад +1

    So, that is your webhook endpoint so you can put any param that you want on the URL. Also, it's totally up to our users on how they want to use a DB query on the URL. Let us know if that helps. You can also check out our support doc for an overview of how subscriptions works and also to know more on their integration: stripe.com/docs/billing/subscriptions/overview and stripe.com/docs/api/subscriptions/create

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

    Wow amazing I just needed this creating a flow for subscription model selling online courses

  • @guylepage33
    @guylepage33 3 месяца назад +1

    Does anyone at Stripe work with the popular DB's and front ends?

    • @rickyu1978
      @rickyu1978 3 месяца назад +1

      i know right. ruby is great and all, but like whhaaaa.

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

    How can I disable "Pay with Link" button? Everything I found out there doesn't work.

  • @AdeMonst
    @AdeMonst 10 месяцев назад

    what if we want to use direct charges and transfer a percentage to the author ??

    • @StripeDev
      @StripeDev  10 месяцев назад

      Hey there! Could you elaborate on your use case a little more? The more context we have the better the advice we can provide.

    • @AdeMonst
      @AdeMonst 10 месяцев назад

      @@StripeDev What i was asking is that in stripe checkout session and mode is subscription, how does the platform owner get percentage maybe 10% from the sales of connected account? Should subscription_data.application_fee_percent be used in the direct charges scenario

    • @StripeDev
      @StripeDev  10 месяцев назад

      Hi Ade-the platform itself would decide on the fees per transaction using Stripe Connect. We'd be happy to go into more detail on this or answer any additional questions you have. Please contact us at support.stripe.com if needed. Thanks.

  • @user-hq4im9wb8k
    @user-hq4im9wb8k 9 месяцев назад

    can you please tell us how to get the user subscription is active or not??

    • @StripeDev
      @StripeDev  9 месяцев назад

      Hi Neeraj-just to confirm, you want to determine whether a subscription is active or inactive, is that correct?

    • @user-hq4im9wb8k
      @user-hq4im9wb8k 9 месяцев назад

      @@StripeDev yes

    • @StripeDev
      @StripeDev  9 месяцев назад

      You can take a look at our docs here to determine the total number of active subscribers: support.stripe.com/questions/understanding-active-subscribers
      Here's how you can track active subscriptions: stripe.com/docs/billing/subscriptions/webhooks#active-subscriptions and find an overview of how subscriptions work in general: stripe.com/docs/billing/subscriptions/overview

    • @user-hq4im9wb8k
      @user-hq4im9wb8k 9 месяцев назад

      @@StripeDev Hi I have one more query related webhook.
      if i created a webhook url can we update the status colum in our database as well based on event we get??
      In webhook code

    • @StripeDev
      @StripeDev  9 месяцев назад

      Hi Neeraj! Could you elaborate a little more on this question for us?