The search for payments does not bring all the payments

0

I'm using the PHP library and doing a

    $filters = array(
            "id"=>null,
            "site_id"=>null,
            "external_reference"=>null,
            "range" => "date_created",
            "begin_date" => "NOW-1MONTH", //2017-07-01T00:00:00Z
            "end_date" => "NOW", //NOW
            //"status" => "approved",
            //"operation_type" => "regular_payment"
    );
    $searchResult = $mp->search_payment($filters, 0 , 1000);

The payments do not reach a thousand and does not include some correct payments that were made 10 days ago but if it brings much older Does anyone think it can be? Thanks!

    
asked by Adrián Ariza 12.03.2018 в 17:48
source

1 answer

0

I think what happens to you is that you are asking for many results. You have to paginate them. By default the Mercadopago API returns 30 but can not exceed a certain limit. The same thing happened to me and when I got the results. I hope it helps you. Greetings!

    
answered by 25.04.2018 в 15:53