#mkkumawat3333

1 messages · Page 1 of 1 (latest)

steep pulsarBOT
cursive fossil
#

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?

gaunt socket
#

Can I unlock the premium features on success url for sync payment methods?

cursive fossil
#

can you elaborate more?

gaunt socket
#

What will the status of paymentIntent when checkout session redirects to the success url?

#

for sync payment methods

cursive fossil
#

You mean for the payment method that the result can be immediately confirmed (e.g, card) ?

gaunt socket
#

yes

cursive fossil
#

that'll be payment_intent.succeeded

gaunt socket
#

And I want checkout.session.completed event to be triggered after 2 mins of payment success

cursive fossil
#

Why do you need the event to be deferred?

gaunt socket
#

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

steep pulsarBOT
cursive fossil
#

You shouldn’t rely on the webpage redirect to determine whether the checkout is successful or not.

gaunt socket
#

why?

cursive fossil
#

There are many things that can prevent redirect from happening, you should always rely on the outcome from webooks

gaunt socket
#

But still curios to know weather we can deferred the event in stripe?

cursive fossil
#

No. And I don’t see deferring events is helpful here