Submitting form only if payment is completed

I’m starting to think it might be easier to do some sort of Async Await function to force the form to wait for a payment to be made before submitting the data