コード例 #1
0
ファイル: NotifyClient.cs プロジェクト: ZhangVic/asp1110git
 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;
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 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
     };
 }
コード例 #4
0
ファイル: PayClient.cs プロジェクト: tyriankid/WFX
        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();
        }
コード例 #5
0
 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);
 }
コード例 #6
0
 public PayClient(PayAccount account) : this(account.AppId, account.AppSecret, account.PartnerId, account.PartnerKey, account.EnableSP, account.Sub_appid, account.Sub_mch_id)
 {
 }
コード例 #7
0
ファイル: PayClient.cs プロジェクト: tyriankid/WFX
 // string nonceStr ="";// Utils.CreateNoncestr();
 public PayClient(PayAccount account)
     : this(account.AppId, account.AppSecret, account.PartnerId, account.PartnerKey, account.PaySignKey)
 {
 }
コード例 #8
0
ファイル: NotifyClient.cs プロジェクト: ZhangVic/asp1110git
 public NotifyClient(PayAccount account)
     : this(account.AppId, account.AppSecret, account.PartnerId, account.PartnerKey, account.PaySignKey)
 {
 }
コード例 #9
0
 public NotifyClient(PayAccount account)
     : this(account.AppId, account.AppSecret, account.PartnerId, account.PartnerKey, account.PaySignKey, account.Sub_AppId, account.sub_mch_id)
 {
 }
コード例 #10
0
ファイル: FeedBackNotify.cs プロジェクト: ZhangVic/asp1110git
 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);
             }
         }
     }
 }