Get Authorize.net to return to website

  • Posts: 241
  • Thank you received: 5
11 years 2 weeks ago #135380

-- HikaShop version -- : 2.2.2

After users pay via Authorize.net, they are shown a white screen and a message which says:

"Thank you for your purchase. You can go back to wodRocket by clicking this link" (img below)

I would rather they are just redirected back to my site automatically.

How do I do this?


Attachments:
Last edit: 11 years 2 weeks ago by cberry1971.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 2 weeks ago #135452

HI,
So the best solution will probably be to redirect your user after their authorize.net redirection, you'll just have to edit the "after_end" file of your checkout view of your front-end template, and use the same code as in this thread .

Please Log in or Create an account to join the conversation.

  • Posts: 241
  • Thank you received: 5
11 years 2 weeks ago #135469

I am sorry but that thread seems to take people to a downloads folder etc.

I just want people to AUTOMATICALLY come back to my site (the home page) and see the "thank you for your purchase" language there NOT authorize.net.

Right now, they see the screenshot above on authorize.net.

Please Log in or Create an account to join the conversation.

  • Posts: 241
  • Thank you received: 5
11 years 2 weeks ago #135874

Any ideas on how to do this? Thanks again.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 2 weeks ago #136000

Hi,

You have to edit the file:
"plugins\hikashoppayment\authorize\authorize_thankyou.php"

And make a php redirection to the desired page.

Please Log in or Create an account to join the conversation.

  • Posts: 241
  • Thank you received: 5
11 years 1 week ago #136571

Can you help with this redirection code? I am not a php programmer.

What line(s) would I put in if i wanted redirection to www.MYSITE.com ?

Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 1 week ago #136687

Using this code will probably do the job :

<?php
$link = "www.MYSITE.com";
$app = JFactory::getApplication();
$app->redirect($link);
?>

Please Log in or Create an account to join the conversation.

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 3 days ago #137510

Hi,

There is already a code to redirect automatically to your website. There is no need to add anything.
Older versions of HikaShop indeed did this and the latest version of HikaShop still does that.
If it doesn't work on your website, it means that you must have a javascript error. You should look in your browser error console for the error message and deal with it.
I just tested with the latest version of HikaShop and it is still working fine.

Please Log in or Create an account to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum