handleNextAction method
Use this method in case the PaymentIntent status is PaymentIntentsStatus.RequiresAction. Executing this action can take several seconds and it is important to not resubmit the form.
Throws a StripeException when confirming the handle card action fails.
Implementation
Future<PaymentIntent> handleNextAction(
String paymentIntentClientSecret,
) async {
await _awaitForSettings();
try {
final paymentIntent =
await _platform.handleNextAction(paymentIntentClientSecret);
return paymentIntent;
} on StripeError {
//throw StripeError<CardActionError>(error.code, error.message);
rethrow;
}
}