#rajat-connect-payout
1 messages · Page 1 of 1 (latest)
rajat-connect-payout
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
https://stripe.com/docs/api/payouts/create#create_payout-destination
The ID of a bank account or a card to send the payout to. If no destination is supplied, the default external account for the specified currency will be used.
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?
I'm sorry but none of those words make sense to me
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
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
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
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