#mkkumawat3333
1 messages · Page 1 of 1 (latest)
Hi there, the checkout.session.completed will be fired when the checkout session is completed. Can you tell me what you want to achieve so that I can help you with a solution?
Can I unlock the premium features on success url for sync payment methods?
can you elaborate more?
What will the status of paymentIntent when checkout session redirects to the success url?
for sync payment methods
You mean for the payment method that the result can be immediately confirmed (e.g, card) ?
yes
that'll be payment_intent.succeeded
And I want checkout.session.completed event to be triggered after 2 mins of payment success
You can also listen to checkout.session.completed and check its payment_status https://stripe.com/docs/api/checkout/sessions/object?lang=curl#checkout_session_object-payment_status
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Why do you need the event to be deferred?
Because I want to provide the premium features on success url of checkout session and If there is anything interruption happens and user was not to land on the success page then I want to provide the premium features using webhook
You shouldn’t rely on the webpage redirect to determine whether the checkout is successful or not.
why?
There are many things that can prevent redirect from happening, you should always rely on the outcome from webooks
But still curios to know weather we can deferred the event in stripe?
No. And I don’t see deferring events is helpful here