getPaymentInfo static method
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);
}
}