#lucas-paymentintent-webhook
1 messages · Page 1 of 1 (latest)
lucas-paymentintent-webhook
@balmy marsh .created => when it's created, .succeeded -> when it succeeds.
When the payment is approved, is succeeded executed?
I recommend carefully reading https://stripe.com/docs/payments/paymentintents/lifecycle first to understand the state machine
Ok
If Stripe takes a while to approve the payment, I first receive created and after approval I receive succeeded?
Please try in Test mode first, you do seem quite lost right now and it would click immediately if you just try
1/ Create a PaymentIntent -> See the Event payment_intent.created
2/ Later confirm the PaymentIntent -> See the Event payment_intent.succeeded for example or others depending on the payment method you are using
I am creating a checkout session, after filling in the credit card details and clicking pay i see several events happening, as i always receive payment confirmation as success immediately, i don't know which event i should listen to to inform the user that the order was created but still awaiting payment
If you use Checkout there's no reason to use those Events at all. You should use checkout.session.completed, see https://stripe.com/docs/payments/checkout/fulfill-orders
and what event do i receive when Stripe does not give me an approved or declined payment response at the same time, if the payment is under review?
what do you mean "payment is under review" @balmy marsh I'm sorry I don't really follow most of what you're describing
When there is a suspicion of fraud, the payment is under analysis, this happens a lot here in Brazil, after this analysis takes place and this takes a certain amount of time, a few hours, after this "validation" the payment is approved
Are you talking about Radar?
I don't know what Radar is
Unfortunately I don't understand what you are describing at all in that case. We don't put orders on hold, in Brazil or anywhere else
ok, i understood, but i have another question, i can only receive these events in production checkout.session.async_payment_succeeded and checkout.session.async_payment_failed
It's covered in the doc I linked you to earlier already, make sure to carefully read it first https://stripe.com/docs/payments/checkout/fulfill-orders#delayed-notification
yes, and i read this in this same document, but it doesn't say how i test this event