I've integrated a custom payment gateway in JS, which triggers on click of place order. Currently, it process the payment without validating the checkout form.

But I need to check the checkout form validation with JS in my custom JS. If the field is not validated return true else process the place order with custom JS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.