retrievePaymentIntentClient method

  1. @Deprecated("Use PaymongoClient instead")
Future<PaymentIntentResponse> retrievePaymentIntentClient({
  1. required String paymentIntentId,
  2. required String clientKey,
})

Implementation

@Deprecated("Use PaymongoClient instead")

///
Future<PaymentIntentResponse> retrievePaymentIntentClient({
  required String paymentIntentId,
  required String clientKey,
}) async {
  final options = PayMongoOptions(
    path: '/payment_intents/$paymentIntentId',
    params: {
      'client_key': clientKey,
    },
  );
  final response = await get<Map<String, dynamic>>(options);
  return PaymentIntentResponse.fromMap(response);
}