Jump to content

Redirecting to a certain page AFTER payment


pogiii

Recommended Posts

yeah paypal

 

whmcs automatically redirects back to the site (either to the invoice that says paid, or the order completed page)

 

 

Support told me this:

 

Or an easier way would be to select the "Just show the order completed page" option and edit the order completed template and add some code to redirect your visitors. That would be the /templates/*your active template*/forwardpage.tpl file.

 

 

i have NO IDEA how to do that. LOL

 

anyone that can guide me? I just want it to redirect to a certain URL

 

what code should i put in?

 

thanks

Link to comment
Share on other sites

Hello,

 

This can be set via your PayPal account under Profile > My Selling Preferences > Website preferences > Return URL

 

Jack

 

whoops didnt see this one Jack

 

so i basically set this up in paypal and i dont have to setup anything else in whmcs?

Link to comment
Share on other sites

whoops didnt see this one Jack

 

so i basically set this up in paypal and i dont have to setup anything else in whmcs?

 

Yeah that's one way of doing it, but the only downside is it'll only be for PayPal.

 

If you have multiple payment gateways and want to redirect them all the method WHMCS recommends would be best, try this code:

 

{php}
header("Location: http://www.example.com/");
exit;
{/php}

Link to comment
Share on other sites

where do i put this code? i mean, do i delete anything on the forwardpage.tpl file? which part should i insert this? sorry for the trouble.

 

thank you!

 

 

Yeah that's one way of doing it, but the only downside is it'll only be for PayPal.

 

If you have multiple payment gateways and want to redirect them all the method WHMCS recommends would be best, try this code:

 

{php}
header("Location: http://www.example.com/");
exit;
{/php}

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