toFormDataMap method
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.toString(),
"req_time": reqTime.toString(),
"tran_id": tranId.toString(),
"amount": amount.toString(),
"items": encodedItem.toString(),
"hash": hash.toString(),
"firstname": firstname.toString(),
"lastname": lastname.toString(),
"phone": phone.toString(),
"email": email.toString(),
"return_url": encodedReturnUrl.toString(),
"continue_success_url": continueSuccessUrl ?? "",
"return_params": returnParams ?? "",
"shipping": shipping.toString(),
"type": type.name,
"payment_option": option.name,
"currency": currency.name,
};
return map;
}