src/Service/Cash.php
public function refund($guid, Amount $refundAmount) {
        return new Transaction(
            $this->client->post('transactions/' . $guid . '/refunds', ["amount" => $refundAmount])
        );
    }
public function refund($guid, Amount $refundAmount) {
        return new Transaction(
            $this->client->post('transactions/' . $guid . '/refunds', ["amount" => $refundAmount])
        );
    }
public function refund ( $ guid , Amount $ refundAmount ) { return new Transaction ( $ this -> client -> post ( 'transactions/' . $ guid . '/refunds' , [ "amount" => $ refundAmount ] ) ) ; }
Refunds a previously initiated and closed and captured transaction.
@param $guid string identifier of transaction
@param $refundAmount Amount amount to refund in cents
@return string
@throws NetworkException
Refunds a previously initiated and closed and captured transaction .