Jump to content

WHMCS payment gateway .


Blazin22

Recommended Posts

Hello everyone sorry to bother you with so many problems lol I have one last issue.

 

When I have my whmcs setup I have in general in order section so after they order they get forwarded to the payment gateway... and when they click pay it sends them to my knowledge base any idea why? I got it sent to send user to invoice for now... I'm using latest whmcs licensed blazinhosting.net/whmcs with a custom theme.

 

 

 

 

Kind Regards. Any help would be appreciated when a customer wants to hit pay it sends them to the knowledge base when its suppose to send them to the payment gateway.

Link to comment
Share on other sites

Thanks for replying sparky but my template that contains forwardpage.tpl contains already this coding.

 

 

<br /><br />

<p align="center">{$message}</p>

<p align="center"><img src="images/loading.gif" alt="Loading" border="0" /></p>

<p align="center">{$code}</p>

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

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

{literal}

<script language="javascript">

setTimeout ( "autoForward()" , 5000 );

function autoForward() {

document.forms[1].submit()

}

</script>

{/literal}

 

 

Any further ideas? I still have it set to forward the user to invoice for now but when I had it to forward to payment gateway they got sent to knowledge base, when they clicked pay now and I even tested and I did too.

Link to comment
Share on other sites

You have 3 forms above the one that needs to redirect so you need to change the number in that line I told you about earlier to 3 and it should work for you.

 

It would be alot easier if that had an ID tag for the redirect form to save this type of hassle.

Link to comment
Share on other sites

Okay, I changed it to 3 sir but can you tell me why do you say 3 forms what is a form? exactly... is it the number of payment modules I have? or something different... I changed it to 3 and tested a order with paypal and it dident seem to do it : D i put it to forward to payment gateway and it went to paypal correctly now instead of knowledge base will try others can you tell me what a form is tho sir? lol

Link to comment
Share on other sites

What is a form? http://www.w3schools.com/html/html_forms.asp

 

As I said you have 3 forms above the redirect form

1) login form at the top of the page

2) login form on the side bar

3) knowledgebase form on the sidebar

 

Then the next form when it gets to the checkout page is form 4

the numbers in the java code start from 0 so that is why you would need "3" for your 4th form

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