#.suryamani

1 messages · Page 1 of 1 (latest)

zealous muskBOT
#

Hello .suryamani, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
.suryamani, 1 hour ago, 43 messages
.suryamani, 3 days ago, 19 messages
.suryamani, 3 days ago, 10 messages

true dagger
#

Hi

quasi valley
#

While payment is failed invoice.payment_failed event is triggered and also customer.subscription.updated event is triggered, here the problem is it skipped the other events, You will see that problem i ave faced in this video

true dagger
#

While payment is failed invoice.payment_failed event is triggered and also customer.subscription.updated event is triggered
Can you share the two events Id ?

#

here the problem is it skipped the other events,
You can't configure Stripe to skip sending event to your webhook endpoint. You need to update your integration to filter and skip the events if not needed

quasi valley
#

How will i do that can you explain me please?

quasi valley
true dagger
#

That's expected to have these too events there is no issue.

true dagger
quasi valley
#

No, explain me to how to filter, I dont know about that

true dagger
#

You create a condition in your code like using if...else and implement the condition you are judging with an event must be filtered or not.

quasi valley
true dagger
#

At the begining you were saying that there is some events that you don't want to listen to right ?

quasi valley
#

During payment failed, i dont want to listen customer.subscription.updated event

true dagger
#

Great, then you write a condition to do nothing when you receive that event customer.subscription.updated

#

Your integration must expect to get both events in some cases.

quasi valley
true dagger
#

In that case you need to add an additional condition on customer.subscription.updated and send an email only when it's an upgrade/downgrade

#

by checking the content of the event.

quasi valley
#

IS there any dataobject for upgrade or downgrade plan