core/oxpspaymorroweshopdataprovider.php
public function collectConfirmData()
    {
        $aData = $this->collectEshopData(false);

        // Add transaction data from session
        $aData['pm_order_transaction_id'] = oxRegistry::get('OxpsPaymorrowModule')->getPaymentTransactionId();
        $aData['order_id'] = oxRegistry::getSession()->getVariable('pm_order_id');

        // Add verification data
        /** @var OxpsPaymorrowGateway $oGateway */
        $oGateway = oxRegistry::get('OxpsOxid2Paymorrow')->getPaymorrowGateway();

        $aData['verification_customer_email'] = $this->_findInArray($aData, 'customer_email');
        $aData['verification_shippingHash'] = $oGateway->getAddressHash(
            array(
                'lastName' => $this->_findInArray($aData, 'customer_lastName'),
                'street'   => $this->_findInArray($aData, 'customer_shippingAddress_street'),
                'houseNo'  => $this->_findInArray($aData, 'customer_shippingAddress_houseNo'),
                'zip'      => $this->_findInArray($aData, 'customer_shippingAddress_postalCode'),
            )
        );
        $aData['verification_billingHash'] = $oGateway->getAddressHash(
            array(
                'lastName' => $this->_findInArray($aData, 'customer_lastName'),
                'street'   => $this->_findInArray($aData, 'customer_billingAddress_street'),
                'houseNo'  => $this->_findInArray($aData, 'customer_billingAddress_houseNo'),
                'zip'      => $this->_findInArray($aData, 'customer_billingAddress_postalCode'),
            )
        );
        $aData['verification_order_grossAmount'] = $this->_findInArray($aData, 'order_grossAmount');

        /** @var OxpsPaymorrowLogger $oLogger */
        $oLogger = oxRegistry::get('OxpsPaymorrowLogger');
        $oLogger->logWithType($aData, 'collectConfirmData');

        return $aData;
    }
public function collectConfirmData()
    {
        $aData = $this->collectEshopData(false);

        // Add transaction data from session
        $aData['pm_order_transaction_id'] = oxRegistry::get('OxpsPaymorrowModule')->getPaymentTransactionId();
        $aData['order_id'] = oxRegistry::getSession()->getVariable('pm_order_id');

        // Add verification data
        /** @var OxpsPaymorrowGateway $oGateway */
        $oGateway = oxRegistry::get('OxpsOxid2Paymorrow')->getPaymorrowGateway();

        $aData['verification_customer_email'] = $this->_findInArray($aData, 'customer_email');
        $aData['verification_shippingHash'] = $oGateway->getAddressHash(
            array(
                'lastName' => $this->_findInArray($aData, 'customer_lastName'),
                'street'   => $this->_findInArray($aData, 'customer_shippingAddress_street'),
                'houseNo'  => $this->_findInArray($aData, 'customer_shippingAddress_houseNo'),
                'zip'      => $this->_findInArray($aData, 'customer_shippingAddress_postalCode'),
            )
        );
        $aData['verification_billingHash'] = $oGateway->getAddressHash(
            array(
                'lastName' => $this->_findInArray($aData, 'customer_lastName'),
                'street'   => $this->_findInArray($aData, 'customer_billingAddress_street'),
                'houseNo'  => $this->_findInArray($aData, 'customer_billingAddress_houseNo'),
                'zip'      => $this->_findInArray($aData, 'customer_billingAddress_postalCode'),
            )
        );
        $aData['verification_order_grossAmount'] = $this->_findInArray($aData, 'order_grossAmount');

        /** @var OxpsPaymorrowLogger $oLogger */
        $oLogger = oxRegistry::get('OxpsPaymorrowLogger');
        $oLogger->logWithType($aData, 'collectConfirmData');

        return $aData;
    }
public function collectConfirmData ( ) { $ aData = $ this -> collectEshopData ( false ) ; // Add transaction data from session $ aData [ 'pm_order_transaction_id' ] = oxRegistry :: get ( 'OxpsPaymorrowModule' ) -> getPaymentTransactionId ( ) ; $ aData [ 'order_id' ] = oxRegistry :: getSession ( ) -> getVariable ( 'pm_order_id' ) ; // Add verification data /** @var OxpsPaymorrowGateway $oGateway */ $ oGateway = oxRegistry :: get ( 'OxpsOxid2Paymorrow' ) -> getPaymorrowGateway ( ) ; $ aData [ 'verification_customer_email' ] = $ this -> _findInArray ( $ aData , 'customer_email' ) ; $ aData [ 'verification_shippingHash' ] = $ oGateway -> getAddressHash ( array ( 'lastName' => $ this -> _findInArray ( $ aData , 'customer_lastName' ) , 'street' => $ this -> _findInArray ( $ aData , 'customer_shippingAddress_street' ) , 'houseNo' => $ this -> _findInArray ( $ aData , 'customer_shippingAddress_houseNo' ) , 'zip' => $ this -> _findInArray ( $ aData , 'customer_shippingAddress_postalCode' ) , ) ) ; $ aData [ 'verification_billingHash' ] = $ oGateway -> getAddressHash ( array ( 'lastName' => $ this -> _findInArray ( $ aData , 'customer_lastName' ) , 'street' => $ this -> _findInArray ( $ aData , 'customer_billingAddress_street' ) , 'houseNo' => $ this -> _findInArray ( $ aData , 'customer_billingAddress_houseNo' ) , 'zip' => $ this -> _findInArray ( $ aData , 'customer_billingAddress_postalCode' ) , ) ) ; $ aData [ 'verification_order_grossAmount' ] = $ this -> _findInArray ( $ aData , 'order_grossAmount' ) ; /** @var OxpsPaymorrowLogger $oLogger */ $ oLogger = oxRegistry :: get ( 'OxpsPaymorrowLogger' ) ; $ oLogger -> logWithType ( $ aData , 'collectConfirmData' ) ; return $ aData ; }
Compiles an array with order confirmation data to pass to Paymorrow.

@return array
Compiles an array with order confirmation data to pass to Paymorrow .