#Ragava

1 messages · Page 1 of 1 (latest)

loud salmon
#

Generally this isn't possible unless your user has their own Stripe account that is connected to your account

calm burrow
#

I will be having users bank account number and routing number. still it is not possile?

loud salmon
#

Not unless you add that bank account as an external account to your own account for payouts

calm burrow
#

so i need to add their bank account as external account using createExternalAccount api and after that i need create payout?

loud salmon
#

Generally speaking yes

#

But that's not really recommended

calm burrow
#

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?

loud salmon
#

What error?

calm burrow
#

Only live keys can access this method.

#

this is the error

loud salmon
#

You'd add the bank account in the Dashboard

calm burrow
#

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

loud salmon
#

I don't understand what you're doing there. You can't payout to a customer

calm burrow
#

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.

loud salmon
#

As I explained, you manage the external accounts for your account in the Dashboard

calm burrow
#

i cannot create by using stripe api? could you pls tell me

#

my doubt is not reagrding stripe dashboard

loud salmon
#

No, not unless you're using Connect

calm burrow
#

first i need to use connect api ?

loud salmon
#

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

calm burrow
#

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

loud salmon
#

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

calm burrow
#

okay thank you much for help