authenticateSetupIntent method

Future<Map<String, dynamic>> authenticateSetupIntent(
  1. String clientSecret, {
  2. String? webReturnPath,
  3. required BuildContext context,
})

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);
}