What?
When I run a second payment without client involvement, I cannot provide a custom client IP address.
Why?
Considering that the $_SERVER variable does not contain the REMOTE_ADDR key in a console script, the library rewrites the customerIp key as null and PayU returns an error that the required field is missing.
Possible fix?
Here: <project_root>/vendor/accesto/payum-pay-u/Accesto/Component/Payum/PayU/Action/ConvertPaymentAction.php:41
What? When I run a second payment without client involvement, I cannot provide a custom client IP address.
Why? Considering that the
$_SERVER
variable does not contain theREMOTE_ADDR
key in a console script, the library rewrites thecustomerIp
key asnull
and PayU returns an error that the required field is missing.Possible fix? Here:
<project_root>/vendor/accesto/payum-pay-u/Accesto/Component/Payum/PayU/Action/ConvertPaymentAction.php:41