protected void Page_Load(object sender, EventArgs e)
        {
            log.Info(Request.Url.AbsoluteUri);
            LogRequestInfo(this.ReqParas);

            string key = AlipaySetting.Key; //填写自己的key
            string partner = AlipaySetting.Partner;//填写自己的Partner

            AliPay ap = new AliPay();
            string notifyid = ReqParas["notify_id"];
            Verify v = new Verify("notify_verify", partner, notifyid);
            ap.TradeClosed += new AliPay.ProcessNotifyEventHandler(ap_TradeClosed);
            ap.TradeFinished += new AliPay.ProcessNotifyEventHandler(ap_TradeFinished);
            ap.WaitBuyerConfirmGoods += new AliPay.ProcessNotifyEventHandler(ap_WaitBuyerConfirmGoods);
            ap.WaitBuyerPay += new AliPay.ProcessNotifyEventHandler(ap_WaitBuyerPay);
            ap.WaitSellerConfirmTrade += new AliPay.ProcessNotifyEventHandler(ap_WaitSellerConfirmTrade);
            ap.WaitSellerSendGoods += new AliPay.ProcessNotifyEventHandler(ap_WaitSellerSendGoods);
            ap.WaitSysConfirmPay += new AliPay.ProcessNotifyEventHandler(ap_WaitSysConfirmPay);
            ap.WaitSysPaySeller += new AliPay.ProcessNotifyEventHandler(ap_WaitSysPaySeller);
            ap.ModifyTradeBaseTotalFee += new AliPay.ProcessNotifyEventHandler(ap_ModifyTradeBaseTotalFee);
            ap.RefundClose += new AliPay.ProcessNotifyEventHandler(ap_RefundClose);
            ap.RefundSuccess += new AliPay.ProcessNotifyEventHandler(ap_RefundSuccess);
            ap.WaitSellerAgree += new AliPay.ProcessNotifyEventHandler(ap_WaitSellerAgree);
            ap.ProcessNotify(this, AlipaySetting.PushUrl, key, v, "utf-8");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string key = AlipaySetting.Key; //填写自己的key
            string partner = AlipaySetting.Partner;//填写自己的Partner

            AliPay ap = new AliPay();
            string notifyid = Request.Form["notify_id"];
            Verify v = new Verify("notify_verify", partner, notifyid);
            ap.NotifyEvent += new AliPay.ProcessNotifyEventHandler(ap_NotifyEvent);
            ap.ProcessNotify(this, AlipaySetting.PushUrl, key, v, "utf-8");
            ap.CommonProcessNotify(this,AlipaySetting.VerifyUrl,AlipaySetting.Key,v,AlipaySetting.EncodeType);
        }