retreivePaymentIntent method

  1. @Deprecated("Use PaymongoClient instead")
Future<String?> retreivePaymentIntent(
  1. int id
)

Implementation

@Deprecated("Use PaymongoClient instead")

///
Future<String?> retreivePaymentIntent(int id) async {
  if (id <= 0) {
    throw ArgumentError("ID must be greater than 0");
  }

  final options = PayMongoOptions(
    path: '/payment_intents/$id',
  );

  final response = await get(options);

  return response;
}