public static string BuildMysign(System.Collections.Generic.Dictionary <string, string> dicArray, string key, string sign_type, string _input_charset) { string text = OpenIdFunction.CreateLinkString(dicArray); text += key; return(OpenIdFunction.Sign(text, sign_type, _input_charset)); }
public AliPayNotify(System.Collections.Generic.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 = string.Concat(new string[] { this.Https_veryfy_url, "partner=", this._partner, "¬ify_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); }