Stripe Connect: listening and processing connected account webhooks
HTML-код
- Опубликовано: 12 июл 2024
- In this episode, you'll learn how to build a a Stripe Connect webhook handler to handle asynchronous events happening both in your platform and on your connected accounts.
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 14 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
01:05 Different types of webhooks
03:02 Creating webhook endpoints
05:32 Processing events
08:25 Magic strings for testing
10:32 Handling processing errors
13:20 Adding a default account
14:40 Next steps
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 Развлечения
What if the user makes a mistake on a page whilst onboarding? do they have to create a new stripe account and restart onboarding?
Hi Adam-could you let us know with an example, which sort of onboarding details are you concerned about? Like, you won't be able to change the country once registered with your Stripe account. Is there any other sort of detail that you're concerned about? Let us know so that we can help you better.
Hi@@StripeDev, I'm just thinking in any part of the onboarding process the user makes a mistake. I just noticed at the end they can update their settings when they reveiew, but there is no back button in the flow. But lets say they are a LLC/LLP and chose Sole Trader as the type of business at the start. Is this something they can change or will they have to create a new Stripe Account and restart onboarding?
Ah, okay-got it! Users are able to make changes to account business info, such as the business type-other types of info can't be changed, such as the account country. For these issues, they'll need to create a brand new account-for other issues, they'll need to reach out support where we can help sort everything out for them.
I didn't see the user needing to login during the onboarding, yet I am experiencing that flow with my implementation. Can you confirm if the user needed to login before starting onboarding?
Sorry Jordan, could you elaborate on the question please?
@@StripeDev Sure. The first screen the user sees when they are redirected to the onboarding flow (hosted by Stripe) shows "Get started with Stripe" and asks for an email address. Then next screen asks for a password. I didn't see that in your demo. I was wondering if you encountered the same experience or was able to get around the user having to create an account and sign in. Make sense?
No they can't circumvent creating the account.
@@StripeDev Thanks - creating the account was understood. But the redirect forced the user to log in. I was able to get around that by turning off the built in external account collection (banking info) - that disabled the stripe auth popup.