Beispiel #1
0
        public static string BuildMysign(System.Collections.Generic.Dictionary <string, string> dicArray, string string_0, string sign_type, string _input_charset)
        {
            string text = OpenIdFunction.CreateLinkString(dicArray);

            text += string_0;
            return(OpenIdFunction.Sign(text, sign_type, _input_charset));
        }
Beispiel #2
0
        public static string BuildMysign(Dictionary <string, string> dicArray, string key, string sign_type, string _input_charset)
        {
            string str = OpenIdFunction.CreateLinkString(dicArray);

            str += key;
            return(OpenIdFunction.Sign(str, sign_type, _input_charset));
        }
Beispiel #3
0
 public AliPayNotify(SortedDictionary <string, string> inputPara, string notify_id, string partner, string key)
 {
     this._partner       = partner;
     this._key           = key;
     this._input_charset = "utf-8";
     this._sign_type     = "MD5";
     this._veryfy_url    = this.Https_veryfy_url + "partner=" + this._partner + "&notify_id=" + notify_id;
     this.sPara          = OpenIdFunction.FilterPara(inputPara);
     this.preSignStr     = OpenIdFunction.CreateLinkString(this.sPara);
     this.mysign         = OpenIdFunction.BuildMysign(this.sPara, this._key, this._sign_type, this._input_charset);
     this.responseTxt    = this.Get_Http(this._veryfy_url, 0x1d4c0);
 }
Beispiel #4
0
 public AliPayNotify(System.Collections.Generic.SortedDictionary <string, string> inputPara, string notify_id, string partner, string string_0)
 {
     this._partner       = partner;
     this._key           = string_0;
     this._input_charset = "utf-8";
     this._sign_type     = "MD5";
     this._veryfy_url    = string.Concat(new string[]
     {
         this.Https_veryfy_url,
         "partner=",
         this._partner,
         "&notify_id=",
         notify_id
     });
     this.sPara       = OpenIdFunction.FilterPara(inputPara);
     this.preSignStr  = OpenIdFunction.CreateLinkString(this.sPara);
     this.mysign      = OpenIdFunction.BuildMysign(this.sPara, this._key, this._sign_type, this._input_charset);
     this.responseTxt = this.Get_Http(this._veryfy_url, 120000);
 }