#vipul

1 messages · Page 1 of 1 (latest)

small duneBOT
warm minnow
#

Hello 👋

I am running recurring payment how do I know if its actually gets failed or not?
Not sure what you mean by that, can you elaborate?

wispy geyser
#

I am using Stripe checkout session with 3ds card in test mode.
When Popup opens for authorization, it sends invoice.payment_failed event webhook before I confirm authorization. Your Support person said to use stripe_checkout_completed webhook instead of that

#

Should I use that?

#

Hello

warm minnow
#

Please be patient, there are other folks on this server who need help too

wispy geyser
#

I did have previous thread and guy changed and I got generic answer after that

#

And it did close

warm minnow
#

Should I use that?
Should you use that for what? I'm sorry but the question is quite vague. What are you trying to implement exactly?

wispy geyser
#

Hi,
I am using Stripe checkout session with 3ds card in test mode.
When Popup opens for authorization, it sends invoice.payment_failed event webhook before I confirm authorization.

#

Why is that?

warm minnow
#

That's expected, as Stripe tries to charge the payment method automatically but issuer requires 3DS authentication. So the first attempt to pay the invoice technically failed. invoice.payment_failed is expected in that case

wispy geyser
#

Ok, So what webhook should I use to confirm payment then?

small duneBOT
warm minnow
wispy geyser
#

True but checkout.session.completed gets called first time
My payment is subscription based, If I don't rely on invoice paid and invoice failed then for next payment I won't know what happened

warm minnow
wispy geyser
#

Ok That's what I am looking for a clear identifier

warm minnow
#

Yeah sorry, that wasn't super clear from your earlier questions. But glad you're unblocked

wispy geyser
#

Thanks for the help

#

One more question
What is the best way to handle confirmation of payment and subscription started for 3ds and non 3DS cards?
I mean what webhooks should be used to handle both type of cards

silk condor
#

As in what webhook should you listen to to see the first payment succeeding? invoice.paid is a good event for that, you can check the billing_reason on the Invoice to see if it is the first invoice or not