#Hiroshi - Connect Accounts

1 messages · Page 1 of 1 (latest)

odd charm
#

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

primal walrus
#

Hi, thanks for helping

#

My current process is the following

odd charm
#

Okay

  1. What type of connect account?
  2. What kind of charge/payment?
primal walrus
#

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

odd charm
#

Okay let's go back to your initial question and start there

primal walrus
#

ok good

odd charm
#

And my response, what type of connected accounts are you using?

#

And how are you creating the payment intents?

primal walrus
odd charm
#

Standard, Express, or Custom

primal walrus
#

Custom/Individual, Custom/Company

#

I chose custom because my clients are based in various parts of the world, in this case the netherlands.

odd charm
#

Okay Custom accounts. Now, how are you creating your charges?

primal walrus
#

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'
    }
  });
odd charm
#

We have

  • direct charges
  • destination charges
  • separate charge and transfers
primal walrus
#

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:

odd charm
#

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