#.suryamani

1 messages · Page 1 of 1 (latest)

severe ospreyBOT
elder kernel
#

Hi

still dew
#

hi

#

oops

elder kernel
#

@hallow shard could you please share more please ?

hallow shard
#

I'm webhook events for send custom emails to user

#

When i test webhooks in local when i create new subscription customer.subscription.created event and customer.subscription.updated event these two generates and received two emails

#

When i try to delete then also customer.subscription.updated event these two generates

elder kernel
#

Yes that's expected

#

You need to update your integration in order to send only one email

hallow shard
#

during new subscription why this customer.subscription.updated event generates

elder kernel
#

Can you share the event Id ?

hallow shard
#

"evt_1O0iRmLabf7E4J4F2tL2JoJh"

elder kernel
#

That event was generated after 3 min from the creation of the invoice

#

You need to update your integration to send an email

#

only for this event:
evt_1O0iOaLabf7E4J4FLXEoLzjJ

hallow shard
#

Did you see my code

elder kernel
#

Yes

hallow shard
#

Im sending email by using if condition

elder kernel
#

You need to debug your integration and see why you are sending two emails

#

there is no unexcpected behavior in Stripe Side so far.

hallow shard
#

When i debug in my code two events are generated

#

When i subscribe customer.subscription.created event need to generate, I'm i right?

#

but i got this event also customer.subscription.updated

elder kernel
#

According to the Subscription generated, there were customer.subscription.created and then (after 3 min) another event customer.subscription.updated was generated

hallow shard
#

I'm asking why that event generated

elder kernel
#

There were a change on default_source