public function getRefund(CardPayments\Refund $refund)
    {
        $refund->setRequiredFields(array('id'));
        $refund->checkRequiredFields();

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

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

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

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

@param CardPayments\Refund $refund
@return CardPayments\Refund[]
@throws PaysafeException
Get the refund .