ianternet Posted December 29, 2012 Share Posted December 29, 2012 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? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 29, 2012 Share Posted December 29, 2012 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"); 0 Quote Link to comment Share on other sites More sharing options...
ianternet Posted December 30, 2012 Author Share Posted December 30, 2012 thanks. I am using 2co and I can redirect but it has to go to the 2co module php script to validate I assume. I will try this script. Appreciate it! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.