Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

VAT Intracom Add-On


Recommended Posts

Hi you all!

 

I have the VAT Intracom Add-on since november 2010 running on our shop, successfully, and for a few days it shows a blank page when trying to connect to the http://ec.europa.eu/taxation_customs/vies/services/checkVatService.wsdl. I get exactly an error on that when I check the LOG files. :-(

Does someone have an idea why?

 

Thanx a lot

Link to comment
Share on other sites

Hi you all!

 

I have the VAT Intracom Add-on since november 2010 running on our shop, successfully, and for a few days it shows a blank page when trying to connect to the http://ec.europa.eu/taxation_customs/vies/services/checkVatService.wsdl. I get exactly an error on that when I check the LOG files. :-(

Does someone have an idea why?

 

Thanx a lot

 

Well, if you go to that URL you see that this file does NOT longer exist! The new URL that is listed on the ec.europa.eu website says http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl instead now, so it's worth using that one now! (simply without the /services folder in the path).

 

Hope that helps and thanks for posting this

Best

Samir

Link to comment
Share on other sites

Just for completeness, that's how your function should look like now:

 

function tep_verif_tva($vat_number) {
	$countryCode 	= substr($vat_number, 0, 2);
	$vatNumber 		= substr($vat_number, 2);

	$vatcheckurl = "http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl";
	$client = new SoapClient($vatcheckurl);
	$params = array('countryCode' => $countryCode, 'vatNumber' => $vatNumber);

	try {$result = $client->checkVat($params);}
	catch (SoapFault $e){
		return 'no_verif';
	} 

	if ( !$result->valid ) {
                       return 'false';
	} else {
		return 'true';
	}
return false;
}

Link to comment
Share on other sites

Thanx for the quick answer, it was all I needed! :rolleyes: Just wondering, when they change this again, how do I find out before it happens, that I can adjust my software to it, before loosing some customers???

 

Hi,

 

no I don't think you can now for sure but the last time they changed it, this new address was on their website a month before they removed the old address page, so the only way is to regularly check (maybe once a month, that's what I'll do) their website if the url changed: http://ec.europa.eu/taxation_customs/vies/faqvies.do#item16 (number 16)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...