Тёмный
No video :(

Handling platform subscription related events 

Stripe Developers
Подписаться 29 тыс.
Просмотров 4 тыс.
50% 1

In this episode, you'll learn how to handle billing related webhooks related to changes in your platform’s users subscriptions.
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 16 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:53 Handling subscription created events
06:57 Handling subscription updated and deleted events
09:39 Handling subscription canceled events with the Customer Portal
15:11 Handling subscribed newsletters
19:52 Conclusion
Resources
Stripe Connect docs: stripe.com/doc...
Stripe Connect guide: stripe.com/doc...
Sidekiq: github.com/sid...
Tailwind UI: tailwindui.com/
Stripe Checkout: stripe.com/doc...
Stripe Customer Portal: stripe.com/doc...
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/...
Updates
Sign up to stay updated with developer news: go.stripe.glob...
Feedback
If you have any feedback about this or other episodes, let us know: forms.gle/VjNq...
#stripe #payments #ruby #rails #webhooks

Опубликовано:

 

15 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@TazBo-wd2ig
@TazBo-wd2ig 8 месяцев назад
Hi, I have a web app which has features in two different membership plans. The premium plan allows access to all areas and the free is restricted. When users sign up I want them on the premium plan for 60 days then downgraded if they don’t pay the subscription. My question is what do code do I need to add on certain parts of the website which’s check what plan the user is on and does that show the user a message of some sort saying please click here to upgrade your plan to access this area. Also how do I downgrade automatically? Thanks.
@StripeDev
@StripeDev 8 месяцев назад
Hi Taz-for automatically downgrading a premium trial when a user chooses not to subscribe, you can consider configuring a free trial: stripe.com/docs/payments/checkout/free-trials. For your other question, can you specify what you mean by certain parts of the website?
@TazBo-wd2ig
@TazBo-wd2ig 8 месяцев назад
@@StripeDev my web app has a section where there is a tool for searching cars but I want that for premium members only. When users land on that page if they are not premium they need to see a message saying you need to upgrade to see this page. But what code goes on that page to check if user is premium or not?
@StripeDev
@StripeDev 8 месяцев назад
If you want to to figure out whether a customer has an active subscription for a certain price/plan you can use stripe.com/docs/api/subscriptions/list, and filter 'customer' and 'price' and 'status'.
@brucewayne2480
@brucewayne2480 11 месяцев назад
I noticed that "subscription.updated" is also fired at the same time with "subscription.created" or "checkout.session.completed" and give almost the same information , why should I handle both since they will make a lot of db requests at the same time ? Thank you
@StripeDev
@StripeDev 11 месяцев назад
Hi there-if you're using Checkout, then the best option would be to use [checkout.session.completed]. This doc has more info: stripe.com/docs/payments/checkout/fulfill-orders. However, if you're using Subscriptions, you're going to need to listen to [customer.subscription.updated] and other Event types to handle future payments. This doc has more info: stripe.com/docs/billing/subscriptions/webhooks#events.
@brucewayne2480
@brucewayne2480 11 месяцев назад
@@StripeDev Thanks for the answer. I'm using checkout and subscriptions just like the video (SAAS product) but I noticed that subscription.updated is firing when a new subscription is created so why not using only that event instead of using subscription.updated and checkout.session.completed that are firing at the same time
@StripeDev
@StripeDev 11 месяцев назад
Great question-we'd like to gather some more info and help you with this through our email support channel. Please open a ticket with us using this link: support.stripe.com/questions/contact-stripe-support. Thank you!
@Benjamin-Chavez
@Benjamin-Chavez 9 месяцев назад
@@brucewayne2480Did you get an answer to this?
@user-fy6sd1ut9m
@user-fy6sd1ut9m 9 месяцев назад
How to handle a future invoice failed for any reason
@StripeDev
@StripeDev 9 месяцев назад
Hi Rodrigo-we have some documentation on how to handle failures: stripe.com/docs/declines#responding-to-failures-api.
Далее
Integrating the Stripe Connect Express Dashboard
5:32
Building a customer subscription flow
34:39
Просмотров 8 тыс.
Fancy VS Classic #shorts  @CRAZYGREAPA
00:33
Просмотров 788 тыс.
до/после Знакомо?
00:16
Просмотров 13 тыс.
Make Money from your API Tutorial
13:10
Просмотров 872 тыс.
Stripe Connect account onboarding
23:28
Просмотров 17 тыс.
How To Accept Payments With Stripe
23:05
Просмотров 271 тыс.
Top 6 Most Popular API Architecture Styles
4:21
Просмотров 878 тыс.
Fancy VS Classic #shorts  @CRAZYGREAPA
00:33
Просмотров 788 тыс.