public function getAuth(CardPayments\Authorization $auth)
    {
        $auth->setRequiredFields(array('id'));
        $auth->checkRequiredFields();

        $request = new Request(array(
             'method' => Request::GET,
             'uri' => $this->prepareURI("/auths/" . $auth->id)
        ));

        $response = $this->client->processRequest($request);
        return new CardPayments\Authorization($response);
    }
public function getAuth(CardPayments\Authorization $auth)
    {
        $auth->setRequiredFields(array('id'));
        $auth->checkRequiredFields();

        $request = new Request(array(
             'method' => Request::GET,
             'uri' => $this->prepareURI("/auths/" . $auth->id)
        ));

        $response = $this->client->processRequest($request);
        return new CardPayments\Authorization($response);
    }
public function getAuth ( CardPayments \ Authorization $ auth ) { $ auth -> setRequiredFields ( array ( 'id' ) ) ; $ auth -> checkRequiredFields ( ) ; $ request = new Request ( array ( 'method' => Request :: GET , 'uri' => $ this -> prepareURI ( "/auths/" . $ auth -> id ) ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; return new CardPayments \ Authorization ( $ response ) ; }
Get the authorization.

@param CardPayments\Authorization $auth
@return CardPayments\Authorization
@throws PaysafeException
Get the authorization .