confirmPaymentElement method
Implementation
Future<PaymentIntent> confirmPaymentElement(
ConfirmPaymentElementOptions options,
) async {
final response = await js.confirmPayment(
stripe_js.ConfirmPaymentOptions(
elements: elements!,
confirmParams: options.confirmParams,
redirect: options.redirect,
),
);
if (response.error != null) {
throw response.error!;
} else {
return response.paymentIntent!.parse();
}
}