#Vadim Tabaran

1 messages · Page 1 of 1 (latest)

gray iceBOT
sturdy dew
#

Here is the code that I've used:

$this->client->setupIntentsCreate([
    'customer' => $referenceId,
    'payment_method_types' => ['card', 'sepa_debit', 'us_bank_account'],
    'payment_method_options' => [
        'us_bank_account' => [
            'verification_method' => 'instant',
            'financial_connections' => ['permissions' => ['payment_method', 'balances']],
        ],
    ],
])

window.stripe.confirmUsBankAccountSetup(
    response.clientSecret,
    {
        payment_method: {
            us_bank_account: {
                routing_number: '110000000',
                account_number: '000123456789',
                account_holder_type: 'individual',
            },
            billing_details: {
                name: '...',
                email: '...',
            },
        },
    }
).then(function(result) {
    console.log(result);
});
grave nacelle
sturdy dew
#

collectBankAccountForSetup triggers an modal where customer could chose his bank. Is there a way to silently choose the bank and enter routing_number/account_number?
I thought confirmUsBankAccountSetup is the method I need

#

We'd like to allow user just enter routing/account number through our interface, without STRIPE modal.
Is there a way to do that?

gray iceBOT
grave nacelle
#

You can only use instant if you're using Financial Connections, via collectBankAccountForSetup