I have a simple payment form on my website with an option to pay with paypal express checkout. The rest of my form is validated with jquery validation.
How can I set it up when you click the paypal button, it should validate the form before allowing the paypal popup to open?
$("#form1").validate();
I have a simple paypal render script
<script>
paypal.Button.render({ ...
On the paypal documentation they offer something like this, but I don't know how to combine the 2
validate: function(actions) {
.....
},