verifyTransaction method

Future<TransactionStatus?> verifyTransaction(
  1. String? s
)

Implementation

Future<TransactionStatus?> verifyTransaction(String? s) async {
  try {
    var r = await apiClient.getRequest("transactions/check/$s");
    if (r.$1 != null) {
      return TransactionStatus.values.firstWhere(
          (element) => element.name == pick(r.$1, 'status').asStringOrNull());
    }
  } catch (e) {
    return null;
  }
  return null;
}