## Verify with micro-deposits for payment

`stripe.verifyMicrodepositsForPayment(clientSecret: string, data?: object)`

Use `stripe.verifyMicrodepositsForPayment` in the [Accept a Canadian pre-authorized debit payment](https://docs.stripe.com/payments/acss-debit/accept-a-payment.md) or [Accept an ACH Direct Debit payment](https://docs.stripe.com/payments/ach-direct-debit/accept-a-payment.md) flow to verify a customer's bank account with micro-deposits.

It should be only called when [PaymentIntent](https://docs.stripe.com/api/payment_intents.md) is in the `requires_action` state, and contains a `next_action` field that has a `type` equal to `verify_with_microdeposits`.
Refer to our [integration guide](https://docs.stripe.com/payments/acss-debit/accept-a-payment.md) for more details.

> Verification can fail for several reasons. The failure may happen synchronously as a direct error response, or asynchronously through a `payment_intent.payment_failed` webhook event.
> Refer to our [integration guide](https://docs.stripe.com/payments/acss-debit/accept-a-payment.md) for more details.

- `clientSecret`
  The [client secret](https://docs.stripe.com/api/payment_intents/object.md#payment_intent_object-client_secret) of the `PaymentIntent`.

- `data`
  Data to be sent with the request.
    - `amounts`
      An array of two positive integers, in *cents*, equal to the values of the micro-deposits sent to the bank account.
    - `descriptor_code`
      A six-character code starting with SM present in the microdeposit sent to the bank account.

### Example

```title
Verify with micro-deposits for payment
```
