Fixes payment redirect when a form submit should be preferred over a redirect