Exemple #1
0
 public Submit(AlipayConfig2 config)
 {
     _partner      = config.Partner;
     _md5Key       = config.Md5Key.Trim();
     _privateKey   = config.PrivateKey;
     _inputCharset = config.InputCharset.Trim().ToLower();
     _signType     = config.SignType;
 }
Exemple #2
0
 /// <summary>
 /// 构造函数
 /// 从配置文件中初始化变量
 /// </summary>
 /// <param name="config"></param>
 public Notify(AlipayConfig2 config)
 {
     //初始化基础配置信息
     _partner = config.Partner.Trim();
     //_alipayPublicKey = config.AlipayPublicKey.Trim();
     _inputCharset = config.InputCharset.Trim().ToLower();
     _signType     = config.SignType;
     _md5Key       = config.Md5Key;
 }