lib/mercadopago.php
public function search_payment($filters, $offset = 0, $limit = 0) {
        $filters["offset"] = $offset;
        $filters["limit"] = $limit;

        $uri_prefix = $this->sandbox ? "/sandbox" : "";

        $request = array(
            "uri" => "/v1/payments/search",
            "params" => array_merge ($filters, array(
                "access_token" => $this->get_access_token()
            ))
        );

        $collection_result = MPRestClient::get($request);
        return $collection_result;
    }
public function search_payment($filters, $offset = 0, $limit = 0) {
        $filters["offset"] = $offset;
        $filters["limit"] = $limit;

        $uri_prefix = $this->sandbox ? "/sandbox" : "";

        $request = array(
            "uri" => "/v1/payments/search",
            "params" => array_merge ($filters, array(
                "access_token" => $this->get_access_token()
            ))
        );

        $collection_result = MPRestClient::get($request);
        return $collection_result;
    }
public function search_payment ( $ filters , $ offset = 0 , $ limit = 0 ) { $ filters [ "offset" ] = $ offset ; $ filters [ "limit" ] = $ limit ; $ uri_prefix = $ this -> sandbox ? "/sandbox" : "" ; $ request = array ( "uri" => "/v1/payments/search" , "params" => array_merge ( $ filters , array ( "access_token" => $ this -> get_access_token ( ) ) ) ) ; $ collection_result = MPRestClient :: get ( $ request ) ; return $ collection_result ; }
Search payments according to filters, with pagination
@param array $filters
@param int $offset
@param int $limit
@return array(json)
Search payments according to filters with pagination