Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.32 KB

File metadata and controls

58 lines (43 loc) · 1.32 KB

< Altapay - PHP Api - Terminals

This method will allow you to extract a list of terminals that you have access to. The list will contain some details about the terminals.

Request

$request = new \Altapay\Api\Others\Terminals($auth);
// Do the call
try {
    $response = $request->call();
    // See Response below
} catch (\Altapay\Exceptions\ClientException $e) {
    // Could not connect
} catch (\Altapay\Exceptions\ResponseHeaderException $e) {
    // Response error in header
    $e->getHeader()->ErrorMessage
} catch (\Altapay\Exceptions\ResponseMessageException $e) {
    // Error message
    $e->getMessage();
}

Required

None required options allowed

Optional

No optional options allowed

Example

$request = new \Altapay\Api\Others\Terminals($auth);

Response

$response = $request->call();

Response is now a object of \Altapay\Response\TerminalsResponse

Method Description Type
$response->Result string
$response->Terminals array of \Altapay\Response\Embeds\Terminal objects array

See here for description of the terminal object