#mark.at.deco

1 messages · Page 1 of 1 (latest)

distant zenithBOT
sonic smelt
#

Hi there, let me take a look

#

When creating a refund, you shall set reverse_transfer=false so that the destination account keeps the fund

little pasture
#

but then if the refund suceeds, wont the connected account keep the money?

sonic smelt
little pasture
#

hmm.. ill give it a test with reverse_transfer=false and see if it behaves as I expect.. I'll update this thread/chat in a few minutes

#

I'm a but confused by your solution..
I tested a normal refund scenario (success)
Payment Intent: pi_3M6SMlFmiG7YTVO21MBkI6WI, refund: re_3M6SMlFmiG7YTVO218FhKXyx
Once its finished, the money is taken from the platform account, but the connected account gets to keep the money..
this seems even stranger behavior.. why would you ever want to let the connected account keep the money?
Am I meant to manually reverse the transfer or something?

sonic smelt
#

Could you clarify your requirement? I'm under the impression that you want the destination account to keep the fund ?

little pasture
#

only when the refund fails

#

I'm testing failed asynchronous refunds

#

so it suceeds, then fails

#

when it fails, the money does not go back to the connected account

sonic smelt
#

Can you share with me the ID of the failed refund?

little pasture
#

from above:

#

Payment Intent: pi_3M6RlYFmiG7YTVO20sRT8HqQ, refund: re_3M6RlYFmiG7YTVO20eZGz6tw

sonic smelt
little pasture
sonic smelt
#

That's because the reverse_transfer=true that I've explained before.

#

Setting reverse_transfer=true allows the platform to reverse transfer the funds from connected accounts to platform to cover the refund.

little pasture
#

yes.. but when the refund later fails, then money goes back to the platform account, without any trnasfer to the connected account

#

so the platform account needs to somehow give the money back to the connected account... do you follow that logic?

sonic smelt
#

It's really up to you. If you think the platform should transfer the funds to connected account in the event of failed refund, you can use the Transfers API to send the funds from platform to the connected account.

little pasture
#

thats what i was doing, but that only works when the connected account is in the same region as the platform account

#

because the money is now in the platforms account, and cannot be transfered back to the connected account, is it assumed the platform needs to contact the customer and organise the refund outside of stripe? or give the money back to the connected account outside of stripe?

#

seems like odd behaviour...

sonic smelt
#

Hm. Can you try this. Set reverse_transfer=false so that the funds stays in connected account, and use account debit (https://stripe.com/docs/connect/account-debits) to charge the connected account when you want to move funds from connected account to platform?

little pasture
#

similar to transfers, "The connected account and the platform must be in the same region" (from that page)

#

I'm guessing this is just a limitation of the platform? if so.. I hope failed asynchronous refunds are rare...

sonic smelt
#

Did you use the charges API or transfers API to perform an account debit?

little pasture
sonic smelt
little pasture
#

but as per that page, the connected and platform account must be in the same region.. I already have it working in the same region using transfers.. i only get an error when they are in different regions..

#

I'll try and create a charge to that connected account and see if its even possible...

sonic smelt
#

There's a link you can use to contact the sales team. Do you want to reach out to them and see if they can help you on this?

little pasture
#

I'm guessing I should raise this with support...

#

BTW, tried to create a charge form the US platform to the AT connected account using the stripe CLI and got "Account debits are not supported from AT to US"