#kenil-d-hyperlink-infosystem_docs
1 messages ¡ Page 1 of 1 (latest)
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.
- kenil-d-hyperlink-infosystem_docs, 4 days ago, 13 messages
đ 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.
I feel like we had this exact same discussion last week in the thread linked above, no?
In any case, this guide explains how to pay out funds to a connected account's external account (bank): https://docs.stripe.com/connect/add-and-pay-out-guide
However, I do not fully understand the process for creating users' bank accounts and subsequently releasing payments to their accounts.
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
yes one account is connected for payout
Please share an example or reference URL code for Node.js.
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
There's code snippets at the URL above
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 ?
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
Please provide me with the steps, including the names of the functions such as stripe.paymentMethods.create(), to help me understand more easily.