#919889495555_api

1 messages ยท Page 1 of 1 (latest)

gloomy compassBOT
#

๐Ÿ‘‹ 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.

ashen spade
#

What is this bank account used for? For payment or payout?

gloomy compassBOT
runic sphinx
#

how to create payout after creating the account

drowsy marsh
#

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.

runic sphinx
#

I have create but still not working therefore I am asking you

#

can I share the code here

drowsy marsh
#

yes, you should share it

runic sphinx
#

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)
]);

drowsy marsh
drowsy marsh
#

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.

runic sphinx
#

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?

drowsy marsh
#

not sure what you're asking, sorry.

gloomy compassBOT
runic sphinx
#

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.

drowsy marsh
scenic relic
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

runic sphinx
#

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.

scenic relic
#

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

runic sphinx
#

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?

scenic relic
#

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

runic sphinx
#

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?

scenic relic
#

yes it should be

runic sphinx
#

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.

scenic relic