/// <summary> /// 摘要: /// 验证配置参数的正确性. /// </summary> /// <param name="config"></param> public static void ThrowIfInvalidConfig(IAlipayConfig config) { ThrowHelper.ThrowNullArgument(config, $"{nameof(config)}"); ThrowHelper.ThrowNullOrEmptyArgument(config.Partner, $"{nameof(config)}.{nameof(config.Partner)}"); ThrowHelper.ThrowNullOrEmptyArgument(config.SellerId, $"{nameof(config)}.{nameof(config.SellerId)}"); ThrowHelper.ThrowNullOrEmptyArgument(config.Key, $"{nameof(config)}.{nameof(config.Key)}"); ThrowHelper.ThrowNullOrEmptyArgument(config.Gateway, $"{nameof(config)}.{nameof(config.Gateway)}"); }
public AlipayNotifyService(IAlipayConfig config) { this.config = config; }
public AlipayRequestService(IAlipayConfig config) { this.config = config; }