#ryscottcam
1 messages · Page 1 of 1 (latest)
is processing using just the invoice object
Can you elaborate here to explain what you mean?
I don't think I understand the question
nevermind, i think i can use either the invoice.payment_method or the invoice.charge to determine whether the payment is processing or has succeeded/failed
Yes, if you're trying to determine whether the payment has succeeded, you can use expansion to get the payment_intent on the invoice and check if it is status=succeeded
https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Note that for some paid invoices there may be no payment (either discounted to 0 or for a free plan etc)
thanks!