Problem with Sage Pay Return URL

  • Posts: 75
  • Thank you received: 1
10 years 11 months ago #136064

Hi,

I am having an issue with Sage Pay's return url. The problem seems identical to this one I had which was solved recently http://www.hikashop.com/forum/install-update/863094-problem-with-hikashop-current-url-solved.html

The return URL is behaving exactly the same; If you would believe this to be caused by the same issue where can I find the php file to edit the URL hikashop is looking at?

Would it be detrimental to search and replace all hikashop_currentURL() entries with JURI::current() ?
I feel it would solve future problems, but it seems like a very inelegant approach. Is there a better option in solving this?

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
10 years 11 months ago #136105

Hi,

I think it will be better to see why the hikashop_currentURL() function does not return the right URL in your case.
If you can't provide us some information and access, we will be able to investigate and propose a fix.
Some web servers have a strange way to populate the global variables so we have an hidden option in order to change the way that the function currentURL manage these variables to determine the real current url.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 75
  • Thank you received: 1
10 years 11 months ago #136204

Sure thing.

So the way we have things set up is that all of the websites we own are contained within our own website directory structure
ie.
spots.tv = spots.tv
spots.tv/live/site1 = site1.com
spots.tv/live/site2 = site2.com

Hikashop seems to be seeing our website URL via the servers root, rather than from the domain name. So the return URL we have is '/my-account/order', but this returns site1.com/live/site1/my-account/order.

To make things a little stranger, the Cancel URL and the Return URL are behaving differently. Cancel works correctly, but Return does not.

I have set up an account for you to test it yourself.

*Edit - Noticed the hide function left things viewable by members. Will PM you the access details ASAP on getting a reply.*

The payment option we are using is Sage Pay. Unfortunately this is a live payment process so in order to view the return url you would need to purchase (test and sim are not working with the live Sage Pay server) we have this test product of £0.01 set up for this purpose if you would need to do this. A refund will be processed of course. I understand if this is not your policy.

https://ces-hire.com/store/sales/product/1680-test-product

If there are any other details you need let me know and I will edit them in. E.g. Server details etc.

Last edit: 10 years 11 months ago by spotstv.

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

  • Posts: 75
  • Thank you received: 1
10 years 11 months ago #136670

If we could get an update on this asap that would be great. Currently have a client waiting for this fix before we can take their store live.

Thanks in advance.

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

  • Posts: 82908
  • Thank you received: 13379
  • MODERATOR
10 years 11 months ago #137380

Jerome never got any access from you via PM.
Could you provide them via our contact form with a link to this thread so that we kno whay you're sending them ?

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

  • Posts: 75
  • Thank you received: 1
10 years 10 months ago #139036

Just to update- PM has been sent to Jerome earlier in the week. Look forward to a solution soon as our client is breathing down our neck.

Thanks in advance.

Edit: New update- I tried replacing 'hikashop_currentURL()' entries with 'JURI::current()' in an attempt to find a temporary solution as this fixed another issue we have; however this did not work for this problem.

Edit: Final update: I managed to get it working. Having dug through the documentation I found that the return-url has a default function to go to the after _end page. This works fine. While we won't be able to change the page to go to the main thing is that it is now working as a process.

Last edit: 10 years 10 months ago by spotstv. Reason: Fixed

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

Time to create page: 0.066 seconds
Powered by Kunena Forum