#Ragava
1 messages · Page 1 of 1 (latest)
Generally this isn't possible unless your user has their own Stripe account that is connected to your account
I will be having users bank account number and routing number. still it is not possile?
Not unless you add that bank account as an external account to your own account for payouts
so i need to add their bank account as external account using createExternalAccount api and after that i need create payout?
but can i create external account using test keys
i tried with test keys but i got an error like only live keys is accepted for this method?
What error?
You'd add the bank account in the Dashboard
yes
i added my bank account details to my stripe dashbaord
i am a node.js developer
const customer = await stripe1.customers.create({
description: Customer for Payout,
});
console.log("customer==>", customer);
const token = await stripe1.tokens.create({
bank_account: {
country: 'US',
currency: 'usd',
routing_number: '110000000',
account_number: '000123456789',
},
});
first i created customer and then created token using users bank account number and routing number
I don't understand what you're doing there. You can't payout to a customer
Your external accounts are managed here: https://dashboard.stripe.com/balance/overview
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
const externalAccount = await stripe1.accounts.createExternalAccount(
'my stripe account id',
{
external_account: token.id,
},
);
while i try to create external account i am facing an error
Only live keys can access this method.
As I explained, you manage the external accounts for your account in the Dashboard
i cannot create by using stripe api? could you pls tell me
my doubt is not reagrding stripe dashboard
No, not unless you're using Connect
first i need to use connect api ?
No, you shouldn't use Connect unless your business use case requires
I'm only stating that the createExternalAccount only really works for connected accounts
Your original question asked how you can transfer to a users bank account, and the answer is you can't unless they have a Stripe account
let me repeat my question and this a technical question . I need to write a code i.e., we need to send the funds from stripe account to users bank account (using account number and routing number) using stripe apis in node.js
I am sry to ask you these many doubts
i am struggling for this from yesterday but i haven't got a perfect solution
I need to write a code i.e., we need to send the funds from stripe account to users bank account (using account number and routing number) using stripe apis in node.js
And as I've explained, you can't transfer directly to a user's bank account like that
The way this would normally work is with Connect:
Your user would have their own Stripe account connected to your account (the platform). As the platform you're able to transfer funds between accounts, which can then be paid out to the users bank account
Otherwise you can't just say 'send $X to bank account Y'. Stripe doesn't support those flows
okay thank you much for help