confirmSetupIntent

suspend fun Stripe.confirmSetupIntent(confirmSetupIntentParams: ConfirmSetupIntentParams, idempotencyKey: String? = null, expand: List<String> = emptyList()): SetupIntent

Suspend function to confirm a SetupIntent object.

See Confirm a SetupIntent. POST /v1/setup_intents/:id/confirm

Return

a SetupIntent object

Parameters

confirmSetupIntentParams

a set of params with which to confirm the Setup Intent

idempotencyKey

optional, see Idempotent Requests

expand

Optional, a list of keys to expand on the returned SetupIntent object.

Throws

AuthenticationException

failure to properly authenticate yourself (check your key)

InvalidRequestException

your request has invalid parameters

APIConnectionException

failure to connect to Stripe's API

APIException

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