verifySetupIntentWithMicrodeposits

suspend fun Stripe.verifySetupIntentWithMicrodeposits(clientSecret: String, firstAmount: Int, secondAmount: Int): SetupIntent

Suspend function to verify a customer's bank account with micro-deposits

This function should only be called when the SetupIntent is in the requires_action state and NextActionType is VerifyWithMicrodeposits.

See the Verify bank account with micro-deposits docs for more details.

Return

a SetupIntent object

Parameters

clientSecret

The client secret of the SetupIntent

firstAmount

The amount, in cents of USD, equal to the value of the first micro-deposit sent to the bank account

secondAmount

The amount, in cents of USD, equal to the value of the second micro-deposit sent to the bank account

Throws

failure to properly authenticate yourself (check your key)

your request has invalid parameters

failure to connect to Stripe's API

any other type of problem (for instance, a temporary issue with Stripe's servers)


suspend fun Stripe.verifySetupIntentWithMicrodeposits(clientSecret: String, descriptorCode: String): SetupIntent

Suspend function to verify a customer's bank account with micro-deposits

This function should only be called when the SetupIntent is in the requires_action state and NextActionType is VerifyWithMicrodeposits.

See the Verify bank account with micro-deposits docs for more details.

Return

a SetupIntent object

Parameters

clientSecret

The client secret of the SetupIntent

descriptorCode

A unique, 6-digit descriptor code that starts with SM that was sent as statement descriptor to the bank account

Throws

failure to properly authenticate yourself (check your key)

your request has invalid parameters

failure to connect to Stripe's API

any other type of problem (for instance, a temporary issue with Stripe's servers)