#jatinpatel0708_code

1 messages ยท Page 1 of 1 (latest)

glad voidBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1308723203350200352

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

heady grove
#

๐Ÿ‘‹ happy to help

#

would you mind sharing the request ID? did you get any error?

mighty fjord
#

here is the request Id: req_LEG2mbsDOJkAeM

#

let me Explain:

The Connected Account has transferred $50.00 to the Main Account. Now I want to refund it back to the Connected Account.

heady grove
#

you created a transfer from the connected account to your platform's account?

mighty fjord
#

Yes

heady grove
#

please give me a minute I'm looking into this

mighty fjord
#

I now want to refund this transfer back to the Connected Account.

#

sure

#

here is the New request ID:
req_xaCLrdJWXKI2Ow

heady grove
#

this is actually not a "normal" transfer

mighty fjord
#

But it is creating a transfer; I want to create a refund. How can I use this API to confirm whether it processed as a refund or simply created a transfer from the Main Account to the Connected Account?

heady grove
#

the created transfer is on the Connected Account not your platform's account

#

the request for transfer reversal is being made on the Platform's account where the transfer doesn't exist

#

the easiest way to send money back to your connected account is to create a transfer from the Platform's account to the connected account

mighty fjord
#

okay, It means I have to create Tranfer to the Main Accoun to Connetced Account?

#

If I pass the Connected Account ID in this code

$refund_transfer = $stripe->transfers->createReversal("tr_1QL15kI3RET0QghKJlOQbhPB", ['amount' => (50 * 100)],['stripe_account' => $seller->stripe_account_id]);

will it correctly create a refund transfer?

heady grove
#

I'm not sure, would you mind trying it please? I was setting up the same scenario to test it myself but it's taking a bit more time to setup

mighty fjord
#

okay, I will Try

heady grove
#

did it work?

mighty fjord
#

req_hHR0AEyAltKnn0

heady grove
#

good

mighty fjord
#

Yes, I have tried it and it works. Could you please check my previous request ID to ensure that I am on the right track?

heady grove
#

yes it did work correctly

#

I wasn't a 100% sure that in this setup it would work as well

mighty fjord
#

Thanks