• Resolved dnchristina

    (@dnchristina)


    Hello,
    I have a problem in checkout page with PayPal method.
    In the telephone field of the form, I add with Ajax the country code of the current country and make some checks for the telephone to be valid.
    For that, I create notices to warn the user if the field is invalid (using the hook “woocommerce_after_checkout_validation” and displays them with “wc_add_notice()”), but in PayPal checkout the messages don’t appear.

    Do you have a solution to recommend?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @dnchristina,

    Currently, the WooCommerce validation only occurs after creating the PayPal order. So any custom errors would only appear after the popup window is closed.
    But the next updated improves the compatibility with plugins or filter that hook into the WooCommerce validation. There is a test package linked in this GitHub issue.
    Please give it a try and let us know how this works for your application.
    Thanks!

    Kind regards,
    Niklas

    Thread Starter dnchristina

    (@dnchristina)

    Hi @niklasinpsyde,

    Thank you for your quick reply!
    I will check the test package. In the update, the execution of WC validate_checkout it will be appeared before the popup appears?

    Thanks!

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Yes, this test version (and the upcoming update) should trigger validate_checkout upon button click before the user can interact with the popup window.
    Feedback about how it works for your application is appreciated in any case. Thanks!

    Kind regards,
    Niklas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    We have not heard back from you in a while, so I’m marking this thread as resolved.
    Hopefully, the above information helped you out.
    If you have any further questions, please feel free to reopen this topic or create a new one.
    Thanks!

    Kind regards,
    Niklas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Invalid Fields in checkout page and the payment continues with out problem’ is closed to new replies.