#stephy

1 messages · Page 1 of 1 (latest)

brazen stirrupBOT
wispy island
#

The payment method is only really supported by our Invoicing API, using the Hosted Invoice Page

indigo harness
#

Hi

#

Shall I tell my requirement?

wispy island
#

Sure

indigo harness
#

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?

wispy island
#

Transfer to another Stripe account, or an external bank account?

indigo harness
#

They will provide us their bank account numbers so I send money to their bank account

#

Directly

wispy island
#

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

indigo harness
#

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

wispy island
#

The ACH section you're referring to is to enable collecting payments via ACH means, not sending funds from your Stripe balance

#

You just need to configure an external account in the Dashboard and we'll automatically pay out the balance on a regular schedule

indigo harness
#

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?

wispy island
#

Did you read the Payouts doc I linked above?

indigo harness
#

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

wispy island
#

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

indigo harness
#

How would I set up this?

#

Is it doing via code?

wispy island
indigo harness
#

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?

wispy island
#

If you're onboarding accounts to your platform, the hosted onboarding UI collects external bank account information from the users

indigo harness
#

Ok then I want to do testing I want to check If the money transfer or not then how to do in test mode?

brazen stirrupBOT
random latch
#

what exactly are you looking to test? which money transfer, from whom to whom?

indigo harness
#

Consedring am a owner and need to tranfer the amount to my employees via ACH credit card tranfer then what I do?

random latch
#

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.

indigo harness
#

Not understand

random latch
#

what can I clarify?

indigo harness
#

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,?

random latch
#

when you are ready to write code there are guides and quickstarts linked from that landing page

indigo harness
#

Do you integrated this using laravel?

random latch
#

we don't have specific docs for using Lavarel

indigo harness
#

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

random latch
#

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.

indigo harness
#

How? I didn't get it?

random latch
#

what code did you use to create the account?

indigo harness
#

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

random latch
#

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

indigo harness
#

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???

random latch
#

that seems quite reasonable yes, that's how to create an Express account and begin the onboarding.

indigo harness
#

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

wispy island
#

Let me know if you have any specific issues

indigo harness
#

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

wispy island
#

I'd recommend trying it and see!

indigo harness
#

Got error

#

Received unknown parameters 0,1

wispy island
indigo harness
#

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

wispy island
#

Your parameters are invalid, specifically:

'capabilities' => [
                'card_payments',
                'transfers',
            ],
indigo harness
#

Again error?

wispy island
#

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

indigo harness
#

req_R1OaTWwTr9sMjp

wispy island
#

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

indigo harness
#

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?

wispy island
indigo harness
#

I am work with test mode

wispy island
indigo harness
#

Now I need to fill all the information like profile and averything??

wispy island
#

Correct

whole trench
#

Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.