Submit form autmatically on payment confirmation

I want to make form submit only when payment is done successful. Currently Paypal is integrated. is there any way to do this?

Currently There is Place order Button and a Paypal payment button