Model/PayPalOrder.php
public function addPayment(\OxidEsales\PayPalModule\Model\OrderPayment $payment)
    {
        $paymentList = $this->getPaymentList();
        $paymentList->addPayment($payment);
        $this->setPaymentList(null);
    }
public function addPayment(\OxidEsales\PayPalModule\Model\OrderPayment $payment)
    {
        $paymentList = $this->getPaymentList();
        $paymentList->addPayment($payment);
        $this->setPaymentList(null);
    }
public function addPayment ( \ OxidEsales \ PayPalModule \ Model \ OrderPayment $ payment ) { $ paymentList = $ this -> getPaymentList ( ) ; $ paymentList -> addPayment ( $ payment ) ; $ this -> setPaymentList ( null ) ; }
Adds new payment.

@param \OxidEsales\PayPalModule\Model\OrderPayment $payment order payment
Adds new payment .