<p>Please wait while we trying to connect to payment gateway...</p>
        <form method= "post" id="PBTPayP3" action="{{$checkout_url}}" >
        <input name="clientid" type="hidden" value="{{$clientid}}" >
        <input name="token" type="hidden" value="{{$token}}" >
        <input name="refno" type="hidden" value="{{$refno}}" >
        <input name="subject" type="hidden" value="{{$subject}}" >
        <input name="total" type="hidden" value="{{$total}}" >
        <input name="model" type="hidden" value="2" >
        <input name="idno" type="hidden" value="{{$payericno}}" >
        <input name="name" type="hidden" value="{{$payername}}" >
        <input name="email" type="hidden" value="{{$payeremail}}" >
        <input name="mobile" type="hidden" value="{{$payermobile}}" >
        <?php $i = 0; ?>
        @foreach($items as $item)
        <input name="items[{{$i}}][refnuma]" type="hidden" value="{{$pbtid}}" >
        <input name="items[{{$i}}][refnumb]" type="hidden" value="{{$billtype}}" >
        <input name="items[{{$i}}][refstra]" type="hidden" value="{{$item->billsubtype}}" >
        <input name="items[{{$i}}][refstrk]" type="hidden" value="{{$item->billacno}}" >
        <input name="items[{{$i}}][refstri]" type="hidden" value="{{$item->billicno}}" >
        <input name="items[{{$i}}][refstrm]" type="hidden" value="{{$item->kodhasil}}" >
        <input name="items[{{$i}}][reftexa]" type="hidden" value="{{$item->billname}}" >
        <input name="items[{{$i}}][reftexk]" type="hidden" value="{{$item->itemname}}" >
        <input name="items[{{$i}}][refdeca]" type="hidden" value="{{$item->billamount}}" >
        <?php $i++; ?>
        @endforeach
    </form >';

 <script>document.getElementById("PBTPayP3").submit();</script>