SagePay...How to change test URL????

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 13 años
Hi everyone,

I was looking at forum, but couldn't find what i am looking for. I am integrating SagePay... I have done simulate test...but now need to perform test on test server before going to live server. I am using no source code version of nop commerce for my web store. Is there any way to change/edit live server script which is

https://live.sagepay.com/gateway/service/vspform-register.vsp

to test server...

https://test.sagepay.com/gateway/service/vspform-register.vsp

Regards
Riz
Hace 13 años
If you go into the Payment Folder, you will see Nop.Payment.Payment and within this is the SagePaypaymentProcessor.cs File.

Within this you will see the function  GetSagePayUrl() and here you can change the test url that you post to Sagepay.

For example

From
private string GetSagePayUrl()
        {
            if (useSandBox)
                return "https://test.sagepay.com/simulator/vspformgateway.asp";

            return "https://live.sagepay.com/gateway/service/vspform-register.vsp";
        }


To

private string GetSagePayUrl()
        {
            if (useSandBox)
                return "https://test.sagepay.com/gateway/service/vspform-register.vsp";

            return "https://live.sagepay.com/gateway/service/vspform-register.vsp";
        }



where using the Sandbox option will send it to the test mode in Sagepay

Hope this helps
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.