#L2_Supreme - refund

1 messages ยท Page 1 of 1 (latest)

regal sinew
#

Hi there!

elder crane
#

req_dXyQ4WSgc6xNCf

#

Thanks for helping out!

regal sinew
#

The PaymentIntent you passed does exist, but on a different account. That's why the refund failed.

elder crane
#

Ok, I found it in the platform account. How do I go about refunding the destination charge now though?

#

with this? reverse_transfer: true,

swift kelp
#

Yes, that should pull back the funds from the connected account

elder crane
#

And I assume without the connected account ID in the header?

swift kelp
#

Correct, it is a subtle distinction but this call was made on your account and the transfers is what points to the connected account

#

Also hello ๐Ÿ‘‹ , soma had to step out so I can help in this thread

elder crane
#

I see, I think I got it now! Thansk for the help, were using direct charges for one product and destination for the other, thats probabyl where I got confused!

#

Ill try now and get back here if I run into any issues, thanks so much!

#

Works like a charm thanks! One additional question though, Since we do not want to refund application fees I was wondering how the refund affects fees. I can see in the connected account that the full application fee gets sent back with the reverse transfer. Our application fee covers stripe fees as well, but does that mean that we keep the original application fee and can cover stripe fees with that and will keep whatever is left afterwards?

swift kelp
#

You should be able to refund the amount minus your application fee, is the way that you are currently refunding refunding the whole thing?

#

It looks like the default behavior should be not refunding the application fee but that might be for something slightly different than what you are seeing here. https://site-admin.stripe.com/docs/api/refunds/create#create_refund-refund_application_fee

You are doing destination charges here correct?

elder crane
#

Yes exactly, I think I have it figured out now. Default behavior, the platform account keeps the application fee, the way we want it to be. Thanks again!