public FaspayTraceSuccessXMLResponse(FaspayNotifyResponse response)
        {
            this.trx_id      = response.getTrx_id();
            this.merchant_id = response.getMerchant_id();
            this.bill_no     = response.getBill_no();

            response_date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }
예제 #2
0
        public String handle(String rawXml)

        {
            XmlSerializer           x  = new XmlSerializer(typeof(FaspayNotifyResponse));
            XmlSerializerNamespaces ns = new XmlSerializerNamespaces();

            ns.Add("", "");
            StringReader                  sr       = new StringReader(rawXml);
            FaspayNotifyResponse          response = (FaspaySDK.Entity.Notify.FaspayNotifyResponse)x.Deserialize(sr);
            FaspayTraceSuccessXMLResponse back     = new FaspayTraceSuccessXMLResponse(response);

            x = new XmlSerializer(typeof(FaspayTraceSuccessXMLResponse));
            StringWriter s = new StringWriter();

            x.Serialize(s, back, ns);
            return(s.ToString());
        }