zapadi / vies-dotnet

VIES (VAT Information Exchange System) dotNET API helps you to verify if EU VAT information exists and/or is valid
Apache License 2.0
20 stars 7 forks source link

Validation error on valid vat #16

Closed ericuss closed 9 months ago

ericuss commented 1 year ago

Hi

I'm not sure if I made something wrong, but I have problems validating a VAT number. I create a test project to test the library before use in my project. The sample VAT is IE3041081MH (I try to split into country code and vat number and not solves anything)

My code: `
[Fact] public async Task HappyPath() { var viesManager = new ViesManager();

  var resultIsValid = ViesManager.IsValid("IE3041081MH");
  Assert.True(resultIsValid.IsValid, "IE3041081MH" + " is invalid");
  var resultIsActive = await viesManager.IsActive("IE3041081MH");

  Assert.True(resultIsActive.IsValid, "IE3041081MH"  + " is inactive");

} ` When I try in the VIES web, the code is ok.

image

image

Thanks for your help and I don't know if I commit a mistake.

daef commented 1 year ago

works for me: image