#lucas-paymentintent-webhook

1 messages · Page 1 of 1 (latest)

mortal mauveBOT
brave stratus
#

lucas-paymentintent-webhook

#

@balmy marsh .created => when it's created, .succeeded -> when it succeeds.

balmy marsh
#

When the payment is approved, is succeeded executed?

brave stratus
balmy marsh
#

Ok

#

If Stripe takes a while to approve the payment, I first receive created and after approval I receive succeeded?

brave stratus
#

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

balmy marsh
#

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

brave stratus
balmy marsh
#

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?

brave stratus
#

what do you mean "payment is under review" @balmy marsh I'm sorry I don't really follow most of what you're describing

balmy marsh
#

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

brave stratus
#

Are you talking about Radar?

balmy marsh
#

I don't know what Radar is

brave stratus
#

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

balmy marsh
#

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

brave stratus
balmy marsh
#

yes, and i read this in this same document, but it doesn't say how i test this event

brave stratus
#

those happen for specific payment method types not card payments.

#

you can test all of those payment methods in Test mode