knitting

Author Topic: EU VAT ID check (class VmEUVatCheck)  (Read 7118 times)

mistcaller

  • Beginner
  • *
  • Posts: 1
EU VAT ID check (class VmEUVatCheck)
« on: March 15, 2010, 11:59:37 AM »
According to http://ec.europa.eu/taxation_customs/vies/faqvies.do#item16 as of 5th of March, 2010 the endpoint of the SOAP service has changed.

so the new var-url in classes/euvatcheck.class.php should read

Code: [Select]
var $viesurl = 'http://ec.europa.eu/taxation_customs/vies/services/checkVatService.wsdl';

yakkes

  • Beginner
  • *
  • Posts: 40
Re: EU VAT ID check (class VmEUVatCheck)
« Reply #1 on: April 07, 2010, 11:02:27 AM »
not only the link is changed. Also function startelement needs to be changed.
case "URN:VALID" instead of "VALID"

   function startElement($parser, $element_name, $attributes) {
      switch($element_name) {
         case "URN:VALID" : $this->output = true;



zanardi

  • Development Team
  • Sr. Member
  • *
  • Posts: 848
    • GiBiLogic
Re: EU VAT ID check (class VmEUVatCheck)
« Reply #2 on: August 07, 2010, 09:25:44 AM »
Thank you for your suggestions: this fix will be included in VM 1.1.6.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Hero Member
  • *
  • Posts: 4132
  • VM2 ready to take off
    • VM2 Extensions
  • VirtueMart Version: 2.1
Re: EU VAT ID check (class VmEUVatCheck)
« Reply #3 on: August 07, 2010, 09:28:41 AM »
ah okey thank you, I will do it for vm1.5
Seminar/Workshop for virtuemart by the core team http://extensions.virtuemart.net/certifications/certification-of-virtuemart-2-detail
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MrBelgium

  • Beginner
  • *
  • Posts: 5
Re: EU VAT ID check (class VmEUVatCheck)
« Reply #4 on: August 26, 2010, 12:48:20 PM »
I applied the suggested fix in the Euvatcheck-class (new url + URN:VALID), but it doesn't work. The site freezes at line 78:

/* Call the VIES to check the VAT ID */
$this->client->call('checkVat', $param);

Do you have any suggestions?

vitovito

  • Beginner
  • *
  • Posts: 31
Re: EU VAT ID check (class VmEUVatCheck)
« Reply #5 on: September 23, 2010, 06:27:42 AM »
does not work for either
any suggestions

vitovito

  • Beginner
  • *
  • Posts: 31
Re: EU VAT ID check (class VmEUVatCheck)
« Reply #6 on: September 30, 2010, 05:53:49 AM »
I have applyed the hack againg now seems working and I get confirmation , but user is not move to the required shopper group
any suggestion

zanardi

  • Development Team
  • Sr. Member
  • *
  • Posts: 848
    • GiBiLogic
Re: EU VAT ID check (class VmEUVatCheck)
« Reply #7 on: November 10, 2010, 15:39:36 PM »
I just uploaded a BETA 4 package for VirtueMart 1.1.6 which should include the fix for this issue.
It's available at http://dev.virtuemart.net/redmine/issues/178
Does anyone care to make a test and then let me know? Thank you.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

p.barg

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 81
    • Barg IT
Re: EU VAT ID check (class VmEUVatCheck)
« Reply #8 on: March 17, 2011, 06:07:24 AM »
Hello,

as I just noticed, the service changed its address again...
The correct URL should now read:
http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl

Petra

VirtueMart Forum

Re: EU VAT ID check (class VmEUVatCheck)
« Reply #8 on: March 17, 2011, 06:07:24 AM »