#stephy
1 messages · Page 1 of 1 (latest)
The payment method is only really supported by our Invoicing API, using the Hosted Invoice Page
Sure
So I have a stripe account and I want to tranfer the amount from my account to another accounts via ach payment method how would do this?
Transfer to another Stripe account, or an external bank account?
They will provide us their bank account numbers so I send money to their bank account
Directly
It's not possible to move money out of Stripe to third-parties that way. You need to setup an external account on your Stripe account, and payout the balance to that
Can you tell me briefly...I didn't understand because this is first time am working in stripe...so give me more idea
I already create a stripe account where am enabled the ach payment direct debit section and I don't know how will I transfer the amount to the bank accounts via ach transfer
The ACH section you're referring to is to enable collecting payments via ACH means, not sending funds from your Stripe balance
If you want to pull your funds from your Stripe balance to a bank account, those are called Payouts: https://stripe.com/docs/payouts
You just need to configure an external account in the Dashboard and we'll automatically pay out the balance on a regular schedule
Oh..but I want to tranfer the money....so I tell a real time secanario .like ifa am a owner and I need to tranfer the amount to my employees account then what I do? Where I start first ? Which api need to integrate?
Did you read the Payouts doc I linked above?
That's for recieving money right?
But my requirement not receiving I want to send or transfer the money to accounts
I know only US this functionality is available....ans am doing this feature for us client
As I explained, you can't transfer funds from your Stripe account to third-party external accounts (only the nominated bank account on your Stripe account)
If you want to transfer funds to third-parties, you need to setup as a Connect platform
Yes, you'd need some development expertise: https://stripe.com/docs/connect
I have one doubt also...if am providing a section to enter the account number and routing number section to the employees and if they enter the data then can i connect that account to my connected account section via code?
If it's possible which api used for this to do?
If you're onboarding accounts to your platform, the hosted onboarding UI collects external bank account information from the users
Ok then I want to do testing I want to check If the money transfer or not then how to do in test mode?
what exactly are you looking to test? which money transfer, from whom to whom?
Consedring am a owner and need to tranfer the amount to my employees via ACH credit card tranfer then what I do?
you'd design the integration so that funds from incoming payments flow from your platform processing the payment, are transferred to a connected account representing the employee, and then those Stripe accounts have a payout schedule that pays out their balance.
Not understand
what can I clarify?
I not understand where I have start? And am working with laravel so ..to integrate this one in my project which api and how it used,?
the first step is to read through https://stripe.com/docs/connect and the linked pages in detail before writing any code
when you are ready to write code there are guides and quickstarts linked from that landing page
Do you integrated this using laravel?
we don't have specific docs for using Lavarel
So am from India can i connect test account here ? Can I integrate and test here?
Am tried to connect with a test account with my indian number but after all setup I didn't see any accounts in my portal
I think in Indian accounts we disable the list view of Connect accounts in the dashboard.
If you search the account ID acct_xxx of the connected account that should pull it up.
How? I didn't get it?
what code did you use to create the account?
Now manually tried...
I didn't get the code to generate account so tried manul way
In connect I clixk create button after that I got a link and go through link and complete the process with Indian number
I suggest not using that manual way, and write some code instead using one of our guides
this chat is for developer questions, let me know if you run into difficulty with some of the code you write
Can you provide me the code to create the account ?
public function connectAccount(Request $request)
{
Stripe::setApiKey(config('services.stripe.secret'));
$account = Account::create([
'type' => 'express',
'country' => 'US',
'capabilities' => [
'card_payments',
'transfers',
],
]);
$accountLinks = \Stripe\AccountLink::create([
'account' => $account->id,
'refresh_url' => 'https://example.com/refresh',
'return_url' => 'https://example.com/return',
'type' => 'account_onboarding',
]);
// Return the account link URL to the front-end
return response()->json(['url' => $accountLinks->url]);
}
This is I got is it correct???
that seems quite reasonable yes, that's how to create an Express account and begin the onboarding.
Shall I use this code to create a connected account now?
Is this work?
My requirement is when they entered their bank account number and routing number based on that create a account and connectd to here
Yep, that code should facilitate that. You'll likely want to use the test data here to correctly onboard/verify the account in test mode: https://stripe.com/docs/connect/testing
Let me know if you have any specific issues
But if am in India is this possible to integrate and test?
My requirement is when they entered their bank account number and routing number based on that create a account and connectd to here
Should be with Express accounts yep
I'd recommend trying it and see!
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center 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.
req_SJwPKY76hOnonN
public function process(Request $request)
{
$keys = PaymentCredentials::where('mode_active', '1')->where('type_payment', 'stripe')->first();
Stripe::setApiKey($keys->secret_key);
// Create a bank account token
$bankAccountToken = Token::create([
'bank_account' => [
'country' => 'US',
'currency' => 'usd',
'account_holder_name' => $request->input('account_holder_name'),
'account_holder_type' => 'individual',
'routing_number' => $request->input('routing_number'),
'account_number' => $request->input('account_number'),
],
]);
// Create a Stripe account
$account = Account::create([
'type' => 'express',
'country' => 'US',
'capabilities' => [
'card_payments',
'transfers',
],
]);
// Attach the bank account to the Stripe account
$account->external_accounts->create([
'external_account' => $bankAccountToken->id,
]);
// Create a customer and link it to the Stripe account
$customer = Customer::create([
'email' => $request->input('email'),
'source' => $bankAccountToken->id,
]);
// Update the Stripe account with the customer ID
$account->metadata->customer_id = $customer->id;
$account->save();
// Return the account ID and customer ID to the front-end
return response()->json([
'account_id' => $account->id,
'customer_id' => $customer->id,
]);
}
Code I generated
Your parameters are invalid, specifically:
'capabilities' => [
'card_payments',
'transfers',
],
I recommend you study the API reference, here: https://stripe.com/docs/api/accounts/create#create_account-capabilities
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Again error?
Ok? Can you share some more details?
We've been chatting for almost 2.5 hours at this point. Soon we'll close the thread and ask you to come back tomorrow if you have more questions
req_R1OaTWwTr9sMjp
Did you look at the error?
Are you catching and logging the error message in your code? It's quite verbose and explains the issue clearly
Customer creation error something....but the account is created
But it's restricted
After connect the account how can I transfer the amount to these accounts if I have multiple accounts and I want tranfer the amount in each month so how can I do that?
Did you onboard the account via the hosted onboarding by creating an Account Link? https://stripe.com/docs/connect/express-accounts#create-link
I am work with test mode
Sure, the accounts still need to be onboarded using test data: https://stripe.com/docs/connect/testing
Now I need to fill all the information like profile and averything??
Correct
Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.