toFormDataMap method

Map<String, dynamic> toFormDataMap()

Implementation

Map<String, dynamic> toFormDataMap() {
  assert(PaywayTransactionService.instance != null);
  if (PaywayTransactionService.instance == null) {
    throw Exception(
        'Make sure run PaywayTransactionService.ensureInitialized()');
  }
  final merchant = PaywayTransactionService.instance!.merchant;
  var map = {
    "merchant_id": "${merchant!.merchantID}",
    "req_time": reqTime,
    "tran_id": tranId,
    "hash": hash,
  };
  return map;
}