Jump to content

Problem with the VAT hook, got a error


adknoth

Recommended Posts

Hello All,

 

I have tried to intergrate the VAT hook but still got problems. Edit the file like this:

 

$VAT_CUSTOM_FIELD_NAME = "VAT Number";

$VAT_HOME_COUNTRY = "NL";

 

add_hook("ClientDetailsValidation",0,"checkVATNumberIsValid","");

add_hook("ClientAdd",0,"setTaxExemptForVAT","");

 

And make a custom client field named VAT Number, but when i order and i say i'm from Belgium and i use a BE VAT Number the system says: The supplied VAT Number is not valid

 

But when i do this check in the browser: http://isvat.appspot.com/BE/0447830192/ the output is true, why would WHCMS say that the vat number is incorrect?

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
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated