Enabling domain proxy breaks API connection between WooCommerce and EVRI
What steps have you taken to resolve the issue?
1 - In Cloudflare’s DNS settings for the domain, ensure the Proxy Status for the domain’s main A and AAAA records is set to Disabled.
2 - On your website, login to the WordPress admin dashboard.
3 - In “WooCommerce > Settings > Advanced > REST API” click Add Key filling it out with relevant information and selecting Read/Write.
4 - Click Generate API Key and copy the API keys for later.
5 - Login to the EVRI business website (https://business.evri.com)
6 - Go to the following URL to create a new WooCommerce connection: Sign In
7 - Paste the Consumer Key and Consumer Secret into the relevant boxes and enter the root domain of the WooCommerce shop.
8 - Click the “Link My WooCommerce Account” button.
9 - Setup will complete without any error messages.
What feature, service or problem is this related to?
DNS records
What are the steps to reproduce the issue?
1 - In Cloudflare’s DNS settings for the domain, ensure the Proxy Status for the domain’s main A and AAAA records is set to Proxied (enabled).
2 - On your website, login to the WordPress admin dashboard.
3 - In “WooCommerce > Settings > Advanced > REST API” click Add Key filling it out with relevant information and selecting Read/Write.
4 - Click Generate API Key and copy the API keys for later.
5 - Login to the EVRI business website (https://business.evri.com)
6 - Go to the following URL to create a new WooCommerce connection: Sign In
7 - Paste the Consumer Key and Consumer Secret into the relevant boxes and enter the root domain of the WooCommerce shop.
8 - Click the “Link My WooCommerce Account” button.
9 - You will see the error message “Your configuration failed our validation test, please check your details and try again.”
I can get by for now by disabling the proxy, however I need to get this working eventually.
Unfortunately EVRI don’t provide any further details for setting up the WooCommerce connection other than what’s in the attached screenshot.
Is there a way I can detect the domain or IP that is making the connection from EVRI and allowlist that so it doesn’t get proxied? Apologies, I’m not hugely familiar with API connections between third parties and WooCommerce.
Sometimes our Security settings at Cloudflare for our Website could cause such issues.
You should be able to see the challenged or blocked event under the Security tab → Events at Cloudflare dashboard for your zone and know exactly which security option was triggered. Could be Bot Fight Mode or Browser Integrity.
Once you find them, click on a particular one to find more details about it (user-agent, IP, HTTP version …). If yes, could you share some details which service was triggered that blocked you?
you should see your origin host/server IP out there and user-agent like WP-cron or WordPress/version
Just in case if you encouter some issues and/or errors, since it’s related to the WordPress, I’d suggest you to allowlist your origin host / server / hosting IP address by navigating to the Security → WAF → Tools → IP Access Rules with the action “allow” for your Website and try again.
It knows to happen due to the WordPress using HTTP/1.0 and empty user-agent, therefore while executing WP-Cron or some other related JSON/REST API request via plugin which triggers the WAF rules (as it should normally).
I would also suggest you to contact their support just in case if they have some IP addresses os user-agents which you could allow as well just in case to not block their service accessing your Website.