handleNextActionForSetupIntent method
Use this method in case the SetupIntent 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<SetupIntent> handleNextActionForSetupIntent(
String setupIntentClientSecret, {
String? returnURL,
}) async {
await _awaitForSettings();
try {
final paymentIntent = await _platform.handleNextActionForSetupIntent(
setupIntentClientSecret,
returnURL: returnURL,
);
return paymentIntent;
} on StripeError {
rethrow;
}
}