Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

CanadianDeer's avatar

Stripe and Laravel

Hello,

On my projet I use Stripe on Laravel. When a seller registrated on the website a customer account created on a stripe account.

The seller must be able to send his IBAN and BIC to his customer account. So I start sending that his IBAN but I get this message: You can not load or add SEPA bank accounts to customers.

Do you have a solution?


$bank_account = Stripe\Customer::createSource($user->stripe_id, [
                "source" => array(
                    "object" => "bank_account",
                    "account_holder_type" => "company",
                    "country" => "FR",
                    "currency" => "EUR",
                    "account_number" => $request->iban
                )
            ]);

Thank you

0 likes
1 reply
Nakov's avatar

What I do in my project using IBAN is I create a BankToken and then update the account to use the token as external_account.

$bankToken = Token::create(array(
                "bank_account" => array(
                    "country"             => "FR",
                    "currency"            => "EUR",
                    "account_holder_name" => $request->get('first_name') . " " . $request->get('last_name'),
                    "account_holder_type" => "company",
                    "routing_number"      => $sortCode,
                    "account_number"      => $iban
                )
            ));

// then add it to the account:

$account = Account::retrieve($stripeId);
$account->external_account = $bankAccount->id;
$account->save();

Hope this helps :)

Please or to participate in this conversation.