ABATransaction.instance constructor

ABATransaction.instance(
  1. ABAMerchant merchant
)

Implementation

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