Closed johann-arias closed 3 years ago
Hi,
It looks good so far, and my best guess at this point is that your $ipAddress value is empty at this point, but without more information that's hard to say for sure.
You can either do a dump of the $payIn value just before you do the $this->mangoPayApi->PayIns->Create($payIn);
You can also try to replace in your code :
$payIn->PaymentDetails->IpAddress = $ipAddress;
by a hardcoded value:
$payIn->PaymentDetails->IpAddress = '192.168.0.1';
and see if that work. If it work, that would also confirm what I initially said.
Thanks, my format was indeed wrong !
Hello,
I'm having an issue passing the IpAddress and BrowserInfo when creating a Direct Pay In
Here's what I'm doing for the IpAddress (full code below) :
And I'm getting :
[2021-06-15T07:48:53.172531+00:00] app.ERROR: "stdClass":1:{s:9:"IpAddress";s:32:"The IpAddress field is mandatory";}Bad request. One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error. [] []
Thanks for your help, Johann @ Kudurace