Open m2-assistant[bot] opened 6 months ago
Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @vovayatsyuk,
Thank you for the report and collaboration!
This issue can be marked as feature request, as you are adding reult object to log file for a better validation logic. Thank you.
Yes, it's a feature request to add the address returned by Vat Vies validation service to the result object, so other third-party modules may work with it.
This issue is automatically created based on existing pull request: magento/magento2#31010: Add VIES validation result object to the response.
Description
This commit adds
result_object
to the method response. This allows doing some additional validation logic in the plugin written forMagento\Customer\Model\Vat
model. For some countries, this object returns additional fields:Manual testing scenarios
Apply the patch.
To test it you need a valid Netherland taxvat number.
Open vat validator model and add the following code right before the end of the method: https://github.com/magento/magento2/blob/HEAD/app/code/Magento/Customer/Model/Vat.php#L218
Go to admin config Stores > Configuration > General > Store Information
Select a valid country for your tax number, fill the tax number field, and press the "Validate VAT Number" button.
Check the
magento_root/var/log/custom.log
. You should see the VIES result object:Contribution checklist (*)