#Vish
1 messages · Page 1 of 1 (latest)
Unfortunately we don't have much context on the inner working of those firebase extensions. Have you looked at the specifically functionality that drives this?
What is the scenario/flow you're trying to test and what are you expecting to happen?
We have customers that subscribe when they want to use the product. We provide them a month of free subscription after which their card is charged. The stripe extension created an entry in the database that sets the subscription status to "trialing". Now when the trial period ends, the status in our database should automatically change to "active" or "past_due". However, this behaviour is not seen.
Can you share an example subscription ID I can look at?
Sure give me a sec
sub_1N5sdFHo1LnNEW1wYuFZlAd0
sub_1L3NcBHo1LnNEW1wjahBBoZl
In the first subscription, the payment initially failed but was later successful. On this case, the status should have changed from trialing to past_due and then past_due to "active". None of that happened.
In the second one, the subscription failed, and the status did not change from trialing to past_due
@narrow sky were you able to find anything?
Not yet, still looking at those subs
How much longer do you think this will take?
So, for this first sub it does go active here: https://dashboard.stripe.com/events/evt_1NIWPsHo1LnNEW1wYZFtqBIa
But your webhook endpoint is not configured to receive this customer.subscription.updated events: https://dashboard.stripe.com/webhooks/we_1KDipjHo1LnNEW1whAl2FbUg
So this is webhook endpoint setup by the Stripe team
As you can see, it was created as part of the Stripe extension. I just had to select which events I have to listen to
Did I make an error while selecting which events to listen to?
Yes
Please let me know what I can do to make this correct
You missed the customer.subscription.updated event, and potentially others depending on what you intend to track
Ok let me check, I will get back to you
Like you want to enable all three of these:
case 'customer.subscription.created':
case 'customer.subscription.updated':
case 'customer.subscription.deleted':
What about other events like customer.subscription.pending_update_applied?
customer.subscription.pending_update_applied
customer.subscription.pending_update_expired
customer.subscription.resumed
customer.subscription.trial_will_end
Do I need to add these?
If those are relevant to your usage, yes, but I can't know that about your integration
Is there any documentation regarding this?
Hello 👋
We have a doc here that goes over subscription webhook events
https://stripe.com/docs/billing/subscriptions/webhooks
Thank you