#woakaley - transfer

1 messages ยท Page 1 of 1 (latest)

quaint cove
#

Hi there!

frigid cloak
#

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

quaint cove
#

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

frigid cloak
#

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

quaint cove
frigid cloak
#

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.

wary canopy
#

you should just try it in test mode really

#

you should really use source_transaction too.

frigid cloak
#

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.

wary canopy
#

do you know the account ID acct_xxx of the account?

frigid cloak
#

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" ?

wary canopy
wary canopy
frigid cloak
#

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.

wary canopy
wary canopy
frigid cloak
#

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 :

wary canopy
wary canopy
frigid cloak
#

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.

wary canopy
#

yep

frigid cloak
#

But i am using a Checkout session on front end.

wary canopy
#

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 )

Learn how to create a charge and split payments between your platform and your sellers or service providers when you accept payments.

wary canopy
#

you can pass transfer_data to the CheckoutSession API instead

#

it's all in the guide

frigid cloak
#

somewhere here, i guess ? This is my code for create a checkout session

wary canopy
#

it's in the guide

frigid cloak
#

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..

frigid cloak
#

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.