retrieveSetupIntent method
Retrieves a SetupIntent using the provided clientSecret.
Throws a StripeException in case retrieving the intent fails.
Implementation
Future<SetupIntent> retrieveSetupIntent(String clientSecret) async {
await _awaitForSettings();
try {
final setupIntent = await _platform.retrieveSetupIntent(clientSecret);
return setupIntent;
} on StripeError catch (error) {
throw StripeError(message: error.message, code: error.message);
}
}