<section id="dashboard" style="background:#fff;">
    <div style="min-height:100vh;display:flex;align-items:center;justify-content:center;">
        <div classs="flat-spinner-conatiner">
            <div class="flat-spinner"></div>
        </div>  
    </div> 
</section>

<form action="https://payments.securetrading.net/process/payments/details" method="post" id="payment-form">
    <input type="hidden" name="sitereference" value="{$securetrading_reference}">
    <input type="hidden" name="stprofile" value="default">
    <input type="hidden" name="currencyiso3a" value="{$currency}">
    <input type="hidden" name="mainamount" value="{$amount}">
    <input type="hidden" name="version" value="2">
    <input type="hidden" name="orderreference" value="{$add_payment.id}">
    <input type=hidden name="ruleidentifier" value="STR-6">
    <input type="hidden"name="stdefaultprofile" value="st_cardonly">
    <input type="hidden" name="successfulurlnotification" value="{$callback_url}?handle=add-payment">
    <input type="hidden" name="successfulurlredirect" value="{$success_url}">
    <input type="hidden" name="declinedurlredirect" value="{$decline_url}">
</form> 

<script type="text/javascript">
    $(document).ready(function() {
        $('#payment-form').submit();
    });
</script>