#lelouch

1 messages · Page 1 of 1 (latest)

twilit chasmBOT
bitter mica
quick summit
#

hmm thanks

#

but what if a card got declined or payment from card is still pending ?

#

or some sort of error happened and stripe is still trying to get payment which would be considered as also pending or retrying, how do i know all this ?

#

oh i think i get it, i can just consider a payment to user as pending untill "checkout.session.completed" is called and if any sort of error happened stripe will give "checkout.session.async_payment_failed" ? is this correct ?

bitter mica
#

async_payment_failed is a bit of special event only fired by some payment method, not card. Let's put it aside

#

Yes you can consider a payment as pending until checkout.session.completed. If any error happens you would have payment_intent.failed instead

#

Normally business don't care about error, they only want to know checkout.session.completed

#

You can test all of this flow by using test mode and use a Stripe test card or test failed card

quick summit
#

ah i see, so is it ok to listen for both "checkout.session.async_payment_failed" and "payment_intent.failed" ?

#

ah i need to know about the error cause i am creating a sort of wallet app

#

i see here the heckout.session.async_payment methods are being used

bitter mica
#

Yeah that's example but you know it's not for card:

This step is only required if you plan to use any of the following payment methods: Bacs Direct Debit, Boleto, Canadian pre-authorized debits, Konbini, OXXO, SEPA Direct Debit, SOFORT, or ACH Direct Debit.

quick summit
#

ah didnt notice that, thanks

#

one last question, how long does it takes for stripe to charge and complete a charge from a user bank account ?

#

i kinda wanna know min and max duration

bitter mica
#

Um it's largely depends on the bank and the countries. I would suggest getting in touch with Support team for the duration

#

(I am a developer and don't know much details about those specs)