Payments: list
Fetches objects collection.

HTTP Request
GET https://shop.url/webapi/rest/payments
Parameters
Parameter	Type	Description
limit	integer	count of fetched objects, default: 10, max: 50
order	string	collection sort field
page	integer	index of requested page, default: 1
offset	integer	starting record index (used instead of page)
filters	string	JSON-ified string with filtering criteria
Sort fields
Parameter	Description
name	payment engine name. The application requires the use of an "external" value
install	is the payment method provided with an additional software libraries?
order	a priority used to calculate payments display order
created_at	datetime information on object creation in ISO_8601 format
updated_at	datetime information on latest object modification in ISO_8601 format
Filtering criteria
Parameter	Description
name	payment engine name. The application requires the use of an "external" value
install	is the payment method provided with an additional software libraries?
order	a priority used to calculate payments display order
created_at	datetime information on object creation in ISO_8601 format
updated_at	datetime information on latest object modification in ISO_8601 format
API Scope
This method requires at least one of the following permissions:

payments_delete
payments_create
payments_read
payments_edit
HTTP Request body
This method doesn't expect any request body parameters

HTTP Response body
Upon successful request, the collection of objects is returned according to the following structure:

{
    "count": integer,
    "pages": integer,
    "page": integer,
    "list": [
        Resource
    ]
}
Parameter	Type	Description
count	integer	a count of objects satisfying criteria
pages	integer	count of pages with results
page	integer	number of current page
list	array	a collection of objects
ExamplePHP
try{
    $client = new DreamCommerce\Client($entrypoint, $applicationId, $applicationSecret);
    $client->setAccessToken($accessToken);

    $resource = new DreamCommerce\ShopAppstoreLib\Resource\Payment($client);
    $result = $resource->get();

    foreach($result as $r){
        printf("#%d - %s\n", $r->payment_id, $r->translations->pl_PL->title);
    }

}catch(DreamCommerce\Exceptions\ClientException $ex){
    die('Something went wrong with the Client: '.$ex->getMessage());
}catch(DreamCommerce\Exceptions\ResourceException $ex){
    die('Check your request: '.$ex->getMessage());
}