Model/Action/Data/OrderRefundActionData.php
public function getPaymentBeingRefunded()
    {
        if (is_null($this->paymentBeingRefunded)) {
            $this->paymentBeingRefunded = oxNew(\OxidEsales\PayPalModule\Model\OrderPayment::class);
            $this->paymentBeingRefunded->loadByTransactionId($this->getTransactionId());
        }

        return $this->paymentBeingRefunded;
    }
public function getPaymentBeingRefunded()
    {
        if (is_null($this->paymentBeingRefunded)) {
            $this->paymentBeingRefunded = oxNew(\OxidEsales\PayPalModule\Model\OrderPayment::class);
            $this->paymentBeingRefunded->loadByTransactionId($this->getTransactionId());
        }

        return $this->paymentBeingRefunded;
    }
public function getPaymentBeingRefunded ( ) { if ( is_null ( $ this -> paymentBeingRefunded ) ) { $ this -> paymentBeingRefunded = oxNew ( \ OxidEsales \ PayPalModule \ Model \ OrderPayment :: class ) ; $ this -> paymentBeingRefunded -> loadByTransactionId ( $ this -> getTransactionId ( ) ) ; } return $ this -> paymentBeingRefunded ; }
Returns payment to refund.

@return \OxidEsales\PayPalModule\Model\OrderPayment
Returns payment to refund .