retrievePaymentIntent method

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

Implementation

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