Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • iand123 23 posts 53 karma points
    Nov 01, 2016 @ 16:30

    Teacommerce callbackURL different domain question


    Working on a team commerce install and its been fine so far. Once we have gone live we have experienced issues with sagepay.

    The site was developed and tested on a temporary URL, this all worked fine when using sagepay test accounts and it continues to work fine if we access what is now the live site via that URL (the server is still configured to respond to this URL).

    The issues arrive when we use the new "live" URL (lets call it When we try to pay or cancel out of a payment in Sagepay we get an error. When paying and it fails its a sagepay error 5006 which means the RedirectURL isnt provided or not in the correct format.

    When i check the sagepay transactions i can see that attempts either from or the test URL always pass the callbackURL to Sagepay as the test URL. Is there any config anywhere that would drive where this is is generated from? I've checked in the teacommerce settings and we are providing CompleteURL and FailureURL as relative paths (/cart/complete and /cart/fail) and am not providing a domain on these.

    Tearing my hair out with this one a little bit, can anyone suggest any ideas where to look or how to debug this?

    Thanks in advance

  • Anders Burla Johansen 2560 posts 8256 karma points
    Nov 02, 2016 @ 14:56
    Anders Burla Johansen

    Hmm that sounds weird :(

    Have you changed the full homepage url in SagePay - see image 1 here:

    If you use the latest Tea Commerce then this is the code for the SagePay provider. See line 106 where it parse the notification url. And that is using the domain that the webshop is running at.

    Someone that had a 5006 error as well:

    Kind regards


Please Sign in or register to post replies

Write your reply to: