controllers/oxpspaymorrowprepareorder.php
protected function setPaymorrowPaymentMethodId()
    {
        /** @var oxPayment|OxpsPaymorrowOxPayment $payment */
        $payment = oxNew('oxPayment');
        $paymentIdField = self::OXPS_PAYMENT_ID_FIELD;
        $paymentName = (string) $this->getConfig()->getRequestParameter(self::OXPS_PM_PAYMENT_NAME_FIELD);

        if ($payment->loadByPaymorrowName($paymentName) and
            !$this->getConfig()->getRequestParameter($paymentIdField)
        ) {
            $this->appendPostData(array($paymentIdField => (string) $payment->getId()));
        }
    }
protected function setPaymorrowPaymentMethodId()
    {
        /** @var oxPayment|OxpsPaymorrowOxPayment $payment */
        $payment = oxNew('oxPayment');
        $paymentIdField = self::OXPS_PAYMENT_ID_FIELD;
        $paymentName = (string) $this->getConfig()->getRequestParameter(self::OXPS_PM_PAYMENT_NAME_FIELD);

        if ($payment->loadByPaymorrowName($paymentName) and
            !$this->getConfig()->getRequestParameter($paymentIdField)
        ) {
            $this->appendPostData(array($paymentIdField => (string) $payment->getId()));
        }
    }
protected function setPaymorrowPaymentMethodId ( ) { /** @var oxPayment|OxpsPaymorrowOxPayment $payment */ $ payment = oxNew ( 'oxPayment' ) ; $ paymentIdField = self :: OXPS_PAYMENT_ID_FIELD ; $ paymentName = ( string ) $ this -> getConfig ( ) -> getRequestParameter ( self :: OXPS_PM_PAYMENT_NAME_FIELD ) ; if ( $ payment -> loadByPaymorrowName ( $ paymentName ) and ! $ this -> getConfig ( ) -> getRequestParameter ( $ paymentIdField ) ) { $ this -> appendPostData ( array ( $ paymentIdField => ( string ) $ payment -> getId ( ) ) ) ; } }
Load payment instance by Paymorrow payment method name
and set it to both, request and session if not yet set.
Load payment instance by Paymorrow payment method name and set it to both request and session if not yet set .