In this episode, you’ll learn how to build a basic webhook handler.
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 06 in the series. Stay tuned and subscribe for updates throughout the month of May. 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 – https://twitter.com/cjav_dev
### Table of contents
00:00 Introduction
02:05 Building the event model
03:08 Generating a webhooks controller
04:51 Configuring the event model
06:45 Updating your routes
08:00 Testing the webhook endpoint
10:04 Updating the event job
10:59 Conclusion
### Resources
Stripe Connect docs: https://stripe.com/docs/connect
Stripe Connect guide: https://stripe.com/docs/connect/explore-connect-guide
Sidekiq: https://github.com/sidekiq/sidekiq
Tailwind UI: https://tailwindui.com/
Stripe Checkout: https://stripe.com/docs/payments/checkout
Stripe Customer Portal: https://stripe.com/docs/customer-management/integrate-customer-portal
Checkout 101 video series: https://youtube.com/playlist?list=PLy1nL-pvL2M5cO2i3lSYtwyqZh3EeGR9L
Checkout playlist: https://youtube.com/playlist?list=PLy1nL-pvL2M4bDg02XQr_Y68h4um-vLk3
### Support
If you have a question, please feel free to reach out to our support team on Discord at https://stripe.com/go/developer-chat
### Updates
Sign up to stay updated with developer news: https://go.stripe.global/dev-digest
### Feedback
If you have any feedback about this or other episodes, let us know: https://forms.gle/VjNqzRhotM2snYo88
#stripe #payments #ruby #rails #webhooks