Esempio n. 1
0
        public ReauthResponse(string response)
        {
            var queryString = HttpUtility.ParseQueryString(response);

            Response = response;

            if (!string.IsNullOrEmpty(queryString["result"]))
            {
                Result = new AuthorizationStatus(int.Parse(queryString["result"]));
            }

            if (!string.IsNullOrEmpty(queryString["status"]))
            {
                Status = queryString["status"];
            }
        }
Esempio n. 2
0
        public TicketAuthResponse(string response)
        {
            var queryString = HttpUtility.ParseQueryString(response);

            Response = response;

            if (!string.IsNullOrEmpty(queryString["approvalcode"]))
            {
                ApprovalCode = queryString["approvalcode"];
            }

            if (!string.IsNullOrEmpty(queryString["authkey"]))
            {
                AuthKey = queryString["authkey"];
            }

            if (!string.IsNullOrEmpty(queryString["cardtype"]))
            {
                CardType = queryString["cardtype"];
            }

            if (!string.IsNullOrEmpty(queryString["fee"]))
            {
                Fee = int.Parse(queryString["fee"]);
            }

            if (!string.IsNullOrEmpty(queryString["message"]))
            {
                Message = queryString["message"];
            }

            if (!string.IsNullOrEmpty(queryString["reason"]))
            {
                Reason = new AuthorizationStatus(int.Parse(queryString["reason"]));
            }

            if (!string.IsNullOrEmpty(queryString["status"]))
            {
                Status = queryString["status"];
            }

            if (!string.IsNullOrEmpty(queryString["transact"]))
            {
                Transact = long.Parse(queryString["transact"]);
            }
        }