models/oxpspaymorrowoxpaymentgateway.php
protected function _savePaymorrowUserPaymentData( oxOrder $oOrder, $oPmResponseHandler )
    {
        $aPmResponse = $oPmResponseHandler->getResponse();

        $oUserPaymentId = $oOrder->oxorder__oxpaymentid->value;

        /** @var OxpsPaymorrowOxUserPayment|oxUserPayment $oUserPayment */
        $oUserPayment = oxNew( 'oxuserpayment' );
        $oUserPayment->load( $oUserPaymentId );

        $sPmBankName = $aPmResponse[self::PAYMORROW_RESPONSE_BANK_NAME];
        $sPmIbanCode = $aPmResponse[self::PAYMORROW_RESPONSE_SDD_IBAN];
        $sPmBicCode  = $aPmResponse[self::PAYMORROW_RESPONSE_SDD_BIC];
        $sPmOrderId  = $aPmResponse[self::PAYMORROW_RESPONSE_ORDER_ID];

        $oUserPayment->setPaymorrowBankName( $sPmBankName );
        $oUserPayment->setPaymorrowIBAN( $sPmIbanCode );
        $oUserPayment->setPaymorrowBIC( $sPmBicCode );
        $oUserPayment->setPaymorrowOrderId( $sPmOrderId );

        return $oUserPayment->save();
    }
protected function _savePaymorrowUserPaymentData( oxOrder $oOrder, $oPmResponseHandler )
    {
        $aPmResponse = $oPmResponseHandler->getResponse();

        $oUserPaymentId = $oOrder->oxorder__oxpaymentid->value;

        /** @var OxpsPaymorrowOxUserPayment|oxUserPayment $oUserPayment */
        $oUserPayment = oxNew( 'oxuserpayment' );
        $oUserPayment->load( $oUserPaymentId );

        $sPmBankName = $aPmResponse[self::PAYMORROW_RESPONSE_BANK_NAME];
        $sPmIbanCode = $aPmResponse[self::PAYMORROW_RESPONSE_SDD_IBAN];
        $sPmBicCode  = $aPmResponse[self::PAYMORROW_RESPONSE_SDD_BIC];
        $sPmOrderId  = $aPmResponse[self::PAYMORROW_RESPONSE_ORDER_ID];

        $oUserPayment->setPaymorrowBankName( $sPmBankName );
        $oUserPayment->setPaymorrowIBAN( $sPmIbanCode );
        $oUserPayment->setPaymorrowBIC( $sPmBicCode );
        $oUserPayment->setPaymorrowOrderId( $sPmOrderId );

        return $oUserPayment->save();
    }
protected function _savePaymorrowUserPaymentData ( oxOrder $ oOrder , $ oPmResponseHandler ) { $ aPmResponse = $ oPmResponseHandler -> getResponse ( ) ; $ oUserPaymentId = $ oOrder -> oxorder__oxpaymentid -> value ; /** @var OxpsPaymorrowOxUserPayment|oxUserPayment $oUserPayment */ $ oUserPayment = oxNew ( 'oxuserpayment' ) ; $ oUserPayment -> load ( $ oUserPaymentId ) ; $ sPmBankName = $ aPmResponse [ self :: PAYMORROW_RESPONSE_BANK_NAME ] ; $ sPmIbanCode = $ aPmResponse [ self :: PAYMORROW_RESPONSE_SDD_IBAN ] ; $ sPmBicCode = $ aPmResponse [ self :: PAYMORROW_RESPONSE_SDD_BIC ] ; $ sPmOrderId = $ aPmResponse [ self :: PAYMORROW_RESPONSE_ORDER_ID ] ; $ oUserPayment -> setPaymorrowBankName ( $ sPmBankName ) ; $ oUserPayment -> setPaymorrowIBAN ( $ sPmIbanCode ) ; $ oUserPayment -> setPaymorrowBIC ( $ sPmBicCode ) ; $ oUserPayment -> setPaymorrowOrderId ( $ sPmOrderId ) ; return $ oUserPayment -> save ( ) ; }
Saves Paymorrow User Payment data to oxUserPayments table

@param oxOrder                      $oOrder
@param OxpsPaymorrowResponseHandler $oPmResponseHandler

@return bool|string
Saves Paymorrow User Payment data to oxUserPayments table