Question?
What webhooks do I need to setup within Stripe when using Bubble’s Stripe plugin?
(I’m using Stripe plugin by Bubble and Stripe Customer Portal plugin by Lantz)
User Story:
I’ve build an app that allows users to bulk-generate custom email copies via OpenAI.
User needs to subscribe to a monthly plan after which they get 1000 email credits. Meaning, they can generate 1000 email copies within the current subscription period, which is a month. Next month upon successful charge of the card I add another 1000 credits.
Current Setup:
I’ve built Stripe integration according to Cranford Tech’s video on Youtube.
When user subscribes to a plan he/she gets is Redirected back to dashboard and I update: subscription status, couple other things and most importantly add 1000 email credits on user balance.
If user cancels the subscription Subscription.Deleted is initialized on Stripe’s end. I have a webhook left in Stripe for such cases. And when it happens I have actions into a BW to update user data.
Although I have set up cancelation part manually, the redirection happens I guess from Customer Portal plugin. Unfortunately neither plugins are documented well enough to know what endpoints are built-in. This causes confusion on my end.
Confusion/Quesiton
I wonder if I need to setup up a web-hook for the case when the user’s card declines on a second charge. Like imagine I sub the user successfully but the next month card declines.
- Do I have to setup a separate webhook for this or the initial setup for cancelation takes care of this use case too?
- Or what if user’s card expires during the initial month. Do I have to have a separate webhook for it too?
- What are some other use cases I need a webhook set up that I’m not thinking of?
Let me tag some of you OGs here in case you can help!
@NigelG @mikeloc @adamhholmes @rico.trevisan
Thanks in advance 