getPaymentInfo static method

Future getPaymentInfo({
  1. required String token,
  2. required String paymentCode,
})

Implementation

static Future<dynamic> getPaymentInfo({
  required String token,
  required String paymentCode,
}) async {
  try {
    var response = await Fetcher.fetch(
      method: Method.get,
      path:
          '/root/api/v1/merchant-invoice/process/retrieve-payment-info?paymentCode=$paymentCode',
      publicKey: token,
    );
    return response;
  } catch (e) {
    throw Exception(e);
  }
}