Jump to content

Menually Created Payment Gateways - Auto redirect to action page


zahidfact

Recommended Posts

I have created a "TrxID Submission form"

Problem is when a user place an order then auto-redirect to Submission form action page.
That's why user need to open invoice manually.

But Should be sticky "TrxID Submission form" or Auto-redirect to invoice page.

See this video then you will understand: https://www.screencast.com/t/eMFOn47V6

Please see "TrxID Submission form" Code and help me how to sticky "TrxID Submission form" or Auto-redirect to invoice page.

 


Spoiler

Please see my "TrxID Submission form" Code: 

<?php

function bKash_Payment_link($params) {
    global $_LANG;

    $code ='


    
<img class="test site-logo" src="https://www.bkash.com/sites/all/themes/bkash/logo.png" alt="bkash"><br>
<a target="_blank" href="https://client.iithost.com/knowledgebase/12/bKash.html">How To Pay?</a>
    
<div style="text-align: left;">
<span style="color: green;"><b><span style="color: green;">Dial </span><span style="color: red;">*247#&nbsp;</span></b></span><br />
<span style="color: green;"><b><span style="color: green;">Choose “</span><span style="color: red;">Send Money</span><span style="color: green;">”&nbsp;</span></b></span><br />
<span style="color: green;"><b><span style="color: green;">Account No: </span><span style="color: red; font-size: medium;">01726000129</span></b></span><br />
<span style="color: green;"><b><span style="color: green;">Amount:</span><span style="color: red;"> '.nl2br($params['amount']).'</span></b></span><br />
<span style="color: green;"><b><span style="color: green;">Reference: </span><span style="color: red;">'.$_LANG[''].''.$params['invoiceid'].'&nbsp;</span></b></span><br />
<span style="color: green;"><b><span style="color: green;">Enter PIN to confirm: </span><span style="color: red; font-size: medium;">bKash Pin</span></b></span><br />
<span style="color: green;"><b><br /></b></span>
<span style="color: green;"><b>Done! You will receive a confirmation message from bKash.</b></span></div><br>
<span style="color: darkmagenta;"><b>Now Submit TrxID Below ></b></span><br>






    <div class="payment-btn-container hidden-print" align="center">
    <form id="form1" name="form1" method="post" action="https://iithost.xyz/bill/modules/gateways/callback/bkash.php">
    <input type="hidden" name="name" value="Send Money">
    <input type="hidden" name="total_amount" value="'.nl2br($params['amount']).'">
    <input type="hidden" name="invoice_id" value="'.$_LANG[''].''.$params['invoiceid'].'">
    <label for="trx_id"></label>
    <input name="trx_id" type="text" id="trx_id" style="text-align:center;font-weight:bold;" size="15" placeholder="Type TrxID" minlength="10" maxlength="10" required="required"></p>
    <input type="submit" name="button" id="button" class="btn btn-primary" value="Submit TrxID">
    </form>
    </div>

    
    
    
    ';

    return $code;

}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated