public RefundResponse(string response) { var queryString = HttpUtility.ParseQueryString(response); Response = response; if (!string.IsNullOrEmpty(queryString["result"])) { Result = new HandlingStatus(int.Parse(queryString["result"])); } if (!string.IsNullOrEmpty(queryString["status"])) { Status = queryString["status"]; } }
public CancelResponse(string response) { var queryString = HttpUtility.ParseQueryString(response); Response = response; if (!string.IsNullOrEmpty(queryString["cardtype"])) { CardType = queryString["cardtype"]; } if (!string.IsNullOrEmpty(queryString["message"])) { Message = queryString["message"]; } if (!string.IsNullOrEmpty(queryString["reason"])) { Reason = queryString["reason"]; } if (!string.IsNullOrEmpty(queryString["result"])) { Result = new HandlingStatus(int.Parse(queryString["result"])); } if (!string.IsNullOrEmpty(queryString["status"])) { Status = queryString["status"]; } if (!string.IsNullOrEmpty(queryString["transact"])) { Transact = long.Parse(queryString["transact"]); } }