Building a customer subscription flow

  Рет қаралды 7,243

Stripe Developers

Stripe Developers

Күн бұрын

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 10 ай бұрын
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 4 ай бұрын
Does anyone at Stripe work with the popular DB's and front ends?
@rickyu1978
@rickyu1978 3 ай бұрын
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 11 ай бұрын
what if we want to use direct charges and transfer a percentage to the author ??
@StripeDev
@StripeDev 11 ай бұрын
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 11 ай бұрын
@@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 11 ай бұрын
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 10 ай бұрын
can you please tell us how to get the user subscription is active or not??
@StripeDev
@StripeDev 10 ай бұрын
Hi Neeraj-just to confirm, you want to determine whether a subscription is active or inactive, is that correct?
@user-hq4im9wb8k
@user-hq4im9wb8k 10 ай бұрын
@@StripeDev yes
@StripeDev
@StripeDev 10 ай бұрын
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 10 ай бұрын
@@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 10 ай бұрын
Hi Neeraj! Could you elaborate a little more on this question for us?
Handling platform subscription related events
20:37
Stripe Developers
Рет қаралды 3,9 М.
Introduction to the Stripe CLI
34:19
Stripe Developers
Рет қаралды 57 М.
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 188 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 23 МЛН
Stripe Connect account onboarding
23:28
Stripe Developers
Рет қаралды 17 М.
Collect payment in installments with Subscription Schedules
19:50
Stripe Developers
Рет қаралды 10 М.
How to Use Stripe for Recurring Payments & Payment Plans (Tutorial)
8:20
Kamila Gornia / Heart Behind Hustle
Рет қаралды 70 М.
This is why webhooks are important
7:59
Web Dev Cody
Рет қаралды 30 М.
Bubble.io and Stripe integration for subscriptions (Full Guide) - 2024
18:56
Koby Moon - Bubble Dev
Рет қаралды 2,6 М.
Test subscription lifecycles with test clocks
7:26
Stripe Developers
Рет қаралды 7 М.
Во сколько смотришь? Заливаю в 10-22😉
0:36
Юлия Смирнова
Рет қаралды 2,2 МЛН
My wife said she wants to show me her true skills
0:27
昕昕一家人
Рет қаралды 60 МЛН
Притворилась БЕРЕМЕННОЙ 😱 #shorts
1:00
Лаборатория Разрушителя
Рет қаралды 4,8 МЛН
Rang Pi Liya Mama 😂 #shorts #tiktokvideo #funnyshorts #comedy #ytshorts
0:46
Sukhasan Ka Rahman Bhai
Рет қаралды 31 МЛН
А ЧТО С ЗУБАМИ ТО?😂😂🦷
0:54
СЕМЬЯ СТАРОВОЙТОВЫХ 💖 Starovoitov.family
Рет қаралды 3,9 МЛН