#rv

1 messages · Page 1 of 1 (latest)

fickle parcelBOT
timid pasture
#

Hi there, is this a question about refunding a connect charge?

feral turtle
#

yes mate

#

connected account received money and we want to refund to end customer

timid pasture
#

Is it a separate charge and transfer?

feral turtle
#

Yes, we charge in bulk then transfer money to different connected accounts

timid pasture
feral turtle
#

see: evt_3LujYNBPOlf56RIh0By1Pokg

#

it is going to transfer group not going to the end customer

timid pasture
#

Did you use the refunds API or reverse transfers API?

#

It seems like you were doing a reverse transfer, which is different from a refund

feral turtle
#

I tried to use both, none is serving the purpose mate

#

With refund I am getting:
Cannot reverse transfer on charge ch_3LujYNBPOlf56RIh0ldwK0ij because it does not have an associated transfer

timid pasture
feral turtle
#

This is one reverse transfer: req_joS1hVRy5wPsdj

#

This one is for refund: req_H79JeLxUWskouV

timid pasture
#

You can see the error message to know why the refund failed. The reverse_transfer expects a boolean, but string is passed

feral turtle
#

that is different error mate

#

check this one mate req_ipNx2cRiUa7irU

timid pasture
#

Was there a transfer created for transfer_group I:6867-T:4347 ?

feral turtle
#

yes mate

timid pasture
#

Can you share with me the request ID?

feral turtle
#

which one mate ?

timid pasture
#

The request you made to create a transfer for transfer_group I:6867-T:4347

feral turtle
#

Please see req_AZFLwrdDLO7ZjC

timid pasture
#

This is a charge creation request, not transfer creation request.

feral turtle
#

We are passing group in it mate

timid pasture
#

But it's a request to /v1/charges, not /v1/transfers.

#

There are two steps involved in separate charge and transfer.
step 1. make a charge (e.g., POST to /v1/charges)
step 2. make a transfer (e.g., POST to /v1/transfers)

feral turtle
#

Ah this one req_53U8kPbk1f7qky

timid pasture
#

Thanks, let me take a closer look

feral turtle
#

Yes, please

timid pasture
#

Thanks for the waiting. The reverse_transfer param is only applicable to a refund of destination charge.

#

For Separate Charge and Transfer, you need to create a separate reverse transfer by yourself.

feral turtle
#

Sorry, I didn't followed "create a separate reverse transfer by yourself" thing

noble thunder
#

Hi, taking over here

#

I believe my colleague meant to reverse a Transfer by directly targeting the Transfer Id

feral turtle
#

but didn't it refund the money to transfer ?

#

and how it reach to end customer ?

#

like: tr_3LujYNBPOlf56RIh0dDFTQTk

#

ch_3LujYNBPOlf56RIh0ldwK0ij

noble thunder
#

It simply "reverse" the transfer. You would need to refunding the Charge too. Think Charge and Transfer are 2 separated steps

feral turtle
#

and let's say payout happened and we did transfer

#

what will be the source of next charge ?

noble thunder
#

Well if Payout happened and the Connected account balance is < the amount you want to reverse, then you can only rely on the "connected reverses" option enable. It's also explained in the same Doc

feral turtle
#

What we will provide as a source in charge mate ?

noble thunder
#

That source_transfer is a property and not that you can specify it

feral turtle
#

then what would be the source mate, for the charge ?

noble thunder
#

I think you are a bit confused. There are 2 different fund flow:

  1. Destination Charge
  2. Separate Charge and Transfer

Why you are asking about parameters related to 1, your actual fund flow is 2

feral turtle
#

Sorry, I am trying to understand:

  1. $refund = \Stripe\Refund::create([
    'charge' => '{CHARGE_ID}',
    ]);
#

then
2. \Stripe\Transfer::createReversal(
'{TRANSFER_ID}',
[
'amount' => 500,
]
);

noble thunder
#

Yep that combination of 2 requests is for 2. Separate Charges and Transfers

feral turtle
#

Okay mate, will give it a try and come back if needed, thank you again