retrieveSetupIntent method

Future<Map<String, dynamic>> retrieveSetupIntent(
  1. String clientSecret, {
  2. String? apiVersion,
})

Implementation

Future<Map<String, dynamic>> retrieveSetupIntent(String clientSecret, {String? apiVersion}) async {
  final intentId = _parseIdFromClientSecret(clientSecret);
  final path = '/setup_intents/$intentId';
  final params = {'client_secret': clientSecret};
  return _apiHandler.request(RequestMethod.get, path, publishableKey, apiVersion, params: params);
}