I'm getting a 4020 invalid IP address error, even though I'm pretty sure the IP address in the admin parameters are correct, and SagePay have asked me to alter the test server address the module sends to. The address they want me to send to is https://test.sagepay.com/showpost/showpost.asp but I'm not sure which line to change:
$servers = array(
// Ordinary method, or for first stage of 3D-Secure method
'registration' => array(
0 => 'https://test.sagepay.com/Simulator/VSPDirectGateway.asp',
1 => 'https://test.sagepay.com/gateway/service/vspdirect-register.vsp',
2 => 'https://live.sagepay.com/gateway/service/vspdirect-register.vsp',
),
'authorize' => array(
0 => 'https://test.sagepay.com/Simulator/VSPServerGateway.asp?Service=VendorAuthoriseTx',
1 => 'https://test.sagepay.com/gateway/service/authorise.vsp',
2 => 'https://live.sagepay.com/gateway/service/authorise.vsp',
),
// 3D-Secure method, used only when $response['Status']=='3DAUTH'
'3d-secure' => array(
0 => 'https://test.sagepay.com/Simulator/VSPDirectCallback.asp',
1 => 'https://test.sagepay.com/gateway/service/direct3dcallback.vsp',
2 => 'https://live.sagepay.com/gateway/service/direct3dcallback.vsp',
),
);Thanks
Comments
Comment #1
hanoiiI would think it's
1 => 'https://test.sagepay.com/gateway/service/vspdirect-register.vsp',
The one you should be changing, although I can't say for sure what they're asking to do.
Also, it's strange what you report. Just a little hint. Not sure where you are hosting a site, but unless it's a dedicated server (with only one IP) or a VPS (again with only one IP, you might be missing the IP address to enter in SagePay admin menu. One server, even dedicated or VPS, can host serveral IP addresses, and you probably needed a dedicated one for your site if you intended to use SSL. This doesn't mean that the dedicated IP address of your site is the one that will be used for outgoing connections from the server.
i.e.
Say your server has 3 IPs.
x.y.z.1
x.y.z.2
x.y.z.3
And you have used x.y.z.3 for your SSL site with Ubercart. There's only one IP that's anchored to the server, as is commonly the one you'll use for shared hosting. All outgoing connections initiated from within the server will go out from the same IP address all the time. This would be the main IP address of server.
Comment #2
Drupal Centric commentedCheers Hanoii, I got the servers IP address off of the hosting company and that worked. As you say the website wasn't sending out from its' dedicated IP address it was sending out from the server's IP address.
Many thanks.