Support » Plugin: WooCommerce EU VAT Assistant » VIES VAT validation evidence printout auto-save

  • Resolved orderbot

    (@orderbot)


    Hello,

    Do your plug-in offering possibility to add company VAT number and save every EU VAT VIES validation printout auto-save? To have evidence VAT number was validated?

    “When making an enquiry on the Europa website you must identify yourself by entering your own VAT registration number and print out a record of the date and time that the enquiry was made and the result of the enquiry. If it later turns out that the customer’s number was invalid, you will be able to rely on the validation record as one element to demonstrate your good faith as a compliant business and to justify why you should not be held liable for any VAT fraud and revenue losses which occur.

    *) Excerpt from GOV UK VAT Notice 725: the single market”

    This is very important, and is done manually at current time. Would be great to have possibility to do in easier way.

Viewing 1 replies (of 1 total)
  • Plugin Author Diego

    (@daigo75)

    The EU VAT Assistant doesn’t store the response from the VIES system, but you can implement a customisation for that purpose, if you wish. The plugin provides a filter, called wc_aelia_eu_vat_assistant_customer_vat_exemption, which passes the raw response returned by the VIES service. You could write a custom function for that filter and store a copy of the raw response somewhere.

    Here’s a template, to get you started. You will just have to decide where to store the response, and write the code to do that.

    add_filter('wc_aelia_eu_vat_assistant_customer_vat_exemption', function($customer_vat_exemption, $vat_country, $vat_number, $vat_number_validated, $raw_vat_validation_response) {
      // Store $raw_vat_validation_response somewhere
    
      return $customer_vat_exemption;
    }, 10, 5);
    
Viewing 1 replies (of 1 total)
  • The topic ‘VIES VAT validation evidence printout auto-save’ is closed to new replies.