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

        return $captureRequest;
    }
protected function prepareCaptureRequest($request, string $reference): RequestInterface
    {
        /** @var AbstractRequest $captureRequest */
        $captureRequest = $this->gateway()->capture($request);
        $captureRequest->setTransactionReference($reference);

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

@param array  $request
@param string $reference

@return RequestInterface
Prepare a capture request from request data and reference of the transaction being captured .