Exemplo n.º 1
0
        private string LoadWXHadPayOrder(string orderId)
        {
            PayClient payClient = new PayClient(masterSettings.WeixinAppId, masterSettings.WeixinAppSecret, masterSettings.WeixinPartnerID, masterSettings.WeixinPartnerKey, masterSettings.WeixinPaySignKey);

            string postData = payClient.BuildOrderPackage(orderId);

            return(payClient.RequestOrder(postData));
        }
Exemplo n.º 2
0
        private string LoadWXHadPayOrder(string orderId, WxPayPartner partner)
        {
            PayClient payClient = new PayClient(partner.AppId, partner.AppSecret, partner.PartnerId, partner.PartnerKey, partner.SignKey);

            string postData = payClient.BuildOrderPackage(orderId);

            return(payClient.RequestOrder(postData));
        }