hash property

String get hash

Implementation

String get hash {
  assert(PaywayTransactionService.instance != null);
  if (PaywayTransactionService.instance == null) {
    throw Exception(
        'Make sure run PaywayTransactionService.ensureInitialized()');
  }
  final merchant = PaywayTransactionService.instance!.merchant;

  return ABAClientService(merchant).getHash(
    reqTime: reqTime.toString(),
    tranId: tranId.toString(),
    amount: amount.toString(),
    items: encodedItem.toString(),
    shipping: shipping.toString(),
    firstName: firstname.toString(),
    lastName: lastname.toString(),
    email: email.toString(),
    phone: phone.toString(),
    type: type.name.toString(),
    paymentOption: option.name.toString(),
    currency: currency.name.toString(),
    returnUrl: encodedReturnUrl.toString(),
  );
}