#kenil-d-hyperlink-infosystem_docs

1 messages ¡ Page 1 of 1 (latest)

vocal sonnetBOT
fresh jungleBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

vocal sonnetBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1269958903190392892

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

dawn grove
#

I feel like we had this exact same discussion last week in the thread linked above, no?

still slate
#

However, I do not fully understand the process for creating users' bank accounts and subsequently releasing payments to their accounts.

dawn grove
#

Which part specifically and what have you tried so far?

#

Have you created/onboarded any accounts to your platform? Because that is ultimately the first step

still slate
#

yes one account is connected for payout

#

Please share an example or reference URL code for Node.js.

dawn grove
#

OK, then depending on the payout schedule you set when you created the account you may be able to manually create payouts for that account via the API. Otherwise they'll be automatic according to the schedule

dawn grove
still slate
# dawn grove OK, then depending on the payout schedule you set when you created the account y...

const stripe = require('stripe')('YOUR_STRIPE_SECRET_KEY');

async function processWithdrawal() {
const customer = await stripe.customers.create({ email: 'user@example.com' });
const token = await stripe.tokens.create({
bank_account: {
country: 'US',
currency: 'usd',
account_holder_name: 'John Doe',
account_holder_type: 'individual',
routing_number: '110000000',
account_number: '000123456789',
},
});
const paymentMethod = await stripe.paymentMethods.create({
type: 'bank_account',
bank_account: token.id,
customer: customer.id,
});
const payout = await stripe.payouts.create({
amount: 1000,
currency: 'usd',
payment_method: paymentMethod.id,
payment_method_types: ['bank_account'],
});
console.log(payout);
}

processWithdrawal();

#

its a right code ?

dawn grove
#

Doesn't look anything like the code examples I've shared from the documentation, no. Where are you creating a Customer and Payment Method? They're irrelevant in this scenario

still slate
#

Please provide me with the steps, including the names of the functions such as stripe.paymentMethods.create(), to help me understand more easily.