I’m currently migrating my web app’s existing SqPaymentForm to the new Square Web Payments SDK, and my billing information inputs are no longer working as intended. I have the basic HTML “required” attribute set on all of them, so that they prevent a blank form submission. Like so:
Hey Bryan! Right now the “Pay Now” submit form-button can be clicked without having all required fields filled it. I think the issue is I have added an on-click event listener (as per the Square example docs) that runs a handlePaymentMethodSubmission function, which creates a payment token asynchronously, whereas before my Pay Now button would post the form and attempt making the payment token in the same submission.