#woakaley - transfer
1 messages ยท Page 1 of 1 (latest)
Hi there!
If you are using Stripe Connect, you can send money between the platform account and a connected account with a Transfer: https://stripe.com/docs/api/transfers/create
Hey ๐ So maybe I have to understand first the flow on what to use and how to use it. i did tried Transfer, but i got an error "Not enough balance... " or something like this. But I want to try these steps in test mode, and in test mode i have enough money.. so i dont get it why it's not working.
This is what i got when i tried the Transfer api
You may have money in your Stripe account, but it takes a few days for the money to move to your available balance.
If you want to add funds to your available balance in test mode, you can by using this test card: https://stripe.com/docs/testing#available-balance
Alright, i will try to topup the ballance. But how can i see how much money do i have actually in etst mode?
i mean i tought i have enough, because in total i have a lot in test mode
You can use this to get all your balances: https://stripe.com/docs/api/balance/balance_retrieve
And if I may, I have another question regarding to the create->transfer code. Here is how I am trying to transfer money:
Does it look good? Do i need more params to transfer money? I mean i will change the amount to a variable.
you should just try it in test mode really
you should really use source_transaction too.
I'd read https://stackoverflow.com/questions/55686949/why-i-am-getting-insufficient-funds-when-trying-stripe-transfers-even-though-i/55687932#55687932 first as it help explains most of the common problems.
Alright, thank you! I will read the link and I will try to do my best. I will come back to discort if i have troubles. Thanks again.
Aaah, sorry, I got another question. Why I cant see the connected account in test mode, when i click New transfer? I connected the account in live and in test mode as well.
do you know the account ID acct_xxx of the account?
Of course
Btw i tried the transfer api again, and i got the same message that "balance_insufficient". I will try it now with the source_transaction, but how do i get that one, the "CHARGE_ID" ?
can you post it here?
it's the ID of a previous payment you made to charge the end-customer(i.e how you get the money in the first place).
Connected Acc ID: acct_1LXhq4AT4yZA62Sf
So the idea is that we, as the main account are collecting the money from the end users. And than we will send/transfer the money to every connected account.
In our main account all the products are created, and the connected account does not have any customers or products, we just want to transfer their part to them directly.
seems connected properly, maybe just refresh the dashboard and wait a few minutes for it to show up. Make sure of course you're logged into the right platform account Th*****od
sure. Is there a specific reason you are not using Destination charges instead of trying to manually create Transfers?
https://stripe.com/docs/connect/collect-then-transfer-guide
https://stripe.com/docs/connect/destination-charges
Not really, I am just pretty new to Stripe api and trying to find out how to manage the payments in our app.
And until now i found the transfer api and the payment intent.
I tought maybe the transfer is my only option to send money to the connected accounts.
Ooh but wait, yes, I did tried the PaymentIntent like this:
and I got back an error saying :
you should use the guide I linked https://stripe.com/docs/connect/collect-then-transfer-guide as a fully worked example
that's not an error. That just means the next step is to process the payment on the frontend now that you created the PaymentIntent. The guide covers it
So my code is good, I just have to go further in the flow?
Hmm, i dont know, its a but confusing me what to do. But I will read the guide first.
yep
But i am using a Checkout session on front end.
you really shouldn't try to manually create transfers unless you have to for some reason(you're trying to do "separate charges and transfers" https://stripe.com/docs/connect/charges#types )
yeah, and Checkout works with Destination charges just fine
you can pass transfer_data to the CheckoutSession API instead
it's all in the guide
somewhere here, i guess ? This is my code for create a checkout session
it's in the guide
Yepp, sorry i did paste my screenshot after u pasted yours ๐
Thank you again! I hope i will succeed today, because I am struggling with this task for some days..
Nice, passing transfer_data worked. I can see the money on the connected account, in test mode. I am guessing it will work on live mode as well.