option to store vies VAT consultation number

Forums EU/UK VAT Manager for WooCommerce option to store vies VAT consultation number

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #157381
    andrej
    Participant

    Hi,

    In some EU countries it is required to have “consultation number” from vies response (requestIdentifier) stored as a proof that vat number vas valid.

    Is it possible to add this option, since now we have to edit plugin code every time it’s updated to have this option.

    In order to get this number, it’s required to send requester vat number in vies request. There should be a new option added for this field.

    Old “Eu vat assistant” plugin had this option, and stored the resulting string as “vies_consultation_number” in db, so we reused that name for compatibility reasons.

    This is how we do it now for soap request:

    In alg-wc-eu-vat-functions-validation.php we changed checkVat with checkVatApprox:

    <div>$result = $client->checkVatApprox( array(</div>
    <div>’countryCode’ => $country_code,</div>
    <div> ‘vatNumber’   => $vat_number,</div>
    <div>’requesterCountryCode’  => ‘COUNTRYCODE’,</div>
    <div>’requesterVatNumber’    => ‘VATNUMBER'</div>
    <div>) );</div>

    <div>And we hacked storing the result in the return function with:</div>

    <div>update_post_meta( $order_id, ‘vies_consultation_number’, $result->requestIdentifier );</div>

    #159296
    Taha
    Moderator
    Plugin Support

    Hi Andrej,

    I hope you’re doing well.

    This is a follow-up email regarding your request for the requestIdentifier. I noticed that you have an ongoing discussion with the developer on WordPress regarding this topic.

    For that reason, I will mark this topic as resolved here. You can continue the discussion on WordPress via this link.

    Please don’t hesitate to reach out if you encounter any issues—we’re happy to help!

    Best regards,
    WPFactory Support Team

    #159297
    Taha
    Moderator
    Plugin Support

    Hi Andrej,

    I hope you’re doing well.

    This is a follow-up email regarding your request for the requestIdentifier. I noticed that you have an ongoing discussion with the developer on WordPress regarding this topic.

    For that reason, I will mark this topic as resolved here. You can continue the discussion on WordPress via this link.

    Please don’t hesitate to reach out if you encounter any issues—we’re happy to help!

    Best regards,
    WPFactory Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.