Write to tmp folder

I am guessing the library in question is this one, and the error you are getting is this exception:

 if (!is_writable($this->GetPathToTemporaryFolder()))
            throw new \MangoPay\Libraries\Exception('Cannot create or write to file ' . $this->GetPathToTemporaryFolder());

So basically we seem to be debugging a call to is_writable().

  1. make sure allow_url_fopen is on
  2. if applicable, make sure the URL includes the FTP password
  3. make sure the folder exists and the FTP account has write permissions (777 should suffice...)