#919889495555_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/1288408644630610003
๐ 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.
- 919889495555_api-account-support, 21 hours ago, 32 messages
What is this bank account used for? For payment or payout?
how to create payout after creating the account
this is covered in the docs for the type of account you're creating, so check the guide that you are following for building this, andd it will explain how to collect payout details.
I have create but still not working therefore I am asking you
can I share the code here
yes, you should share it
for account creating I am using this code :
return self::Stripe()->accounts->create([
'type' => 'express', // Type of account (can be 'custom', 'express', or 'standard')
'country' => 'US', // The country of the account
'email' => $email, // The email of the account owner
'capabilities' => [ // Define capabilities like accepting payments
'card_payments' => ['requested' => true],
'transfers' => ['requested' => true],
],
]);
after that I am adding the bank details for sending the payout
return self::Stripe()->accounts->createExternalAccount(
'acct_1Q2peGRPmqvRIA6b', // Replace with the connected account ID
[
'external_account' => [
'object' => 'bank_account',
'country' => 'US',
'currency' => 'usd',
'account_holder_name' => 'John Doe',
'account_holder_type' => 'individual',
'routing_number' => '110000000', // Replace with real routing number
'account_number' => '000123456789', // Replace with real account number
],
]);
so now this api is working and they will response
but when I create the payout these time this function not working for me
return self::Stripe()->payouts->create([
'amount' => 100, // Payout amount in the smallest currency unit (e.g., cents for USD)
'currency' => 'usd', // Currency (e.g., 'usd', 'eur')
'destination' => 'acct_1Q2peGRPmqvRIA6b', // The destination account for the payout (bank account or debit card ID)
]);
hmm, usually you don't do that for Express accounts. The account holder enters their bank details as part of the onboarding when you direct them to the AccountLink. https://docs.stripe.com/connect/express-accounts#create-link
that code is wrong really, the destination can not be a connected account.
plese check the docs which describe how to make a manual payout in the API : https://docs.stripe.com/connect/manual-payouts#regular-payouts .
however most likely you are skipping multiple steps here so it's not going to work. Possibly you've skipped:
- onboarding the account and providing KYC info
- processing payments and transferring funds to the connected account
- managing the 'payout delay' since funds are not immediately available to be paid out
it's extremely complex, so I'd suggest spending a lot of time reading the docs, and then working with a guide like https://docs.stripe.com/connect/collect-then-transfer-guide to implement what it describes.
Actually, I don't need to require this so can you please suggest to me which API I need to implement for my requirement fill if you don't mind can I share my requirements?
not sure what you're asking, sorry.
I have already received payment via the payment gateway from my account. I want to transfer the amount some other customer bank account. so what kind of process follow for this work.
Connect can be used for a flow like that. You can start with https://docs.stripe.com/connect/how-connect-works
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
I want to transfer the amount from my account to another customer's bank account so please let me know which process need to follow. For example: I am the admin and customer Mohan is paying the amount in my account. after 2 weeks I want to transfer this amount to another customer's Shohan account.
as we discussed yesterday you can't send funds to customers directly using Stripe
Shohan must be a connected account
and then you transfer the funds to their Stripe Balance and then it gets paid out to their bank account
ok, I understand your point. for example:- Shohan is the vendor and I am the admin so can I create a Shohan account via API after creating the API I will add Shohan's bank account based on the account connected ID after that can I pay the amount in the Shohan account?
yes
but first the funds will be transferred from your platform account's balance to their connected account balance
and then paid out to their bank account
so is this process fine for creating the account:
return self::Stripe()->accounts->create([
'type' => 'express',
'country' => 'US',
'email' => $email,
'capabilities' => [
'card_payments' => ['requested' => true],
'transfers' => ['requested' => true],
],
]);
now after that, I am creating bank accounts for the users:
return self::Stripe()->accounts->createExternalAccount(
'acct_1Q2peGRPmqvRIA6b', // Replace with the connected account ID
[
'external_account' => [
'object' => 'Yes Bank',
'country' => 'US',
'currency' => 'usd',
'account_holder_name' => 'John Doe',
'account_holder_type' => 'individual',
'routing_number' => '110000000',
'account_number' => '000123456789',
],
]);
Now you see that I have completed two steps for Shohan account creation and bank details add. Is it ok or not?
yes it should be
ok, can you suggest after that how can I transfer a balance from my platform to Shohan's account and from Shohan's account will automatically transfer his bank account.