#swmonster74_connect-external-accounts

1 messages ยท Page 1 of 1 (latest)

fringe prawnBOT
#

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

๐Ÿ“ 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.

lament pawn
#

Could you pleaase share the PaymentMethod Id ?

#

And how exactly are you adding it ?

humble mango
#

sure

#

public function createSetupIntent(Request $request)
{
$user = User::where('id', auth()->user()->id)->with('profile')->first();
if (!$user) {
return response()->json(['success' => false, 'error' => 'Utente inesistente'], 404);
}
$stripe = new StripeClient(config('app.stipe_secret_key'));
// StripeGateway::setApiKey();
try {
// Crea un SetupIntent per il conto bancario
$setupIntent = $stripe->setupIntents->create([
'payment_method_types' => ['sepa_debit'], // Specifica il metodo di pagamento (es. SEPA)
],
[
'stripe_account' => $user->stripe_account_id // Passa l'account connesso nell'header
]);

        // Invia il client_secret al frontend
        return response()->json(['success' => true, 'client_secret' => $setupIntent->client_secret, 'name' => $user->profile->businessname, 'email' => $user->email,'stripe_account_id'=>$user->stripe_account_id]);
    } catch (\Exception $e) {
        // Gestisci eventuali errori
        return response()->json(['success' => false, 'error' => 'Errore: ' . $e->getMessage()], 404);
    }
}
lament pawn
#

This will create a PaymentMethod for a Customer and not for a Connected Account.

#

What you want to do exactly with the PaymentMethod ?

#

Can you share the guide you are following ?

humble mango
#

just looking on web and APi docs..

#

any suggestion for a guide?

lament pawn
#

What type of Conncet Account are you using ?

humble mango
#

$user->stripe_account_id but this is referred an connect user

#

$account = Account::create([
'type' => 'express', // oppure 'custom' o 'standard'
'country' => 'IT',
'email' => $user->email,
'capabilities' => [
'transfers' => ['requested' => true],
],
]);

fringe prawnBOT
humble mango
#

Hy @kindred moon

humble mango
#

ok thank's i will read this and check

fringe prawnBOT
#

swmonster74_connect-external-accounts

humble mango
#

Is it possible that the withdrawal method does not appear in the list because I have not completed the account registration? using onboarding? looking at the users I created in the test area they are all restricted

kindred moon
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. Based on what you're describing you aren't seeing an External Account for the Connected Account because you aren't creating an External Account. Instead you're creating a Payment Method on the Connected Account, which is what you would use to charge a Customer of the Connected Account.

The onboarding process for Express Connected Accounts will collect banking details from your users, and should be how they provide those details to Stripe.

humble mango
#

ok i fix it, when the stripe connect account is not complete (have restrictions) the External acount method return no records..

#

thank's..

#

bye bye