toEncodedMap method
Implementation
Map<String, dynamic> toEncodedMap() {
var map = {
"merchant_id": "${merchant!.merchantID}",
"req_time": reqTime,
"tran_id": tranID,
"amount": amount.toString(),
"items": encodedItem.toString(),
"hash": hash,
"firstname": firstname.toString(),
"lastname": lastname.toString(),
"phone": phone.toString(),
"email": email.toString(),
"return_url": encodedReturnUrl,
"continue_success_url": continueSuccessUrl ?? "",
"return_params": returnParams ?? "",
"shipping": shipping.toString(),
"type": type.name.toString(),
"payment_option": option.name.toString(),
"currency": currency.name.toString(),
};
return map;
}