#Ange

1 messages · Page 1 of 1 (latest)

crisp tideBOT
spring basalt
#

When you mentioned N events, do you mean multiple checkout.session.completed events or other event type such as payment_intent.succeeded?

turbid galleon
#

multiple checkout.session.completed events

#

I am attempting to filter out via eventType in the payload

spring basalt
#

One Checkout Session will only send one checkout.session.completed event. Could you share two checkout.session.completed event IDs that you received for same checkout session?

turbid galleon
#

Actually, maybe I know what is going on. Is there any time guarantee for delivery of webhooks?

#

I was testing a lot locally about an hour ago, and I didn't check precisely each checkout session that I did. Could the webhooks just be getting delivered now?

#

cs_test_a1KzKm3N7D2kv0PSa8aMNNxuckuUJU3JEcfLeYICPBAu7BxYl0FDtB6cFk is an example where the action that I presumably only take after checkout completed event happened twice

#

(I am in testmode)

#

another: cs_test_a1lowI8EFfTSrhWCL2ACWwMDVxUfHmLuLodyFitItiDapeu1Nff1ncqZqf

spring basalt
#

These are two separate Checkout Session IDs, i.e. two different payments

#

Event ID should be something like evt_xxx

#

Each Checkout Session will have its own checkout.session.completed event

turbid galleon
#

Is there a way for me to query for events with those 2 checkout session IDs?

spring basalt
#

In this case, two checkout sessions here meant that there were two payments being made

turbid galleon
#

I logged the checkout session ID in my handler, but not the event ID :/

#

Sorry to clarify, for each of those checkout session IDs that I provided, the <thing-I-do-on-checkout-completed> happened twice

#

(as in, those are each checkout sessions where I saw the symptom)

spring basalt
#

Ah I see! Thanks for explanation

#

Stripe sent checkout.session.completed twice to your Webhook endpoint twice because the first attempt failed.

turbid galleon
#

Interesting. Is the other session the same (one failed and one succeeded?)

#

BTW how can i get the event dashboard for the checkout session like you have there?

#

How does Stripe classify "failed? Is it any failure in my server? Or failure to deliver at all? I'm wondering if actually part of my server logic succeeded or something if I saw that action 2x

spring basalt
turbid galleon
#

Got it

#

One additional question - is there any way to pause/stop my queue of webhooks? I think a lot of this is coming from my localhost testing earlier today and I dont need any of it. If I clear my testdata, would that stop the webhook delivery as well?

#

hello?

#

are you still there?

spring basalt
#

Sorry, the discord is busy now