retrievePaymentIntent method
Retrieve a PaymentIntent. https://stripe.com/docs/api/payment_intents/retrieve
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);
}