#Hiroshi - Connect Accounts
1 messages · Page 1 of 1 (latest)
i just created bank account for my customers
and when i create a paymentIntent
it go directly to the customer, that's ok
but, what about if i want to keep the amount first, take a comission, and send the money to the client after that?
Quoting here because we want to keep all the context together
Okay
- What type of connect account?
- What kind of charge/payment?
1.- I create the payment intent pointing to the customer account id => acct_**********
2.- The payment go directly to my customer
The process i want to achieve:
1.- Create payment intent in the main account and collect the money
2.- Take a small fee
3.- Move the money to the customer account
how can i achieve this?
i just pointed to main account but i'm not able to send to the customer with "stripe.transfers"
i'm receiving the following error:
Error: Insufficient funds in Stripe account
i reviewed the main account balance
the following
Available to pay out to your bank account
€0.00
Currently on the way to your bank account
€0.00
Will be available soon
€1,398.55
Total
€1,398.55
so, looks like the money is not avaiable to transfer from the main account to the customer connected account
Okay let's go back to your initial question and start there
ok good
And my response, what type of connected accounts are you using?
And how are you creating the payment intents?
company and individual
Custom/Individual, Custom/Company
I chose custom because my clients are based in various parts of the world, in this case the netherlands.
i used this
for direct payment destination
const paymentIntent = await stripe.paymentIntents.create({
amount: calculateOrderAmount(items),
currency: "eur",
payment_method_types: ['ideal'],
transfer_data: {
destination: 'acct_1KYA0U2UlNID6vFD'
}
});
We have
- direct charges
- destination charges
- separate charge and transfers
for destination, it worked fine
const paymentIntent = await stripe.paymentIntents.create({
amount: calculateOrderAmount(items),
currency: "eur",
payment_method_types: ['ideal']
});
in this one, i'm moving the money to the main customer (direct)
i want to take a small fee, and transfer to the destination after that
so, i tried this
await stripe.transfers.create({
amount: 1200,
currency: 'eur',
destination: 'acct_1KYA0U2UlNID6vFD'
})
and i got this:
The first payment intent and transfer appear to be a separate charge & transfer process
In that process you (the platform) process the payment intent, the amount goes to your balance, and you transfer from your balance to the connected account
Take a look at this funds flow and let me know if you think this approach will work for you.
https://stripe.com/docs/connect/charges-transfers#collecting-fees
If it makes more sense to do destination charges, you would just need to add the application_fee_amount to your Payment Intent request: https://stripe.com/docs/connect/destination-charges#application-fee