#foodbyhome

1 messages · Page 1 of 1 (latest)

silk pebbleBOT
sudden fable
#

Hi
No you can't transfer funds from a Connect Account to another Connect Account directly

#

you need to pass through your platform account

hot zealot
#

So i need to do transfer funds A -> platform - > B like this?

sudden fable
#

You need to design your charges flow in a way that each Connect Account has their own funds

#

Why do you want to send funds from Connect Account A to Connect Account B ?

hot zealot
#

because i am making a food delivery app/platform, all the payments is going to account A, and from there i wanted to take the money and transfer it to the restaurant and driver

#

something like this

#

My initial setup was to transfer money to the platform, and then when the order was delivered, I would transfer the money to the driver and the restaurant. However, I couldn't do that because the funds were pending.

sudden fable
#

So great you are using separate charge and transfers

#

You need to send the funds from your platform account to your Connect accounts

#

no need to send funds from a Connect Account to another directly

#

However, I couldn't do that because the funds were pending.
Are you getting a particular issue ?

hot zealot
sudden fable
hot zealot
#

le me find it

#

equest req_FLa5MGr9JE0v63: You have insufficient available funds in your Stripe account. Try adding funds directly to your available balance by creating Charges

sudden fable
#

Thanks could you also share the payment intent that is supposed to represent the charge of this transfer ?

hot zealot
#

error: Error: Request req_GJWeToMP1hJ7P9: No such charge: 'pi_3Ohs9bFmAcnSnAaB1zn04LH0'

silk pebbleBOT
unreal valley
#

you have to use the charge ID not the PaymentIntent ID

#

intent.latest_charge, if you have the PaymentIntent object in the variable intent.

hot zealot
#

i have also try that, it says something like the charge is already captured

unreal valley
#

what was the exact error message and request ID?

hot zealot
#

2 sec

#

i can't find any request is id only the error: This PaymentIntent could not be captured because it has already been captured.

#

my code: # Create a transfer to the driver's account
transfer = stripe.Transfer.create(
amount=updated_order.total.deliveryPrice,
currency="DKK", # Change to appropriate currency
destination=_driver.resturantStripeId,
transfer_group=updated_order.payment_intent

unreal valley
#

well that error would not come from that code, it would come from a call to capture a PaymentIntent so it's probably unrelated/something else

hot zealot
#

i found the error log: req_0QDZ5Dc2z9oM8Z

#

this error: req_Z9ppkKQ7ASr3PI

unreal valley
#

well the issue is you're trying to both do a Destination Charge and do a manual transfer, which doesn't make sense.

#

if you use a Destination Charge(passing transfer_data when creating the PaymentIntent), that creates a transfer of that amount automatically to the connected account; so there's no reason to then separately call /v1/transfers.

hot zealot
#

okay, i will write, like the docs. and send you a video what i get

unreal valley
#

I'm not sure a video is needed but sounds good!

hot zealot
unreal valley
#

not really following, what can I help you with?

#

for example I see an error about currency , which I think is pretty self explanatory

hot zealot
#

yeah, normally there will be a error, but can you tell me where i can see if i have made a trasfer?

#

transfer*

unreal valley
#

if you look at the account ID of the connected account in your Dashboard you can see payment/transer history

#

as an example.

silk pebbleBOT
hot zealot
#

ohh nice

restive python
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

hot zealot
#

he help, i don't need more help thanks