#foodbyhome
1 messages · Page 1 of 1 (latest)
Hi
No you can't transfer funds from a Connect Account to another Connect Account directly
you need to pass through your platform account
So i need to do transfer funds A -> platform - > B like this?
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 ?
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.
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 ?
something like funds is not avalible
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
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
Thanks could you also share the payment intent that is supposed to represent the charge of this transfer ?
error: Error: Request req_GJWeToMP1hJ7P9: No such charge: 'pi_3Ohs9bFmAcnSnAaB1zn04LH0'
you have to use the charge ID not the PaymentIntent ID
intent.latest_charge, if you have the PaymentIntent object in the variable intent.
i have also try that, it says something like the charge is already captured
what was the exact error message and request ID?
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
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
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.
so I'd suggest taking a step back here and consulting https://stripe.com/docs/connect/charges a bit overall
okay, i will write, like the docs. and send you a video what i get
I'm not sure a video is needed but sounds good!
not really following, what can I help you with?
for example I see an error about currency , which I think is pretty self explanatory
yeah, normally there will be a error, but can you tell me where i can see if i have made a trasfer?
transfer*
if you look at the account ID of the connected account in your Dashboard you can see payment/transer history
as an example.
ohh nice
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
he help, i don't need more help thanks