confirmPaymentIntent method
Confirm a PaymentIntent https://stripe.com/docs/api/payment_intents/confirm
Implementation
Future<Map<String, dynamic>> confirmPaymentIntent(String clientSecret, {Map<String, dynamic>? data}) async {
data ??= {};
final intent = _parseIdFromClientSecret(clientSecret);
data['client_secret'] = clientSecret;
final path = '/payment_intents/$intent/confirm';
return _apiHandler.request(RequestMethod.post, path, publishableKey, apiVersion, params: data);
}