confirmSetupIntent

suspend fun Stripe.confirmSetupIntent(confirmSetupIntentParams: ConfirmSetupIntentParams, idempotencyKey: String? = null): 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

Throws

failure to properly authenticate yourself (check your key)

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