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

        $tmpRefund = new CardPayments\Refund(array(
             'status' => 'CANCELLED'
        ));
        $request = new Request(array(
             'method' => Request::PUT,
             'uri' => $this->prepareURI("/refunds/" . $refund->id),
             'body' => $tmpRefund
        ));
        $response = $this->client->processRequest($request);

        return new CardPayments\Refund($response);
    }
public function cancelRefund(CardPayments\Refund $refund)
    {
        $refund->setRequiredFields(array('id'));
        $refund->checkRequiredFields();

        $tmpRefund = new CardPayments\Refund(array(
             'status' => 'CANCELLED'
        ));
        $request = new Request(array(
             'method' => Request::PUT,
             'uri' => $this->prepareURI("/refunds/" . $refund->id),
             'body' => $tmpRefund
        ));
        $response = $this->client->processRequest($request);

        return new CardPayments\Refund($response);
    }
public function cancelRefund ( CardPayments \ Refund $ refund ) { $ refund -> setRequiredFields ( array ( 'id' ) ) ; $ refund -> checkRequiredFields ( ) ; $ tmpRefund = new CardPayments \ Refund ( array ( 'status' => 'CANCELLED' ) ) ; $ request = new Request ( array ( 'method' => Request :: PUT , 'uri' => $ this -> prepareURI ( "/refunds/" . $ refund -> id ) , 'body' => $ tmpRefund ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; return new CardPayments \ Refund ( $ response ) ; }
Cancel Refund.

@param \Paysafe\CardPayments\Refund $refund
@return \Paysafe\CardPayments\Refund
@throws PaysafeException
Cancel Refund .