-- HikaShop version -- : 2.6.4
-- HikaMarket version -- : 1.7.2
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.6
Hi there,
When uploading a KYC document to Mangopay via the Hikamarket Mangopay plugin (version 1.7.3) there is always an error message
There are no php or Mangopay error messages in the php and Mangopay logs.
I have done some troubleshooting and the problem seems to be in the file plugins/hikamarket/mangopay/mangopay_class.php inside the funtion addDocument()
The condition on line 210 is always met and hence it returns FALSE and the error message I quoted above shows.
if(empty($createdPage))
return false;
on line 204 the file is uploaded to Mangopay as follows
$createdPage = $api->Users->CreateKycPageFromFile($mango_vendor->Id, $createdDocument->Id, $file);
However it looks like the variable $createdPage always gets the value NULL
I'm not sure the document is being uploaded to Mangopay since in the Mangopay dashboard I cannot see the document itself.
Looking at the Mangopay API documentation it seems to suggest that the variable $file needs to be a string containing the file as base64 encoded.
in your code, line 186, $file is an array as follows
$file = $_FILES;
Could you please look into this an advice?
Many thanks