diff --git a/paypal/js/frontend.js b/paypal/js/frontend.js index 55b21aa74d..9296a5c032 100644 --- a/paypal/js/frontend.js +++ b/paypal/js/frontend.js @@ -1454,6 +1454,12 @@ thisForm.append( paymentSourceInput ); + // If using the PayPal buttons to submit, there will not be a submitEvent. + if ( ! submitEvent ) { + submitEvent = new Event( 'submit', { cancelable: true, bubbles: true } ); + submitEvent.target = thisForm; + } + frmFrontForm.submitFormManual( submitEvent, thisForm ); }