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
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)