#swmonster74_connect-external-accounts
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/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.
- swmonster74_api, 2 days ago, 5 messages
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);
}
}
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 ?
What type of Conncet Account are you using ?
$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],
],
]);
Hy @kindred moon
You are probably looking for this guide:
https://docs.stripe.com/connect/payouts-bank-accounts?bank-account-collection-integration=direct-api&bank-account-collection-method=manual-entry&account-country=FR
Between, the AccountLink collects the Bank Details for payouts for you without additional configuration (Stripe hosted solution):
https://docs.stripe.com/connect/payouts-bank-accounts?bank-account-collection-integration=prebuilt-web-form&bank-account-collection-method=manual-entry&account-country=FR
ok thank's i will read this and check
swmonster74_connect-external-accounts
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
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.