protected void Page_Load(object sender, EventArgs e)
    {
        bool bPaymentGatewayResponseActive = (bool)Session["PaymentGatewayResponseActive"];

        if (!bPaymentGatewayResponseActive)
        {
            Response.Redirect("~/Default.aspx");
        }

        else
        {
            Session["PaymentGatewayResponseActive"] = false;

            FileLog objEventLog = (FileLog)Application["EventLog"];
            ExceptionLog objExceptionEventLog = (ExceptionLog)Application["ExceptionEventLog"];

            HotelPaymentRQ objHotelPaymentRQ = (HotelPaymentRQ)Session["HotelPaymentRQ"];

            HDFCDataProcessor objHDFCDataProcessor = new HDFCDataProcessor(objEventLog, objExceptionEventLog);
            PayRsData objPayRsData = objHDFCDataProcessor.ProcessErrorPageResponse(this, this.Context);

            HotelPaymentRS objHotelPaymentRS = new HotelPaymentRS();

            objHotelPaymentRS.RequestTransID = objHotelPaymentRQ.RequestTransID;

            objHotelPaymentRS.PaymentAuthCode = "";
            objHotelPaymentRS.PaymentTransRefID = "";
            objHotelPaymentRS.PaymentGatewayCardType = "";
            objHotelPaymentRS.PaymentCard = null;

            objHotelPaymentRS.Success = false;

            objHotelPaymentRS.Errors = new Error[1];
            objHotelPaymentRS.Errors[0] = new Error();
            objHotelPaymentRS.Errors[0].Code = objPayRsData.enumStatus.ToString();
            objHotelPaymentRS.Errors[0].Description = objPayRsData.strMessage;

            objHotelPaymentRS.Warnings = new Warning[0];

            Session["HotelPaymentRS"] = objHotelPaymentRS;

            Server.Transfer("~/Pages/ProcessPaymentRS.aspx");
        }

        return;
    }