PaywayCheckTransaction.instance constructor

PaywayCheckTransaction.instance()

Implementation

factory PaywayCheckTransaction.instance() {
  // var format = DateFormat("yMddHms").format(DateTime.now()); //2021 01 23 234559 OR 2021 11 07 132947
  final now = DateTime.now();
  return PaywayCheckTransaction(
    /// merchant: merchant,
    tranId: "${now.microsecondsSinceEpoch}",
    reqTime: "${DateFormat("yMddHms").format(now)}",
  );
}