• Resolved rivduan

    (@rivduan)


    I have a few stores on woocommerce, and i really love because we can integrate many php functions. But i dont know how to start or how to do this:

    I have an issue with one website, i need to integrate a Email Validation, because many emails are bounced.

    Note: i dont want to just “Confirm email” or send a confirmation code to his emails, because many of them dont even want to complete purchase if i do that.

    I want to integrate this API: https://www.gmass.co/blog/email-verification-service/#caption-attachment-13152:~:text=Option%203%3A%20API

    The Workflow will be something like this:
    1- Customer enter his email address, complete the checkout and click en place order
    2- When customer click on “place order” the information is sent to that api and is verified, if the email is not valid or not exist, avoid to place an order

    Anyone have an idea of how can i integrate this external 3rd api to verify my customers email address on woocommerce?

    i appreciate if you have an idea

Viewing 1 replies (of 1 total)
  • There’re two possible ways to use an external API to validate email addresses on the checkout page:

    1. Add a “change” event listener to the billing_email field and send an AJAX request to the API to validate an address
    2. Use the woocommerce_after_checkout_validation to validate an address on the backend

    Or you can even combine both options to make sure that an address is valid. There’s a good article on this topic written by Misha Rudrastyh:
    https://rudrastyh.com/woocommerce/custom-checkout-validation.html

Viewing 1 replies (of 1 total)
  • The topic ‘How to validate email address using external api’ is closed to new replies.