#katherine-object-transitions
1 messages · Page 1 of 1 (latest)
On PaymentIntent there's a Charge that would have that information like latest_charge: 'ch_123' points to https://stripe.com/docs/api/charges/object and it's created is what you want
Wait, why do I see a charge object in my Stripe dashboard that starts with py_...?
Are there two types of charge objects?
no they are the same object, just ch_123 is card payments and py_123 is everything else, but same object, same API
katherine-object-transitions
Okay. I'm asking this specifically in the context of a SEPA payment
And for an Invoice you have https://stripe.com/docs/api/invoices/object#invoice_object-status_transitions which is what you're after
Ah yes the paid_at field
To clarify though, for a payment intent, the charge is only created when the payment succeeds?
Because for a delayed notification payment method like SEPA, I see charge objects created for a payemtn intent that are in "processing" status
no it's created earlier so it's more complex, there isn't really a way to track the exacr success in that case, but that really shouldn't matter in theory
So to clarify: there is a way to track success time for an Invoice object but not a Charge object specifically in the context of a delayed notification payment method?
My organization's use case requires knowing when the payment succeeded.
correct that's not really possible on a Charge
Gotcha, thank you
And just to double check, it's not possible on a payment intent either right?
correct
okay thank you!