#Stone.D-checkout
1 messages · Page 1 of 1 (latest)
Hi there!
You shared two different Checkout Session ID, and they both have status: "complete". So it's expected that each Checkout Session sent you a checkout.session.completed.
I should get once not twice checkout.session.completed
You created two different checkout Sessions:
https://dashboard.stripe.com/test/logs/req_8hWT7vaJGY5fYE
https://dashboard.stripe.com/test/logs/req_uPqycpWLjpPQPa
And each Checkout Session will send checkout.session.completed when the payment is successful.
If you were expecting a single Checkout Session, then you need to check your code to understand why you created two Checkout Session instead of one.
Like maybe the user clicked on the "pay" button on your website twice, which created 2 Checkout Sessions. And then payed twice.
From Stripe's point of view everything worked as expected: you created 2 Checkout Sessions, the 2 checkout sessions where completed, so we sent you 2 checkout.session.completed events.
By default a Checkout Session will expire in 24 hours. But you can change that with the expire_at parameter: https://stripe.com/docs/api/checkout/sessions/create?lang=python#create_checkout_session-expires_at
correct