Issue with mangopay php sdk

89 Views Asked by At

I'm using mangopay with the official sdk 3.11, i get following error :

Call to undefined method MangoPay\MangoPayApi::getLogger()

Here how i use the API :

namespace App\Services;

use MangoPay\MangoPayApi;

class MangopayServices
{
    private $api;

    public function __construct()
    {
        $this->api = new MangoPayApi();
        $this->api->Config->ClientId = 'MY_CLIENT_ID';
        $this->api->Config->ClientPassword = 'MY_API_KEY';
        $this->api->Config->TemporaryFolder = '/home/site/mgpy';
    }
    public function get_users()
    {
        return $this->api->Users->GetAll();
    }
}

When call this service :

$s = new App\Services\MangopayServices();
dump($s->get_users())

i get fatal error : Fatal error: Uncaught Error: Call to undefined method MangoPay\MangoPayApi::getLogger()

Have you any idea please ?

Thank you

0

There are 0 best solutions below