#Vadim Tabaran
1 messages · Page 1 of 1 (latest)
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);
});
Seems you might be missing the collectBankAccountForSetup step? https://stripe.com/docs/payments/ach-debit/set-up-payment?platform=web#web-collect-details
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?
Ah, missed that part. In that case when you create the Setup Intent you'll need to use microdeposit verification: https://stripe.com/docs/api/setup_intents/create#create_setup_intent-payment_method_options-us_bank_account-verification_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can only use instant if you're using Financial Connections, via collectBankAccountForSetup