コード例 #1
0
 /// <summary>
 /// 验证
 /// </summary>
 /// <param name="config">微信支付配置</param>
 /// <param name="param">支付参数</param>
 protected void Validate(WechatpayConfig config, PayParam param)
 {
     config.CheckNotNull(nameof(config));
     param.CheckNotNull(nameof(param));
     config.Validate();
     param.Validate();
     ValidateParam(param);
 }
コード例 #2
0
 /// <summary>
 /// 初始化一个<see cref="WechatpayParameterBuilder"/>类型的实例
 /// </summary>
 /// <param name="config">微信支付配置</param>
 public WechatpayParameterBuilder(WechatpayConfig config)
 {
     config.CheckNotNull(nameof(config));
     Config   = config;
     _builder = new ParameterBuilder();
 }