| 开发者 | jeangalea |
|---|---|
| 更新时间 | 2026年11月12日 03:25 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
Checkout still works. By default the order is accepted, VAT is charged and the order is flagged as pending validation. The plugin checks the number again later and, if it validates, marks the order and can email you so you can refund the VAT. The setting "When a registry is unavailable" offers two alternatives: accept the order, exempt the VAT and re-check later, or don't accept the order. Registry requests time out after a few seconds. Exempting while a registry is down lets anyone enter a made-up number for that country, so the VAT is yours to recover if the re-check fails.
HMRC only answers requests that carry credentials from a registered application, so you need your own. They're free.
The plugin hooks into the WooCommerce Subscriptions renewal and switch hooks. A renewal is decided as a new sale: the subscription's stored registry answer is reused while it's fresh, otherwise the number is checked again, and the decision is stored on the renewal order. If a renewal can't be decided, VAT is charged. This has been tested against a stand-in for the Subscriptions hooks, not against the WooCommerce Subscriptions plugin itself.
Yes. VAT Right reads the VAT numbers WooCommerce EU VAT Number, EU/UK VAT Validation Manager (WPFactory), Aelia EU VAT Assistant and EU/UK VAT Compliance (Simba) saved on orders and customers, so past orders, invoices and checkout keep them. Under WooCommerce > Settings > Tax > VAT Right, the import counts what it found, then copies the numbers, the validation results and the store's own VAT number into VAT Right in the background. It works with the other plugin deactivated, keeps any number VAT Right already holds and leaves the other plugin's data as it is. From the command line: wp vatright import --dry-run, then wp vatright import.
VAT Right prints the customer's VAT number in the order's billing address, and also saves it in the _billing_vat_number and _vat_number_is_valid order fields invoice plugins read. Turn that off under Data > Invoice plugins.
It stores the customer's VAT number, the registry's name, address and consultation number for it, and the IP country evidence used for digital sales, on the order, in the plugin's ledger table and, for logged-in customers, in their account. After the retention period (10 years by default, counted from the end of the year of the sale, which matches the OSS record-keeping period) the plugin removes the personal data from the decision record and ledger rows and keeps the scheme, rule, amounts and country evidence. Exporters and erasers are registered with the WordPress privacy tools. All plugin data is kept when you delete the plugin, unless you tick "Delete all plugin data when the plugin is deleted".
See "External services" below. Nothing else is contacted, and the plugin makes no request unless a VAT number, a rate update or a currency conversion needs it.
Each of these errs on the side of charging VAT.
wp vatright import. A dry run shows the counts first; nothing is overwritten and the other plugin's data is left as it was.