#chordoncode

1 messages Β· Page 1 of 1 (latest)

proud tokenBOT
agile vortex
#

Query parameter will ba a paymentIntentId πŸ™‚

agile turret
agile vortex
#

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

agile turret
#

A refund will only be created if the refund is successful

agile vortex
#

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?

agile turret
#

I see! You can use Payment Intent Retrieval API and expand latest_charge. You will find refund information in latest_charge.refunds

agile vortex
#

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

#

πŸ™‚

agile turret
agile vortex
#

thank you πŸ™‚