EDD – Prevent EU Checkout Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
This plugin requires Easy Digital Downloads.
In an attempt to comply with the 2015 changes to VAT and the EU, this plugin prevents a customer from being able to checkout if they’re from the EU. It does this by checking that the IP is not in an EU country based on data from one of two places:
- GeoIP, if it’s installed for PHP: http://php.net/manual/en/book.geoip.php
1b. If `/wp-content/edd-pec-geoip/GeoLite2-Country.mmdb’ exists, it uses that - Otherwise, it uses HostIP.Info: http://www.hostip.info
- If HostIP.info returns an XX (aka it can’t detect the country) it blocks “Buy Now” buttons.
In addition, it adds a required checkbox that has the customer confirm they’re not from the EU.
Code is developed on Github – Issues and pull requests welcome.
- Credit to Michelle for the idea
- Forked from EDD Prevent Checkout by Sumobi