#Ange
1 messages · Page 1 of 1 (latest)
When you mentioned N events, do you mean multiple checkout.session.completed events or other event type such as payment_intent.succeeded?
multiple checkout.session.completed events
I am attempting to filter out via eventType in the payload
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?
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
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
Is there a way for me to query for events with those 2 checkout session IDs?
In this case, two checkout sessions here meant that there were two payments being made
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)
Ah I see! Thanks for explanation
I took a look at cs_test_a1KzKm3N7D2kv0PSa8aMNNxuckuUJU3JEcfLeYICPBAu7BxYl0FDtB6cFk as example: https://dashboard.stripe.com/test/events/evt_1MQhh9DT9Rf2M0yUoJu5EmCe
Stripe sent checkout.session.completed twice to your Webhook endpoint twice because the first attempt failed.
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
Stripe checks the response status code to determine event delivery status. 2xx such as 200 will be considered successful delivery: https://stripe.com/docs/webhooks#acknowledge-events-immediately
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?
Sorry, the discord is busy now