#rajveer_api
1 messages Β· Page 1 of 1 (latest)
π 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/1216678267197591552
π Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- rajveer_api, 1 hour ago, 22 messages
- rajveer_api, 2 days ago, 26 messages
Hi! you can't payout to a Token object, you have to attach the token to a Connect account first.
I'd suggest reading and implementing a full guide like https://docs.stripe.com/connect#route-payments-and-pay-out to get started.
Listen i have a test mode stripe account so what can i do for withdrawal process?
follow one of the guides linked on the page above.
not understand
what can I clarify for you?
listen i have use the test mode stripe account so with the use of testing bank account can i will made the withdrawal demo?
you need to integrate Stripe Conenct and create and onboard connected accounts before you can even begin to think about implementing payouts.
so hence, you'd follow one of the getting-started guides for Connect.
listen
#πrules 2 : be civil (telling people "to listen" is quite rude).
I completely understand your issue. You have a bank account token btok_xxx and you think you can use that to do a payout in testmode(a withdrawal as you call it). You can't, that's not how Stripe works. You need to create a Connect account for the user who is going to receive money, onboard that account to collect identity verification, and then you can start processing payments and transferring money to the account in order to make payouts to them. It's a whole process and quite complicated.
So the advice is β start with a Connect guide, linked above.
hope that helps!
so in test mode can withdrawal functionality will works?
yes.
so brother can you provide me any simple demo for that?
no, but I can provide the docs that help you to build such a demo.
okay so please provide me
I did, back here ^^
but in this doc not any resources for the test mode
not sure what you mean, you can build all that code in test mode using test mode API keys.
I've done it myself many times
so please send me the code because i have the urgent
I can't do that but I can provide the docs that help you to build such a demo.
but in docs i can't understand it
what can I clarify for you?
okay first i was create this api is it right?
// Route to create a bank account token
app.post('/create-bank-account-token', async (req, res) => {
try {
const bankAccountToken = await stripe.tokens.create({
bank_account: {
country: 'IN',
currency: 'INR',
account_holder_name: req.body.account_holder_name,
account_holder_type: req.body.account_holder_type,
routing_number: 'HDFC0000261',
account_number: '000123456789'
},
});
console.log(bankAccountToken);
console.log(bankAccountToken.id);
res.json({ token: bankAccountToken.id });
} catch (err) {
console.error('Error creating bank account token:', err);
res.status(500).json({ error: 'Could not create bank account token' });
}
});
that's one very small part , yep
now see i was create this api is it right?
// Route to initiate a withdrawal
app.post('/withdraw', async (req, res) => {
console.log("Hello");
console.log("Hello", req.body.amount);
console.log("Hello", req.body.destination);
console.log(req.body);
try {
const withdrawal = await stripe.payouts.create({
amount: req.body.amount,
currency: 'INR',
destination: req.body.destination,
// amount: 300,
// country: 'IN',
// currency: 'INR',
// account_holder_name: "Mansi",
// account_holder_type: "Individual",
// routing_number: 'HDFC0000261',
// account_number: '000123456789'
});
console.log(withdrawal)
res.json({ message: 'Withdrawal initiated successfully' });
} catch (err) {
console.error('Error initiating withdrawal:', err);
res.status(500).json({ error: 'Could not initiate withdrawal' });
}
});
no.
sorry we're going around in circles here
I told you an hour ago: you can't payout to a Token object [which is what that code is trying to do], you have to attach the token to a Connect account first.
you really need to stop, ignore this code for now, and go read and understand the docs for Connect in detail and ask any clarifying questions about Connect.
okay so after this API create-bank-account-token what can i do you can guide me step by step process plesae
the step by step process is one of the guides linked at https://docs.stripe.com/connect#route-payments-and-pay-out .
but listen i have an indian stripe account so can work?
yes.
okay so now we will not talk for code okay we will discuss only on what i will do in stripe dashboard so please tell me only steps
you have to write code for this.
so after the token API plesae provide me remaining code
No. Nobody will be providing the code for you. You wil need to read docs, understand things, and write your own code. Sorry!
okay see i have create one api for create account is it right?
stripe.accounts.createExternalAccount(
'acct_1032D82eZvKYlo2C', // The ID of the Stripe account you're adding the external account to
{
external_account: {
object: 'bank_account',
country: 'IN',
currency: 'inr',
account_holder_name: 'Mansi Purohit',
account_holder_type: 'individual', // Or 'company' if it's a business account
account_number: 'HDFC0000261',
routing_number: '000123456789', // IFSC code for Indian accounts
},
},
function (err, bankAccount) {
// Handle the response or error
if (err) {
console.error(err);
} else {
console.log(bankAccount);
}
}
);
and this api is necessary for test mode or ot?
In order to use Stripe Connect you will first need to create a Stripe Connected account, which is different from a bank account. If you follow this guide closely it will explain everything in detail: https://docs.stripe.com/connect/collect-then-transfer-guide
i can't understand the docs i am very confused
What part are you confused about exactly?
i have only created this API:
app.post('/create-bank-account-token', async (req, res) => {
try {
const bankAccountToken = await stripe.tokens.create({
bank_account: {
country: 'IN',
currency: 'INR',
account_holder_name: req.body.account_holder_name,
account_holder_type: req.body.account_holder_type,
routing_number: 'HDFC0000261',
account_number: '000123456789'
},
});
console.log(bankAccountToken);
console.log(bankAccountToken.id);
res.json({ token: bankAccountToken.id });
} catch (err) {
console.error('Error creating bank account token:', err);
res.status(500).json({ error: 'Could not create bank account token' });
}
});
then further process i am very confused
Did the guide tell you to create this code?
no
i was do some R&D and all and create this code
I was tried this process for last 15 days but not working so can you and i was tried to find any demo for this but no so plesae help me because it's very urgent
I can't explain how Connect works better than professionally written docs, unfortunately. I can only answer specific questions if you have any. But otherwise I strongly advice you to go through the docs and my colleague and I shared, before attempting to write any code.
Hello
π taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
look i have tried the withdrawal past 20-25 days but not working so please help me
for payout issues please contact https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
no means i don't understand the flow i don't understand which APIS will make for this
have you read the docs that my colleagues sent you?
what exactly?
I walked you through it last week, where are you stuck?
currently i have create this API :
app.post('/create-bank-account-token', async (req, res) => {
try {
const bankAccountToken = await stripe.tokens.create({
bank_account: {
country: 'IN',
currency: 'INR',
account_holder_name: req.body.account_holder_name,
account_holder_type: req.body.account_holder_type,
routing_number: 'HDFC0000261',
account_number: '000123456789'
},
});
console.log(bankAccountToken);
console.log(bankAccountToken.id);
res.json({ token: bankAccountToken.id });
} catch (err) {
console.error('Error creating bank account token:', err);
res.status(500).json({ error: 'Could not create bank account token' });
}
});
did you do this #1215645650012864572 message
yess but it's not working
you can't create a payout on your own account using these APIs
you need to login to your dashboard
and set the information there
but i have test mode stripe account
so in that i have not permission to add bank account
but i was use the test bank account for this i will only create the successfull demo that's it
what's your account ID?
acct_1OFED1SD98LCdufV
did you manage to login to the dashboard?
yes
please visit https://dashboard.stripe.com/settings/payouts
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
then click on the test mode switch
but i was use test mode so how can i do it?
once you do, you can then click on View all settings
and then you can click on Add bank account
and setup the payout schedule
if you have any issues, you need to speak with https://support.stripe.com/?contact=true to get help when it comes to dashboard actions, here on this channel we can help you with coding questions
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
but i will do it in test mode not in live mode
okay i was turn it now?
I'm not sure I understand
look i on the test mode then
would you mind sharing a screenshot?
nono i ask you to the next step?
okay i was check it in that all settings are disabled because they all are available in live mode only
would you mind sharing a screenshot?
Hi π jumping in as my teammate needed to step away. Do you see a message of any sort when you hover over the Add bank account button? I'm not sure offhand why it would be grayed out.
Alright, based on what I'm seeing in the thread history, your next steps here are to switch to livemode and provide bank details to add an external account to your Stripe account. I'm pretty sure this is required to simulate payouts in your test account.
Looking back at your original request, I see you're providing the destination parameter when creating a Payout. That is not necessary, nor supported, when you're creating a Payout for your own account. If you omit that parameter without making any other changes to your account, do you continue to encounter an error (I believe something about not having an external account or bank account)?
you will guide me the further process please
Sure, turn off the testmode toggle, click the Add bank account button, and enter your bank account details.
but i will do it in test mode
but i want to do it all process in test mode
You will need to enter a bank account in livemode in order to test payouts in testmode.
but how it's work like the money ws testing and account is real?
You won't actually be using that account, but it needs to be there for testmode payouts to work. (Assuming you are hitting an error when you remove the destination parameter from your request to create a Payout)
but if i create the custom test account so it will work or not?
How is this related to a Custom account? You're trying to pay out for your own account, right?
yess means i want withdraw money from stripe to bank account that's it
Then it doesn't sound like you need to worry about a Custom account, or any sort of Connected Account. Those are only involved if you want to pay out money to other people.
yes yes means i want if multiple accounts will come then pay them like this
What do you mean by multiple accounts?
means i have pay the money to the multiple accounts
but listen now do this for only one account
When you say multiple accounts, is that multiple bank accounts, multiple Stripe accounts, are they all owned by you or by third parties?
No, I need to understand exactly what you're trying to build, there is no point testing for a single account architecture if that doesn't support the flow you're trying to build.
means listen i want whole functionality will i have one stripe test mode account and i want to withdraw money from that to one test bank account.i want this currently
That's not a good test if you want to pay out to third-parties, but okay, add a bank account in livemode.
but the test account will not work?
look you can guide me just for my requirment
I've tried, did you add a bank account in livemode as I've suggested yet?
is it necessary to add bank acount?
Yes, to test in the scenario you're describing.
but if i will add any Custom account the the withdrawal is possible or not?