Mangopay / mangopay2-php-sdk

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

Unable to filter ONLY actives cards #653

Open MallauryGerard opened 2 months ago

MallauryGerard commented 2 months ago

Hello,

Recently, we have been unable to filter only active cards using the SDK. All cards are always returned. We are encountering this issue on production but not on the sandbox.

Here is the code :

$filter = new FilterCards();
$filter->Active = 'true';
$cards = $mangoPayApi->Users->GetCards(Auth::user()->mango_user_id, $pagination, $filter);

We also tried passing the Active filter as an array parameter, like this :

$cards = $mangoPayApi->Users->GetCards(Auth::user()->mango_user_id, $pagination, ['Active' => 'true']);

Neither of these methods is working in production. But both work using the sandbox... The bug appeared around the same time as your documentation update. Did you make any updates?

Thanks!