Jump to content

Please wait while you are redirected to the gateway you choose to make payment


Milesweb

Recommended Posts

Currently using WHMCS Version: 7.1.2, the issue was there on previous versions as well.

 

We have Indian payment gateway EBS and PayUmoney for card payments and PayPal for international clients. The payment redirect issue is with all the three gateways. Refer the attached screenshot.

 

Please wait while you are redirected to the gateway you choose to make payment and the client is never redirected. On the same page there is "Pay Now" button, if we click on that it will redirect to the payment page. But as the message is flashed "Please wait while you are redirected.....", the client expects that it will auto-redirect and they don't need to click on the pay now button.

 

I have researched a lot on this issue and tried almost everything that is there on the web to fix this issue.

 

I have tried the default and few other WHMCS templates, changed the code in 3dsecure.tpl and also modified the time in forwardpage.tpl but still the issue is not fixed.

 

Replaced this

<p>{$LANG.creditcard3dsecure}</p>

<div id="submitfrm" class="textcenter">

{$code}

<iframe name="3dauth" height="500" scrolling="auto" src="about:blank" style="width:80%;border:1px solid #fff;"></iframe>

</div>

{literal}

<script language="javascript">

setTimeout ( "autoForward()" , 1000 );

function autoForward() {

	var submitForm = $("#submitfrm").find("form");

	submitForm.submit();

}

</script>

{/literal}

 

With this

<p>{$LANG.creditcard3dsecure}</p>

<div id="submitfrm" class="textcenter">

{$code}

<iframe name="3dauth" height="500" scrolling="auto" src="about:blank" style="width:80%;border:1px solid #fff;"></iframe>

</div>

{literal}

<script language="javascript">

setTimeout ( "autoForward()" , 1000 );

function autoForward() {

document.forms[0].submit()

}

</script>

{/literal}

 

Changed 5000 to 1000 in forwardpage.tpl

<div class="alert alert-block alert-warning textcenter">

   <p>{$message}</p>

</div>

<p><img src="assets/img/loading.gif" alt="Loading" border="0" /></p>

<div id="submitfrm">

   <div align="center" class="textcenter">{$code}</div>

   <form method="post" action="{if $invoiceid}viewinvoice.php?id={$invoiceid}{else}clientarea.php{/if}">

   </form>

</div>

{literal}

<script language="javascript">

setTimeout("autoForward()", 1000);

function autoForward() {

   var submitForm = $("#submitfrm").find("form:first");

   submitForm.submit();

}

</script>

{/literal}

 

Does anyone has a permanent solution for this?

whmcs-payment-redirect-issue.png

Link to comment
Share on other sites

it's worth noting that the default Six forwardpage.tpl for v7.1.2 (and v7.2) is slightly different from the one you posted...

 

<br />

{include file="$template/includes/alert.tpl" type="info" msg=$message textcenter=true}

<br />

<div class="text-center">

   <img src="{$BASE_PATH_IMG}/loading.gif" alt="Loading" border="0" />

   <br /><br /><br />

   <div id="frmPayment" align="center">

       {$code}

       <form method="post" action="{if $invoiceid}viewinvoice.php?id={$invoiceid}{else}clientarea.php{/if}">
       </form>

   </div>

</div>

<br /><br /><br />

<script language="javascript">
   setTimeout("autoSubmitFormByContainer('frmPayment')", 5000);
</script>

3Dsecure.tpl is different too - the most obvious difference in both templates being that neither uses {literal} - it's not used as much since v6 was introduced.

 

http://docs.whmcs.com/Version_6_Template_Migration_Guide

 

i'd suggest downloading the v7.1.2 zip file again and retrying a default "Six" template to see if that fixes the issue. :idea:

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