예제 #1
0
 /// <summary>
 /// 验证
 /// </summary>
 private void Validate(PayParam param)
 {
     param.CheckNull(nameof(param));
     param.Validate();
     ValidateParam(param);
     _config.Validate();
 }
예제 #2
0
 /// <summary>
 /// 验证
 /// </summary>
 /// <param name="config">支付宝配置</param>
 /// <param name="param">支付参数</param>
 protected void Validate(AlipayConfig config, PayParam param)
 {
     config.CheckNotNull(nameof(config));
     param.CheckNotNull(nameof(param));
     config.Validate();
     param.Validate();
     ValidateParam(param);
 }