public void paySuccess() { ClientCheckoutDao clientCheckoutDao = new ClientCheckoutDao(); clientCheckoutDao.updateStatus(Session["AcceptSlipNo"].ToString(), "02"); vpc_Result.Text = "<center><h1>Đặt hàng thành công</h1><br/>Đơn hàng của bạn đã được gởi đến bộ phận bán hàng của Mibo. Bạn cũng có thể theo dõi đơn hàng của bạn <a href='order-history.aspx'>tại đây</a></center>"; }
protected void Page_Load(object sender, EventArgs e) { if (Session["isCheckPay"] != null && Session["AcceptSlipNo"] != null) { Session["isCheckPay"] = null; if (Request["vpc_TxnResponseCode"] != null) { if (Request["vpc_TxnResponseCode"].ToString().Equals("0")) { ClientCheckoutDao clientCheckoutDao = new ClientCheckoutDao(); clientCheckoutDao.updateStatus(Session["AcceptSlipNo"].ToString(), "02"); Label1.Text = "Đơn hàng này đã thanh toán, trạng thái đơn hàng đã được cập nhật"; } else { Label1.Text = "Đơn hàng này vẫn chưa thanh toán !"; } } Session["AcceptSlipNo"] = null; } }