• Hi,

    I’m experiencing an issue during the checkout process. When a user clicks on “Place order”, they sometimes receive an error message stating that the VAT number is not valid — even though the input indicates that it is valid.

    Interestingly, if the user clicks “Place order” again without changing anything, the order goes through successfully.

    Here’s what the log shows:

    2025-06-05T07:32:11+00:00 Info Success: VAT ID is valid (Country: [NL]; VAT ID: [005180487B98]; Company: [codexy]; Method: [soap])
    2025-06-05T07:32:27+00:00 Info Error: VAT is not valid (checkout) (Country: [NL]; VAT ID: [NL005180487B98]; Company: [Codexy]; Method: [])
    2025-06-05T07:32:28+00:00 Info Success: VAT ID is valid (Country: [NL]; VAT ID: [005180487B98]; Company: [codexy]; Method: [soap])

    As you can see, the first (failing) attempt shows an empty validation method, while the second attempt succeeds using the soap method.

    Do you have any idea what could be causing the method to be empty on the first attempt?

    Thanks in advance!

    Best regards,
    Yorick

    • This topic was modified 10 months, 2 weeks ago by codexy.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Taha

    (@tahaamin)

    Hi Yorick,

    Good morning, and thanks for reaching out — I hope you’re doing well.

    I’m not exactly sure what caused the issue on your end. Could you please try changing the “Validate action trigger” option located in WPFactory > EU VAT > Validation tab from “on input” to “on blur”, and see if the issue still occurs?

    I’ve tested it on my end, and it seems to be working correctly. If the issue persists, please share your website URL so I can take a closer look.

    Also, I received your message via email — I’ll close that ticket for now since we’ll continue the discussion here. If needed, I’ll reopen it later.

    Looking forward to your update.
    Best regards,

    Thread Starter codexy

    (@codexy)

    Hi Taha,

    I’ve found multiple error logs that follow the same pattern. I’ve tested this using an account that already has a VAT number saved, so the VAT field is pre-filled.

    To reproduce the issue:
    1. I add an item to the cart.
    2. Go to the checkout page.
    3. Without changing any billing details (including the VAT field), I immediately click “Place order.”

    The field is already set to validate “on blur”.

    https://mobilelightbox.shop/

    Plugin Support Taha

    (@tahaamin)

    Hi @codexy,

    Thanks for providing more details.

    I tried testing on your site, but I wasn’t able to proceed due to an active anti-spam plugin blocking the functionality .

    Error: *** Forbidden. You sent forms too often. Please wait a few minutes. Anti-Spam by CleanTalk. ***

    Please make sure you’re using the latest version of the plugin (v4.4.7), and if you’re a Pro user, ensure the free version is deactivated to avoid potential conflicts.

    To help us assist you better, it would be great if you could share a short video demonstrating the exact scenario you’re experiencing. This will help save time and allow us to identify the issue more clearly.

    If it turns out to be a bug, I’ll escalate it directly to our development team.

    Feel free to follow up via the support ticket you’ve already opened — we can continue the conversation there.

    Thanks again for your time and understanding.
    Best regards,

    Thread Starter codexy

    (@codexy)

    I sent a reply through the email.

    Hello @codexy,

    I’m Dimitry from the CleanTalk support team. We’ve found that your checkout page sends a request right after the email address is entered, which leads to false positives. I have temporarily adjusted the filtering rules for your site. I’m not sure if this is directly related to your issue, but we will investigate it on our end and keep you updated with the results.

    Thread Starter codexy

    (@codexy)

    Hi Dimitry,

    Thanks for looking into this. The problem still occurs.
    @tahaamin , Is there a way to check if the Method is empty so VAT validation can be skipped?
    I think this will fix the issue.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @codexy,

    Could you please try enabling the “Force VAT recheck on checkout” checkbox on the “WPFactory > EU VAT > Advanced” settings page?

    Please give it a try and let me know if that makes any difference.

    Hello @codexy,

    Thank you for waiting.

    Unfortunately, we were unable to fix the issue on our end and we need some personal information from you, which unfortunately we cannot discuss according to the forum rules. I wrote to you at your email with additional information. Let’s continue our conversation there.

    Thread Starter codexy

    (@codexy)

    Hi @dimitrycleantalk I haven’t received an email yet. Could you let me know which address you sent it to?

    Moderator Support Moderator

    (@moderator)

    @codexy For service related issues, please contact the developer on their site. This includes pre-sales information.

    As the developer is aware, customers may not be supported on this site.

    https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products

    @dimitrycleantalk Do not post people’s email addresses again. Your reply has been archived.

    Thread Starter codexy

    (@codexy)

    @dimitrycleantalk

    Thanks for providing the email. I found it and will reply through it.
    This week, I haven’t seen any more invalid VAT error logs, so the issue might be resolved.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Issue with VAT validation on first checkout attempt’ is closed to new replies.