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