Comments (8)
Ah, okay. From my point of view that was not clear on reading the spark docs. That works for me now.
from vat-calculator.
Please provide a VAT ID for me to check.
from vat-calculator.
Hi,
sure: DE330284431
from vat-calculator.
But it seems like it's not working for any Tax-ID. Is the fact that I am using Laravel-Sail of any help?
I just checked a basic curl from inside the container
sail@5970dad982dc:/var/www/html$ curl -L https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:ec.europa.eu:taxud:vies:services:checkVat" xmlns:tns1="urn:ec.europa.eu:taxud:vies:services:checkVat:types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:impl="urn:ec.europa.eu:taxud:vies:services:checkVat" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/">
<xsd:documentation>
...
This is - of course - not really a check, whether the SOAP requests are working, but at least I know that the container can resolve the service.
EDIT: I just checked and even outside of sail the validation does not work.
from vat-calculator.
VIES is very unreliable and it's down for the moment.
https://ec.europa.eu/taxation_customs/vies/vatRequest.html
Not a bug but it would be better to return a different error message when the SOAP api is down.
from vat-calculator.
@ahoiroman if you set this to true in your config file, does that solve the issue for you? I mean: do you then get the VATCheckUnavailableException ?
https://github.com/driesvints/vat-calculator/blob/3.x/config/vat_calculator.php#L34
from vat-calculator.
That seems to solve the issue.
But: As I am using Laravel Spark (which uses this package under the hood), I'd have to create a new issue for that project.
from vat-calculator.
@ahoiroman the latest version of Spark should respect the settings of the config file. Doesn't it work for you if you use the latest spark-stripe? You're not using the old spark by any chance?
from vat-calculator.
Related Issues (20)
- Depreciation of api.ip2country.info HOT 2
- MS_MAX_CONCURRENT_REQ HOT 3
- Don't rely on Laravel config component
- How to handle gross values? HOT 3
- Physical goods versus digital services HOT 3
- 504 Gateway Time-out: What can I do against this? HOT 8
- Polish VAT - how to set 5% HOT 4
- PHP 8.1 warning HOT 4
- How to translate the validator message? HOT 9
- Custom rules seem to be ignored HOT 5
- Unsupported operand types: array * float HOT 1
- Class "SoapClient" not found HOT 1
- Validation rule not recognized HOT 3
- Refactoring suggestion HOT 1
- Adding new countries HOT 2
- Problems with the config file HOT 1
- Calculating the VAT Amount HOT 1
- Luxembourg VAT back to 17% from 01.01.2024 HOT 3
- Update Estonia standard VAT rate to 22% HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vat-calculator.