#mrcoles
1 messages · Page 1 of 1 (latest)
Yeah PaymentIntents would be the right API to use.
- It will go back to requires_confirmation and the payment intent's underlying charge will have been declined
- Payment intents are generally manually cancelled: https://stripe.com/docs/api/payment_intents/cancel. I think expired checkout sessions also cancel payment intents.
- Yeah once a payment intent succeeds it stays there even if you refund it
- So those don't necessarily map 1 to 1 with payment intent statuses (as refunded and failed payment intents don't have those statuses)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I recommend you start your integration here: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
This should also answer some questions about how all this is handled
Thx! Seems like I need to still check against the latest_charge to determine things like refund information and to differentiate on requires_payment_method?