WooCommerce – Trigger Checkout Form Validation
I have been looking around for the answer but did not find any.
I am creating an
iframe payment gateway while the iframe is loaded inside the checkout page. My goal is once the customer clicks on a certain button, the function which validates that the customer has filled all the required input is triggered and if it returns
true the iframe loads.
Otherwise, the notice from the validating function is triggered.
I found the function as a method called
update_checkout_action inside the
Hope it’s enough information, if needed any more, please let me know and I’ll provide.