getTransactionInfo method

Future<void> getTransactionInfo()

Implementation

Future<void> getTransactionInfo() async {
  try {
    final response = await _paymentService.getTransactionInfo(
      paymentReference,
    );
    transactionInfoResponse = response.data;
    updateAmount(transactionInfoResponse?.amount?.toString() ?? "0.00");
    if(transactionInfoResponse?.paymentMethod?.toLowerCase()=="mastercard"){
      isVisa=false;
    }
  } catch (e) {
    debugPrint(e.toString());
  } finally {
    setBusy(false);
    rebuildUi();
  }
}