PaywayCreateTransaction.instance constructor

PaywayCreateTransaction.instance()

Implementation

factory PaywayCreateTransaction.instance() {
  // var format = DateFormat("yMddHms").format(DateTime.now()); //2021 01 23 234559 OR 2021 11 07 132947
  final now = DateTime.now();
  return PaywayCreateTransaction(
    /// merchant: merchant,
    tranId: "${now.microsecondsSinceEpoch}",
    reqTime: "${DateFormat("yMddHms").format(now)}",
    amount: 0.00,
    items: [],
    firstname: "",
    lastname: "",
    phone: "",
    email: "",
  );
}