#jessp
1 messages ยท Page 1 of 1 (latest)
You may use Search Payment Intents API to search status with refunded to get the refunded payment intents: https://stripe.com/docs/api/payment_intents/search
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you for the guidance!
No problem! Happy to help ๐
I don't think refunded is a status for the payment intent object.
Oh sorry, my bad. Indeed that there is no Payment Intent status with refunded.
Let me check how this can be done
Stripe provides List Refund API to get the refund charges: https://stripe.com/docs/api/refunds/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
In each Charge object, Payment Intent ID can be found under payment_intent field: https://stripe.com/docs/api/refunds/object#refund_object-payment_intent