authenticateSetupIntent method
Future<Map<String, dynamic> >
authenticateSetupIntent(
- String clientSecret, {
- String? webReturnPath,
- required BuildContext context,
Authenticate a SetupIntent https://stripe.com/docs/api/setup_intents/confirm
Implementation
Future<Map<String, dynamic>> authenticateSetupIntent(String clientSecret,
{String? webReturnPath, required BuildContext context}) async {
final Map<String, dynamic> intent = await api.confirmSetupIntent(
clientSecret,
data: {'return_url': getReturnUrlForSca(webReturnUrl: webReturnPath)},
);
return _handleSetupIntent(intent, context);
}