confirmPaymentIntent
suspend fun Stripe.confirmPaymentIntent(confirmPaymentIntentParams: ConfirmPaymentIntentParams, idempotencyKey: String? = null): PaymentIntent
Suspend function to confirm a PaymentIntent object.
See Confirm a PaymentIntent. POST /v1/payment_intents/:id/confirm
Return
a PaymentIntent object
Parameters
confirmPaymentIntentParams
a set of params with which to confirm the PaymentIntent
idempotencyKey
optional, see Idempotent Requests
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)