Mangopay / mangopay2-php-sdk

PHP SDK for MANGOPAY
https://packagist.org/packages/mangopay/php-sdk-v2
MIT License
122 stars 133 forks source link

Bad Request #436

Closed Yann-iBroStudio closed 3 years ago

Yann-iBroStudio commented 3 years ago

Running the sample code below is given an error 400 Bad Request thru MangoPay\Libraries\ResponseException $e

require_once '/path/to/your-project/vendor/autoload.php';
$api = new MangoPay\MangoPayApi();

// configuration
$api->Config->ClientId = 'my-production-client-id';
$api->Config->ClientPassword = 'my-production-client-password';
$api->Config->TemporaryFolder = '/my/tmp/path/';
$api->Config->BaseUrl = 'https://api.mangopay.com';

try {
    $users = $api->Users->GetAll(); 
} catch(MangoPay\Libraries\ResponseException $e) {
    //  ==> 400 BAD REQUEST
} catch(MangoPay\Libraries\Exception $e) {
    // handle/log the exception $e->GetMessage()
}
mangomaxoasis commented 3 years ago

Hi @jahazzz There seems to be something off with the call, could you send me the exact code with your variables (not your API key) to email deleted
thanks

mangomaxoasis commented 3 years ago

please reopen ticket for further info