#Aleks Farkov

1 messages · Page 1 of 1 (latest)

chrome juncoBOT
humble trail
#

Hello! How can I help?

#

@midnight pecan you can use this thread!

midnight pecan
#

Thanks

humble trail
#

So what's the issue you're having with the transfers api?

midnight pecan
#

I am getting the following error when making the transfer inside a webhook

#

invalid_request_error - source_transaction
Transfers using this transaction as a source must not exceed the source amount of €180.00. (There is already a transfer using this source, amounting to €180.00.)

humble trail
#

Do you have the request ID that I can take a look at?

midnight pecan
#

/req_0mJnLlquFYCgDs?t=1689029483

#

This one ?

#

Or something else ?

humble trail
#

that works

midnight pecan
#

I just don't get why the error is occuring since none of the 2 statements in it are true. Additional information which I can give is that the transfer is made to an Express account

#

It is the only transfer

#

The only other action is a payment intent

#

Which has succeeded

#

And the amount is way above the Transfer amount

#

It is in Test mode

#

And happens every time I try to make a transfer

humble trail
#

If you don't want to automatically transfer anything as part of the payment intent and do the transfer separately then you need to remove transfer_data.destination

#

Or see if setting transfer_data.amount: 0 will work

midnight pecan
#

Okay, do I need to keep the Payment Intent Amount

humble trail
#

What do you mean by that?

midnight pecan
#

The payment intent has an amount property

humble trail
#

Yes, you need to keep setting that - that's a required field to create a payment intent

midnight pecan
#

Okay, thanks, that was an interesting thing I have missed

#

But the problem is I want the full amount to be transferd

#

I mean the connected account needs the same amount of money as the amount of the payment intent

#

But also add additional with the Transfer I am trying to make

humble trail
#

Why do you want to make the additional transfer? If you're already transferring the full amount to the connected account, there's no more for you to transfer?

midnight pecan
#

The transfer is from the platform account

#

The system is using vouchers

#

And i want to transfer the discount from the voucher

humble trail
#

If you want to transfer ADDITIONAL funds (so more than the original payment intent charged for) then you should create the transfer and not set source_transaction

midnight pecan
#

Yea, it seems like this field is not usable in this case

#

Do you know how to ensure the money from the payment intent(charge) are available for payout

#

Because either way the connected account will receive the ADDITIONAL funds before the other money are availabe;

#

That is why I was trying to use the source_transaction option

humble trail
midnight pecan
#

Oh okay this might help

#

Do you think this is a reliable flow

#

To use transfer to send money to the connected account when a customer uses a voucher to give the rest of the money to the seller

#

And then make this transfer only when the balance transaction is available

humble trail
#

yeah that sounds like it would work

midnight pecan
#

One last question

#

Can this balance transaction available be tracked with webhook

#

Since that is when the transfer should happen

humble trail
#

There's the balance.available webhook event, but that only notifies you when your overall available balance has changed - it doesn't notify you about individual transactions

midnight pecan
#

Ok

#

Thank you for the help

#

It is really appreciated