verifyPaymentIntentWithMicrodeposits

suspend fun Stripe.verifyPaymentIntentWithMicrodeposits(    clientSecret: String,     firstAmount: Int,     secondAmount: Int): PaymentIntent

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

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

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

Return

a PaymentIntent object

Parameters

clientSecret

The client secret of the PaymentIntent

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

callback

a ApiResultCallback to receive the result or error

Throws

failure to properly authenticate yourself (check your key)

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


suspend fun Stripe.verifyPaymentIntentWithMicrodeposits(clientSecret: String, descriptorCode: String): PaymentIntent

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

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

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

Return

a PaymentIntent object

Parameters

clientSecret

The client secret of the PaymentIntent

descriptorCode

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

callback

a ApiResultCallback to receive the result or error

Throws

failure to properly authenticate yourself (check your key)

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