strangerstudios / pmpro-vat-tax

Calculate VAT tax at membership checkout with Paid Memberships Pro. Allows customers with a VAT Number to avoid the tax.
https://www.paidmembershipspro.com/add-ons/vat-tax/
8 stars 20 forks source link

Portuguese VAT number fails to validate #50

Closed andrewlimaza closed 7 months ago

andrewlimaza commented 2 years ago

Entering a valid Portuguese VAT number returns invalid. It seems some VAT validations return true while mostly returning false.

Ticket Reference: #377166

andrewlimaza commented 2 years ago

Error code received: VAT number was not verifed. Please try again.

This is the only VAT validation service I could get to return true, while all other validation services return false - https://www.vat-number-check.com/portugal.html

michaelbeil commented 2 years ago

A customer (ticket 447195) is experiencing this error with a German VAT number.

in our checkout the VAT number validation does not work. It’s showing the error: “Die Umsatzsteuer-Identifikationsnummer wurde nicht verifiziert. Bitte versuche es erneut.” Translation to english means: “The VAT number could not be verified. Please try again.”

WordPress Environment

``` Paid Memberships Pro 2.9.4, VAT Tax 0.7.1, WordPress 6.0.2, PHP 7.4.30 ```

Resolved by removing country code before the VAT number.

MaryOJob commented 1 year ago

Similar (Moderators Only): #477741

andrewlimaza commented 7 months ago

This PR may fix things - https://github.com/strangerstudios/pmpro-vat-tax/pull/61