Closed RicLeP closed 2 years ago
The error isn't listed on the Opayo help page, unfortunately, so there is no explanation there. This is where it should be listed: https://www.opayo.co.uk/search/all?keyword=ClientIPAddress
I would go with your assumption, and include an IPv4 address with the payment request. It was never mandatory in the past, but the latest 3DS changes a lot of that.
Ensure the IP passed is not IPV6
My IP is IPV4 - I can see it’s being passed correctly but then vanishes when it reaches Omnipay\SagePay\Message\DirectPurchaseRequest
.
I tried hard coding an IP in purchase
and the same result happens. I’ve not been able to identify exactly when I loose the IP from the array.
Sorry, this was my fault, I was using ClientIPAddress
but it should be clientIp
:
'ClientIPAddress' => $ip, //// wrong
'clientIp' => $ip, //// correct
After upgrading to version 4.01 I am getting the following error when creating a purchase:
3333 : The ClientIPAddress is missing.
The IP address is being passed to the purchase and I can dump it out at various stages but somewhere it gets lost.
If I dump the Omnipay\SagePay\Message\DirectPurchaseRequest I get and the client IP is missing (just a thought - is it because it’s in test mode?):
Here’s my purchase.