Jump to content

Thank You Page after Payment?


ianternet

Recommended Posts

hey guys.. this is my first time utilizing WHMCS and I started a reseller hosting business and I am utilizing 2CO as my payment gateway, I tested it and it worked, fraud, refund, etc.

 

BUT the problem is when the end user sees their payment confirmation via 2checkout, there is no button on that page to go anywhere. it is just a payment receipt. There is a go back shopping button but it redirects back to the shopping cart.

 

I essentially want to redirect the user to a thank you page when their order is complete. Is there a way to do that?

Link to comment
Share on other sites

It depends on the payment gateway you are using and some other factors. For example i use IWBank and Onebip and i can redirect user after successful payment via POST. With Paypal you can do the same. Simply set "return" variable in your POST. Anyway you can also ignore all the stuff and redirect the user with this hook. Something like:

function redirect_after_payment($vars) {

   if(!empty($ispaid)) { header("Location: http://www.example.com/welcome"); }

}

add_hook("ShoppingCartCheckoutCompletePage",1,"redirect_after_payment");

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