#chordoncode
1 messages Β· Page 1 of 1 (latest)
Query parameter will ba a paymentIntentId π
After the refund is performed, you'd need to store the refund ID. For future retrieval of refund information, Refund Retrieval API can be used: https://stripe.com/docs/api/refunds/retrieve
OH.... is there any way to find refund info without refund id?
I will use this one for client side when stripe webhook failed..
webhook failed means, my db is not updated as a canceled.
oh.. hm..
ch_3NR6i7FjOGcTYUbc1fzGi3b8
this one is refund id?
when I try to refund, the code returned with exception.
so, can I use this one to retrive refund infomation?
with the api which is you mentioned
when I try to refund, the code returned with exception.
What exception do you face? Can you share the request ID (req_xxx) of the error? Hereβs how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
A refund will only be created if the refund is successful
I know~
my usecase is ...
the customer refunded the order on Stripe console.
and assuming my webhook is failed. (this webhook is updateing my db to cancel flag)
at that time,
my customer accesses order list, and he requests to refund..
I got a exception that it's already canceled..
that that time, I would like to update my db with a suitable information. but before query the refund information, I cannot update the right info.
so I would like to know the information without cancelId ..
does it makes sence?
I see! You can use Payment Intent Retrieval API and expand latest_charge. You will find refund information in latest_charge.refunds
oh!
so... which API is for?
so, I can use this paramter..
expand: ['latest_charge.refunds']
but.. I don't know which api is for this paramter to get the information
so..
so already said π thank you I will try
=----
and.. did you easly understand my english?
I just wonder hoho
π
This is the Payment Intent Retrieval API: https://stripe.com/docs/api/payment_intents/retrieve
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 π