expireTimeAsync method

Future<void> expireTimeAsync(
  1. String transactionNo,
  2. String refererKey
)

Implementation

Future<void> expireTimeAsync(String transactionNo, String refererKey) async {
  _setLoading(true);
  try {
    expireTime =
        await APIHandler.callGenerateExpir(transactionNo, refererKey);
  } catch (e) {
    _errorMessage = 'An error occurred: $e';
  } finally {
    _setLoading(false);

    debugPrint('======Expire Time : $expireTime');
    expireTime = (expireTime + 5) ~/ 60;
  }
}