#andy

1 messages · Page 1 of 1 (latest)

covert mauveBOT
empty sorrel
#

Hi there

solemn hazel
#

i could try to retrieve_refund but i dont know if i can guarantee the refund exists by then

#

hi bismarck!

empty sorrel
#

So to clarify you want to issue a refund on your Connected Account and refund the associated App fee back to that Connected Account and you are looking for the data on the App fee, correct?

solemn hazel
#

correct. i have a webhook that listens for application_fee.created, which is working, but i'd also like to try to record the fee refund synchronously when it's created if that's possible

empty sorrel
#

Those are different points in time? app_fee.created is when the initial payment occurs, no? Now you are talking about the refund?

#

Just confused by that example and how these are related

#

Regardless, have you tried expanding the balance_transaction when you create the refund?

#

I believe that should show you the app fee amount

solemn hazel
#

sorry, i meant to say application_fee.refunded

#

i'll try expanding that! yes

empty sorrel
#

Ah gotcha

#

Yeah try that out!

solemn hazel
#

doesn't look like the balance transaction reports anything about the application fee refund

empty sorrel
#

Ah right that's because the app fee is on the charge, not the refund. Try expanding charge.balance_transaction

solemn hazel
#

that does include the fee details, but not the fee refund

empty sorrel
#

It doesn't indicate the amount_refunded for the app_fee?

#

What's the payload?

#

Oh wait no it won't

#

Okay yeah sorry I'm wrong

#

This isn't possible since the refund doesn't trace directly to the application fee refund in any way

#

The application_fee.refunded hook is the proper way here

solemn hazel
#

ok, thanks!

empty sorrel
#

Sorry about the runaround

solemn hazel
#

all good, sorry i was distracted and didnt respond right away!

empty sorrel
#

not at all

#

Let me know if I can help with anything else