public NotifyClient(string appId, string appSecret, string partnerId, string partnerKey, string paySignKey) { PayAccount account = new PayAccount { AppId = appId, AppSecret = appSecret, PartnerId = partnerId, PartnerKey = partnerKey, PaySignKey = paySignKey }; this._payAccount = account; }
public NotifyClient(string appId, string appSecret, string partnerId, string partnerKey, string paySignKey = "", string sub_appid = "", string sub_mchid = "") { this._payAccount = new PayAccount { AppId = appId, AppSecret = appSecret, PartnerId = partnerId, PartnerKey = partnerKey, PaySignKey = paySignKey, Sub_AppId = sub_appid, sub_mch_id = sub_mchid }; }
public PayClient(string appId, string appSecret, string partnerId, string partnerKey, string paySignKey) { PayAccount account = new PayAccount(); account.AppId = appId; account.AppSecret = appSecret; account.PartnerId = partnerId; account.PartnerKey = partnerKey; account.PaySignKey = paySignKey; this.m_payAccount = account; //this.nonceStr = Utils.CreateNoncestr(); }
public PayClient(string appId, string appSecret, string partnerId, string partnerKey, bool enableSP, string sub_appid, string sub_mch_id) { this._payAccount = new PayAccount(appId, appSecret, partnerId, partnerKey, enableSP, sub_appid, sub_mch_id); }
public PayClient(PayAccount account) : this(account.AppId, account.AppSecret, account.PartnerId, account.PartnerKey, account.EnableSP, account.Sub_appid, account.Sub_mch_id) { }
// string nonceStr ="";// Utils.CreateNoncestr(); public PayClient(PayAccount account) : this(account.AppId, account.AppSecret, account.PartnerId, account.PartnerKey, account.PaySignKey) { }
public NotifyClient(PayAccount account) : this(account.AppId, account.AppSecret, account.PartnerId, account.PartnerKey, account.PaySignKey) { }
public NotifyClient(PayAccount account) : this(account.AppId, account.AppSecret, account.PartnerId, account.PartnerKey, account.PaySignKey, account.Sub_AppId, account.sub_mch_id) { }
private void dlstPtReviews_DeleteCommand(object source, DataListCommandEventArgs e) { int id = Convert.ToInt32(e.CommandArgument, CultureInfo.InvariantCulture); if (e.CommandName == "Delete") { if (VShopHelper.DeleteFeedBack(id)) { this.ShowMsg("删除成功", true); this.BindPtReview(); } else { this.ShowMsg("删除失败", false); } } else { FeedBackInfo feedBack = VShopHelper.GetFeedBack(id); if (feedBack != null) { SiteSettings masterSettings = SettingsManager.GetMasterSettings(false); PayAccount account = new PayAccount(masterSettings.WeixinAppId, masterSettings.WeixinAppSecret, masterSettings.WeixinPartnerID, masterSettings.WeixinPartnerKey, masterSettings.WeixinPaySignKey); NotifyClient client = new NotifyClient(account); if (client.UpdateFeedback(feedBack.FeedBackId, feedBack.OpenId)) { VShopHelper.UpdateFeedBackMsgType(feedBack.FeedBackId, "已处理"); this.ShowMsg("处理成功", true); this.BindPtReview(); } else { this.ShowMsg("处理失败", false); } } } }