checkPaymentStatus method

Future<PaymentStatus> checkPaymentStatus({
  1. required String hashMac,
  2. required String transactionId,
})

Check Payment Status

Implementation

Future<PaymentStatus> checkPaymentStatus({required String hashMac, required String transactionId}) async {
  CheckStatusResponse response = await _bedeApi.checkStatus(
    request: CheckStatusRequest(mid: _merchantDetails.merchantID, merchantTxnRefNo: [transactionId], hashMac: hashMac),
  );
  return response.paymentStatus.first;
}