#๐Ÿ‡ Aristochat

1 messages ยท Page 1 of 1 (latest)

hazy citrusBOT
mossy prism
#

Can you confirm me that all payment intents always go through the processing state before succeeding/failing ? Even cards that should be very quick ?
Card payments are synchronous and won't transition to processing. Only async PMs, like banking methods.

cosmic sorrel
#

So a card payment will directly go to either a success or a failure ?

#

So what's the state before going to success/failure ?

mossy prism
cosmic sorrel
#

Thanks, and can you confirm me that a payment failure will trigger the event payment_intent.payment_failed with a payment intent state of requires_payment_method

mossy prism
#

Yep. This should be easy enough for you to test, btw

cosmic sorrel
#

thanks ๐Ÿ™‚

#

just want to be sure

#

Last question : the amount_received param in PaymentIntent object should be amount minus the fees collected by stripe, right ?

jade cipher
#

no

#

I don't quite remember what field is for, I think it's either related to when you capture less than an authorised charge (https://stripe.com/docs/payments/place-a-hold-on-a-payment-method) or for certain payment methods that can have partial amounts, not sure. But either way it's not about a net amount, that doesn't really exist at this level in the API