-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False response data #66
Comments
Hello @juretopolak, Thank you for reporting this issue. I will investigate this next week since I'm traveling for work at the moment. |
@juretopolak which version of the library and PHP are You using ?. I did a quick test and the results are as follow
|
@krzaczek thank you for pointing me in the right direction... it was indeed a problem with library version. My version was 1.0 xD I have installed it with "composer install dragonbe/vies" and didn't define a version... thought that if no version is specified the last one is used. Didn't even look in the composer.json. After defining the last version (2.1.6) and updating everything is working as expected. Thank you for such a fast response! |
Hey @juretopolak, Glad everything sorted out for you. A huge thanks to @krzaczek for analysing the issues and pointing towards the solution so quickly. Great job 👍 One thing though: I checked myself using composer install dragonbe/vies
Invalid argument dragonbe/vies. Use "composer require dragonbe/vies" instead to add packages to your composer.json. And when using composer require dragonbe/vies
Using version ^2.1 for dragonbe/vies
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing dragonbe/vies (2.1.6): Downloading (100%)
Writing lock file
Generating autoload files @juretopolak since I want to make sure people always get the latest version your issue intrigues me. Could you describe your installation process to me? |
I would say it has to do with PHP version used to run composer. PHP 5.3 would install |
You are both right. If I go through the history... it was like this.
This returned error message, just like you explained.
This installed version 1.0.0. I guess because the composer was executed with PHP 5.6 which is default CLI version on the system. After I found out that version 1.0.0. was installed, I have changed the version to 2.1.6 in the composer.json file.
This reminded me about the default version.
The library was finally updated when PHP 7.2 was used to run the composer. Hope this helps somehow. |
I have noticed incorrect validations. Look at the example below. Same VAT number with different results:
Am I missing something?
http://ec.europa.eu/taxation_customs/vies/vatResponse.html
Yes, valid VAT number
Member State | SI |
VAT Number | SI 21825831
Date when request received | 2019/05/24 11:49:44
The text was updated successfully, but these errors were encountered: