long orderID = Convert.ToInt64(Request.Cookies["orderID"].Value);
        OrdersInfo order = Orders.GetOrdersByID(orderID);
        
        AliPay ap = new AliPay();
        PaymentInfo pay=Payment.GetPaymentByID(2);
        string key = pay.PrivateKey;//дԼkey
        string partner = pay.PartnerID;//дԼPartner
        decimal sendPrice =decimal.Round(order.SendPrice,2);
        decimal price = decimal.Round(order.NeedPayPrice, 2);
        StandardGoods bp = new StandardGoods("trade_create_by_buyer", partner, key, "MD5", order.OrderID.ToString(), Guid.NewGuid().ToString(), price - sendPrice, 1, pay.UserName, pay.UserName
            , "EMS", sendPrice, "BUYER_PAY", "1");
           bp.Notify_Url = "http://";
        ap.CreateStandardTrade("https://www.alipay.com/cooperate/gateway.do", bp, this);