title: Simulate hidden form submit & redirect with JavaScript for secure payment
body: <p>I am creating a secure payment system in a SPA application and the process I currently use is: </p>
  
  <p>CREATE HIDDEN FORM -> FILL FORM WITH DATA -> SUBMIT FORM &amp;&amp; REDIRECT USER TO 3RD PARTY SECURE PAYMENT GATEWAY</p>
  
  <p>I was wondering if there is a way with JavaScript or jQuery to <strong>simulate a form submit+redirect</strong>, without creating a hidden form, because this solution feels a little "dirty". 
  Ajax request is not an option here, because of cross origin restrictions</p>