Dynamic successUrl, abortUrl, failureUrl for Sagepay?
I have two different sites working off one product catalog, is it possible to change the urls that are passed to Sagepay so that they redirect to the correct site (and therefore empty the basket upon successful transaction)?
I was going to try adding a second sagepay config file containing the seconds sites urls and create a new Payment Method item to use this, then depending on which site I am on switchp payment methods.
I am having a problem with this because SagePay does not pass the orderId back to the success.aspx page, therefore I set it in a cookie, but that cookie belongs to the other domain site. Therefore I have no way of knowing the correct orderid. Is it possible to set up two sagepay payment methods with different settings? I tried but it only every uses the first sagepay.config
uCommerce 2.5 includes an updated SagePay provider, which includes the orderGuid as part of the querystring when a customer is returned to your site. You can get your hands on 2.5 on our site.
Dynamic successUrl, abortUrl, failureUrl for Sagepay?
I have two different sites working off one product catalog, is it possible to change the urls that are passed to Sagepay so that they redirect to the correct site (and therefore empty the basket upon successful transaction)?
Site A
successUrl="http://staging.sitea.com/shop/checkout/success.aspx"
abortUrl="http://staging.sitea.com/shop/checkout/abort.aspx"
failureUrl="http://staging.sitea.com/shop/checkout/failure.aspx"
Site B
successUrl="http://staging.siteb.com/shop/checkout/success.aspx"
abortUrl="http://staging.siteb.com/shop/checkout/abort.aspx"
failureUrl="http://staging.siteb.com/shop/checkout/failure.aspx"
Thanks
Tara
By default they're fixed, but you could do another redirect from the fixed page based on some custom criteria, e.g. a piece of info on the order.
I was going to try adding a second sagepay config file containing the seconds sites urls and create a new Payment Method item to use this, then depending on which site I am on switchp payment methods.
Would this work? I'll give it a go.
It would be easier to do the redirect. You'll avoid having a bunch of redundant settings in your site.
I am having a problem with this because SagePay does not pass the orderId back to the success.aspx page, therefore I set it in a cookie, but that cookie belongs to the other domain site. Therefore I have no way of knowing the correct orderid. Is it possible to set up two sagepay payment methods with different settings? I tried but it only every uses the first sagepay.config
Hi Tara,
uCommerce 2.5 includes an updated SagePay provider, which includes the orderGuid as part of the querystring when a customer is returned to your site. You can get your hands on 2.5 on our site.
is working on a reply...