#Vish

1 messages · Page 1 of 1 (latest)

lusty canyonBOT
narrow sky
#

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?

light radish
#

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.

narrow sky
#

Can you share an example subscription ID I can look at?

light radish
#

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?

narrow sky
#

Not yet, still looking at those subs

lusty canyonBOT
light radish
#

How much longer do you think this will take?

narrow sky
light radish
#

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?

narrow sky
#

Yes

light radish
#

Please let me know what I can do to make this correct

narrow sky
#

You missed the customer.subscription.updated event, and potentially others depending on what you intend to track

light radish
#

Ok let me check, I will get back to you

narrow sky
#

Like you want to enable all three of these:

case 'customer.subscription.created':
case 'customer.subscription.updated':
case 'customer.subscription.deleted':

light radish
#

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?

narrow sky
#

If those are relevant to your usage, yes, but I can't know that about your integration

light radish
#

Is there any documentation regarding this?

azure isle
light radish
#

Thank you