## Confirm a Canadian pre-authorized debit setup `stripe.confirmAcssDebitSetup(clientSecret: string, data?: object, options?: object)` Use `stripe.confirmAcssDebitSetup` in the [Save bank details](https://docs.stripe.com/payments/acss-debit/set-up-payment.md) flow to set up a [Canadian pre-authorized debit](https://docs.stripe.com/payments/acss-debit.md) payment method for future payments. When called, it will automatically pop up a modal to collect bank account details and verification, accept the mandate, and confirm the [SetupIntent](https://docs.stripe.com/api/setup_intents.md) when the user submits the form. Note that there are some additional requirements to this flow that are not covered in this reference. Refer to our [integration guide](https://docs.stripe.com/payments/acss-debit/set-up-payment.md) for more details. When you confirm a `SetupIntent`, it needs to have an attached [PaymentMethod](https://docs.stripe.com/api/payment_methods.md). `stripe.confirmAcssDebitSetup` automatically creates a new `PaymentMethod` for you when your customer completes the modal UI. It can also be called with an existing `PaymentMethod`, which will load the modal UI to collect a new mandate agreement. These use cases are detailed in the sections that follow. > Note that `stripe.confirmAcssDebitSetup` may take several seconds to complete. > During that time, disable your form from being resubmitted and show a waiting indicator like a spinner. > If you receive an error result, show it to the customer, re-enable the form, and hide the waiting indicator. - `clientSecret` The [client secret](https://docs.stripe.com/api/setup_intents/object.md#setup_intent_object-client_secret) of the `SetupIntent`. - `data` Data to be sent with the request. Refer to the [Setup Intents API](https://docs.stripe.com/api/setup_intents/confirm.md) for a full list of parameters. - `payment_method` The `id` of an existing PaymentMethod or an object of collected data. See use cases below for details. - `options` An options object to control the behavior of this method. - `skipMandate` Set this to `true` if you want to skip displaying the mandate confirmation. ### with a new PaymentMethod ### Data argument properties - `payment_method` Pass an object to confirm using data collected. - `billing_details` The customer's [billing_details](https://docs.stripe.com/api/payment_methods/create.md#create_payment_method-billing_details). `name` and `email` are required. - `name` The customer's name. The first and last name must be at minimum 2 characters each. - `email` The customer's email. ### Example ```title Confirm with a new PaymentMethod ``` ### with an existing PaymentMethod ### Data argument properties - `payment_method` The `id` of an existing [PaymentMethod](https://docs.stripe.com/api/payment_methods.md). ### Example ```title Confirm with an existing PaymentMethod ``` ### with an attached PaymentMethod ### Example ```title Confirm with an attached PaymentMethod ``` ### with self collected bank account information ### Data argument properties - `payment_method` Pass an object to confirm using data collected. - `billing_details` The customer's [billing_details](https://docs.stripe.com/api/payment_methods/create.md#create_payment_method-billing_details). `name` and `email` are required. - `name` The customer's name. The first and last name must be at minimum 2 characters each. - `email` The customer's email. - `acss_debit` The customer's [bank account information](https://docs.stripe.com/api/payment_methods/create.md#create_payment_method-acss_debit). - `account_number` The customer’s bank account number. - `institution_number` The institution number of the customer’s bank. - `transit_number` The transit number of the customer’s bank. ### Example ```title Confirm with bank account information ``` ### with an existing PaymentMethod but skip mandate display ### Data and options argument paramters - `data` Data to be sent with the request. - `payment_method` The `id` of an existing [PaymentMethod](https://docs.stripe.com/api/payment_methods.md). - `options` An options object to control the behavior of this method. - `skipMandate` Set to `true` to skip the on-page modal UI. ### Example ```title Confirm with an existing PaymentMethod but skip mandate display ``` ### Example ```title Confirm Canadian pre-authorized debit setup ```