/**
 * Auto-submits the myPOS IPCPurchase form so the customer never sees the
 * intermediate page. Falls back to the <noscript> submit button on JS-off
 * browsers. Runs at end of body (in_footer:true), so the form is guaranteed
 * to be in the DOM already.
 */
(function () {
    var form = document.querySelector('form[data-pay4all-mypos-autosubmit]');
    if (form && typeof form.submit === 'function') {
        form.submit();
    }
})();
