WooCommerce – Trigger Checkout Form Validation

Question

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 wc_checkout_form class.

Hope it’s enough information, if needed any more, please let me know and I’ll provide.

Thanks.

0
Omer 2 months 0 Answers 10 views 0

Leave an answer