#rajat-connect-payout

1 messages · Page 1 of 1 (latest)

shrewd summitBOT
olive abyss
#

rajat-connect-payout

astral sand
#

payouts.create({
amount: 1000, // Amount in cents
currency: 'usd', // Currency code
destination: 'acct_xxxxxxxxxxxx', // Replace with the connected account ID
});
I am using this function to send to a connect account

olive abyss
#

I think you're misunderstanding the whole feature here based on the code you wrote

#

a Transfer is used to move money from your own platform account's balance within Stripe to a connected account's balance still within Stripe.
a Payout is used to move money from a Stripe account's balance within Stripe to its external account (card, bank account) outside of Stripe.

#

Which of the 2 are you trying to do?

astral sand
#

then gateway charges apply when i make transaction

#

to connect account

olive abyss
#

I'm sorry but none of those words make sense to me

astral sand
#

You have insufficient funds in your Stripe account. One likely reason you have insufficient funds is that your funds are automatically being paid out;

#

I am facing this error now

olive abyss
#

I mean sure

#

Sorry can you take a step back for a bit and explain your issue? You started with code that would never work, now you get a new error without any context on what you changed.
Please provide a clearer summary so that I can help you

astral sand
#

const paymentCriteria = {
amount: payload.amount * 100, // Amount in cents to pay to the customer
currency: payload.currency,
destination: payload.connectId, // merchant's account ID
};
let paymentData = await stripe.transfers.create(paymentCriteria);

Now I'm making transfer

#

Please help me out

olive abyss
#

Please read this doc first which explains how to fix it

astral sand
#

nice i got it is coming because we are sending amount with cents like $5.72 it is giving an error but when i send $5 only then it transfers successfully