#AGILE FALCON

1 messages ยท Page 1 of 1 (latest)

torpid duneBOT
barren osprey
#

๐Ÿ‘‹ happy to help

#

what type of connected account are you using?

mighty sorrel
barren osprey
#

there are use-cases where debiting Express and Custom Accounts are available https://stripe.com/docs/connect/account-debits but if your Connect Account is also a "Customer" in the business meaning of the word, then you shouldn't use that and instead create a Customer for them and proceed with a normal Payment

With Connect, your platform can directly debit the Stripe balance of an Express or Custom account.

mighty sorrel
#

ok Thanks

#

ok it solved one of my problem...
I have successfully transferred money from connect account to platform stripe account.
Now how can i transfer the same money in another connect account. (Actually i want to transfer money from one connect account to another connect account which is directly not possilbe without first sending it to platform stripe account)

#

There?

barren osprey
#

what is the use-case

#

let's forget about the implementation for a second

torpid duneBOT
barren osprey
#

can you describe what are you trying to achieve here?

mighty sorrel
#

i want each customer to have a connect account and they can send money to each other

oak kiln
#

connected accounts can't send money to each other. Platforms can send money to connected accounts. So for a use case like that you need a complicated set up perhaps using Account Debits to take from one account and Transfer to another one; Stripe is not a peer-to-peer wallet solution by default.

mighty sorrel
#

Ok.. Also when i load money in stripe platform account using payment intent:

// const paymentIntent = await stripe.paymentIntents.create({
// amount: amount,
// currency: currency,
// automatic_payment_methods: {
// enabled: true,
// },
// on_behalf_of: 'acct_1NqCmYPGcLLb7t4Y',
// });
// // console.log("PAYMENT INTENT", paymentIntent.id) //Payment intent id starts with pi

// // // CONFIRMING PAYMENT INTENT
// let paymentIntentId = paymentIntent.id
// const confirmPaymentIntent = await stripe.paymentIntents.confirm(
// paymentIntentId,
// {
// payment_method: 'pm_card_visa',
// return_url: 'https://www.google.com/success', // Replace with your actual success URL
// }
// );

It is loaded but in "pending" not in "available"
Still when i create transfer and provide latest charge id which is returned in confirm payment intent response in source transaction... it gets successfull and funds are transferring in connect account.... but when i try to tranfer funds in another connect account without source_transaction param.....it gives me an error: Insufficient balance. even when balance is present in stripe platfore in "pending".

 // console.log("Charge", confirmPaymentIntent.latest_charge) // starts with ch
      // let chargeId = confirmPaymentIntent.latest_charge
    //   const transfer = await stripe.transfers.create({
    //    amount: 1000,
    //    currency: 'usd',
    //    source_transaction: "ch_3NqD18A3IHX9ZoeJ0k8fjNNU", //Charge ID
    //    destination: 'acct_1NqCmYPGcLLb7t4Y', //Connect Account ID
    //  });
#

How can i transfer funds that are available in platfrom stripe account(in pending OR in connect_reserve) to another connect account ?

oak kiln
#

let's stop there and I'll answer that part

#

Still when i create transfer and provide latest charge id which is returned in confirm payment intent response in source transaction... it gets successfull and funds are transferring in connect account.... but when i try to tranfer funds in another connect account without source_transaction param.....it gives me an error: Insufficient balance. even when balance is present in stripe platfore in "pending".
that's all normal and exactly what the docs describe, and is exactly why you normally should totally use source_transaction yes ๐Ÿ™‚

#

please read the following links in detail

mighty sorrel
#

ok. but we get latest_charge property when we confirm paymentIntent by providing {
// payment_method: 'pm_card_visa',
// return_url: 'https://www.google.com/success', // Replace with your actual success URL
// }
// );
But i don't want to add payment method.. i want to transfer funds that are already present in stripe connect account.

mighty sorrel
oak kiln
#

i want to transfer funds that are already present in stripe connect account.
then you can use stripe.transfers.create, but that only works when you have that amount of available balance, which means you need to set your platform to manual payouts, and wait a few days for incoming funds from charging end-customers to be available before you can make the Transfer. Or, use source_transaction .

mighty sorrel
#

ok Thnks... i will try this