src/base/Gateway.php
protected function prepareRefundRequest($request, string $reference): RequestInterface
    {
        /** @var AbstractRequest $refundRequest */
        $refundRequest = $this->gateway()->refund($request);
        $refundRequest->setTransactionReference($reference);

        return $refundRequest;

    }
protected function prepareRefundRequest($request, string $reference): RequestInterface
    {
        /** @var AbstractRequest $refundRequest */
        $refundRequest = $this->gateway()->refund($request);
        $refundRequest->setTransactionReference($reference);

        return $refundRequest;

    }
protected function prepareRefundRequest ( $ request , string $ reference ) : RequestInterface { /** @var AbstractRequest $refundRequest */ $ refundRequest = $ this -> gateway ( ) -> refund ( $ request ) ; $ refundRequest -> setTransactionReference ( $ reference ) ; return $ refundRequest ; }
Prepare a refund request from request data and reference of the transaction being refunded.

@param array  $request
@param string $reference

@return RequestInterface
Prepare a refund request from request data and reference of the transaction being refunded .