## Collect bank account details for payment `stripe.collectBankAccountForPayment(options: object)` Use `stripe.collectBankAccountForPayment` in the [Accept a payment](https://docs.stripe.com/payments/ach-direct-debit/accept-a-payment.md) flow for the [ACH Direct Debit](https://docs.stripe.com/payments/ach-direct-debit.md) payment method to collect the customer’s bank account in your payment form. When called, it will automatically load an on-page modal UI to collect bank account details and verification, and attach the [PaymentMethod](https://docs.stripe.com/api/payment_methods.md) to the [PaymentIntent](https://docs.stripe.com/api/payment_intents.md). - `options` Data to be sent with the request. - `clientSecret` The [client secret](https://docs.stripe.com/api/payment_intents/object.md#payment_intent_object-client_secret) of the `PaymentIntent`. - `params` - `payment_method_type` The payment method type for the bank account details (e.g. `us_bank_account`) - `payment_method_data` Payment method specific data to be sent with the request - `billing_details` The customer's [billing_details](https://docs.stripe.com/api/payment_methods/create.md#create_payment_method-billing_details). `name` is required. Providing `email` allows your customer to receive [ACH Direct Debit mandate and microdeposit emails](https://docs.stripe.com/payments/ach-direct-debit.md#mandate-and-microdeposit-emails). - `name` The customer's name. The first and last name must be at minimum 2 characters each. - `email` The customer's email. - `address` The customer's billing address. - `city` City, district, suburb, town, or village. - `country` Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - `line1` Address line 1 (e.g., street, PO Box, or company name). - `line2` Address line 2 (e.g., apartment, suite, unit, or building). - `postal_code` ZIP or postal code. - `state` State, county, province, or region. ### Example ```title Collect bank account details for payment ```