core/oxpspaymorroweshopdataprovider.php
public function printPmData()
    {
        $aData      = $this->collectEshopData();
        $aPrintData = array(
            'phone'               => $this->_findInArray( $aData, 'customer_phoneNumber' ),
            'mobile'              => $this->_findInArray( $aData, 'customer_mobileNumber' ),
            'session_id'          => $this->_findInArray( $aData, 'client_browser_session_id' ),
            'cookie_id'           => $this->_findInArray( $aData, 'client_cookies_id' ),
            'firstName'           => $this->_findInArray( $aData, 'customer_firstName' ),
            'lastName'            => $this->_findInArray( $aData, 'customer_lastName' ),
            'dob'                 => $this->_findInArray( $aData, 'customer_dateOfBirth' ),
            'gender'              => $this->_findInArray( $aData, 'customer_gender' ),
            'email'               => $this->_findInArray( $aData, 'customer_email' ),
            'street'              => $this->_findInArray( $aData, 'customer_billingAddress_street' ),
            'houseNumber'         => $this->_findInArray( $aData, 'customer_billingAddress_houseNo' ),
            'locality'            => $this->_findInArray( $aData, 'customer_billingAddress_city' ),
            'postalCode'          => $this->_findInArray( $aData, 'customer_billingAddress_postalCode' ),
            'country'             => $this->_findInArray( $aData, 'customer_billingAddress_country' ),
            'shippingStreet'      => $this->_findInArray( $aData, 'customer_shippingAddress_street' ),
            'shippingHouseNumber' => $this->_findInArray( $aData, 'customer_shippingAddress_houseNo' ),
            'shippingLocality'    => $this->_findInArray( $aData, 'customer_shippingAddress_city' ),
            'shippingPostalCode'  => $this->_findInArray( $aData, 'customer_shippingAddress_postalCode' ),
            'shippingCountry'     => $this->_findInArray( $aData, 'customer_shippingAddress_country' ),
            'shippingFirstName'   => $this->_findInArray( $aData, 'customer_shippingAddress_firstName' ),
            'shippingLastName'    => $this->_findInArray( $aData, 'customer_shippingAddress_lastName' ),
            'orderAmount'         => $this->_findInArray( $aData, 'order_grossAmount' ),
            'langcode'            => $this->_findInArray( $aData, 'request_languageCode' ),
            'client_ip'           => $this->_findInArray( $aData, 'client_ipAddress' ),
            'currencyCode'        => $this->_findInArray( $aData, 'order_currency' ),
        );

        // Check if there are session fields set and add to print data if available
        $aSessionData = (array) oxRegistry::getSession()->getVariable( 'pm_init_data' );

        if ( !empty( $aSessionData ) ) {
            $aPrintData = array_merge( $aPrintData, $aSessionData );
        }

        return json_encode( $aPrintData );
    }
public function printPmData()
    {
        $aData      = $this->collectEshopData();
        $aPrintData = array(
            'phone'               => $this->_findInArray( $aData, 'customer_phoneNumber' ),
            'mobile'              => $this->_findInArray( $aData, 'customer_mobileNumber' ),
            'session_id'          => $this->_findInArray( $aData, 'client_browser_session_id' ),
            'cookie_id'           => $this->_findInArray( $aData, 'client_cookies_id' ),
            'firstName'           => $this->_findInArray( $aData, 'customer_firstName' ),
            'lastName'            => $this->_findInArray( $aData, 'customer_lastName' ),
            'dob'                 => $this->_findInArray( $aData, 'customer_dateOfBirth' ),
            'gender'              => $this->_findInArray( $aData, 'customer_gender' ),
            'email'               => $this->_findInArray( $aData, 'customer_email' ),
            'street'              => $this->_findInArray( $aData, 'customer_billingAddress_street' ),
            'houseNumber'         => $this->_findInArray( $aData, 'customer_billingAddress_houseNo' ),
            'locality'            => $this->_findInArray( $aData, 'customer_billingAddress_city' ),
            'postalCode'          => $this->_findInArray( $aData, 'customer_billingAddress_postalCode' ),
            'country'             => $this->_findInArray( $aData, 'customer_billingAddress_country' ),
            'shippingStreet'      => $this->_findInArray( $aData, 'customer_shippingAddress_street' ),
            'shippingHouseNumber' => $this->_findInArray( $aData, 'customer_shippingAddress_houseNo' ),
            'shippingLocality'    => $this->_findInArray( $aData, 'customer_shippingAddress_city' ),
            'shippingPostalCode'  => $this->_findInArray( $aData, 'customer_shippingAddress_postalCode' ),
            'shippingCountry'     => $this->_findInArray( $aData, 'customer_shippingAddress_country' ),
            'shippingFirstName'   => $this->_findInArray( $aData, 'customer_shippingAddress_firstName' ),
            'shippingLastName'    => $this->_findInArray( $aData, 'customer_shippingAddress_lastName' ),
            'orderAmount'         => $this->_findInArray( $aData, 'order_grossAmount' ),
            'langcode'            => $this->_findInArray( $aData, 'request_languageCode' ),
            'client_ip'           => $this->_findInArray( $aData, 'client_ipAddress' ),
            'currencyCode'        => $this->_findInArray( $aData, 'order_currency' ),
        );

        // Check if there are session fields set and add to print data if available
        $aSessionData = (array) oxRegistry::getSession()->getVariable( 'pm_init_data' );

        if ( !empty( $aSessionData ) ) {
            $aPrintData = array_merge( $aPrintData, $aSessionData );
        }

        return json_encode( $aPrintData );
    }
public function printPmData ( ) { $ aData = $ this -> collectEshopData ( ) ; $ aPrintData = array ( 'phone' => $ this -> _findInArray ( $ aData , 'customer_phoneNumber' ) , 'mobile' => $ this -> _findInArray ( $ aData , 'customer_mobileNumber' ) , 'session_id' => $ this -> _findInArray ( $ aData , 'client_browser_session_id' ) , 'cookie_id' => $ this -> _findInArray ( $ aData , 'client_cookies_id' ) , 'firstName' => $ this -> _findInArray ( $ aData , 'customer_firstName' ) , 'lastName' => $ this -> _findInArray ( $ aData , 'customer_lastName' ) , 'dob' => $ this -> _findInArray ( $ aData , 'customer_dateOfBirth' ) , 'gender' => $ this -> _findInArray ( $ aData , 'customer_gender' ) , 'email' => $ this -> _findInArray ( $ aData , 'customer_email' ) , 'street' => $ this -> _findInArray ( $ aData , 'customer_billingAddress_street' ) , 'houseNumber' => $ this -> _findInArray ( $ aData , 'customer_billingAddress_houseNo' ) , 'locality' => $ this -> _findInArray ( $ aData , 'customer_billingAddress_city' ) , 'postalCode' => $ this -> _findInArray ( $ aData , 'customer_billingAddress_postalCode' ) , 'country' => $ this -> _findInArray ( $ aData , 'customer_billingAddress_country' ) , 'shippingStreet' => $ this -> _findInArray ( $ aData , 'customer_shippingAddress_street' ) , 'shippingHouseNumber' => $ this -> _findInArray ( $ aData , 'customer_shippingAddress_houseNo' ) , 'shippingLocality' => $ this -> _findInArray ( $ aData , 'customer_shippingAddress_city' ) , 'shippingPostalCode' => $ this -> _findInArray ( $ aData , 'customer_shippingAddress_postalCode' ) , 'shippingCountry' => $ this -> _findInArray ( $ aData , 'customer_shippingAddress_country' ) , 'shippingFirstName' => $ this -> _findInArray ( $ aData , 'customer_shippingAddress_firstName' ) , 'shippingLastName' => $ this -> _findInArray ( $ aData , 'customer_shippingAddress_lastName' ) , 'orderAmount' => $ this -> _findInArray ( $ aData , 'order_grossAmount' ) , 'langcode' => $ this -> _findInArray ( $ aData , 'request_languageCode' ) , 'client_ip' => $ this -> _findInArray ( $ aData , 'client_ipAddress' ) , 'currencyCode' => $ this -> _findInArray ( $ aData , 'order_currency' ) , ) ; // Check if there are session fields set and add to print data if available $ aSessionData = ( array ) oxRegistry :: getSession ( ) -> getVariable ( 'pm_init_data' ) ; if ( ! empty ( $ aSessionData ) ) { $ aPrintData = array_merge ( $ aPrintData , $ aSessionData ) ; } return json_encode ( $ aPrintData ) ; }
Get user data for the payment form initialization in JSON format.

@return string
Get user data for the payment form initialization in JSON format .