core/oxpspaymorrowrequestcontrollerproxy.php
protected function _updateUserActiveShippingAddress( oxUser $oUser, array $aPostData )
    {
        /** @var oxAddress $oShippingAddress */
        $oShippingAddress      = $oUser->getSelectedAddress();
        $blShowShippingAddress = (bool) oxRegistry::getSession()->getVariable( 'blshowshipaddress' );

        if ( !$blShowShippingAddress or !( $oShippingAddress instanceof oxAddress ) or !$oShippingAddress->getId()
        ) {
            return false;
        }

        return $oUser->mapShippingDataAndUpdateAddress( $aPostData, $oShippingAddress );
    }
protected function _updateUserActiveShippingAddress( oxUser $oUser, array $aPostData )
    {
        /** @var oxAddress $oShippingAddress */
        $oShippingAddress      = $oUser->getSelectedAddress();
        $blShowShippingAddress = (bool) oxRegistry::getSession()->getVariable( 'blshowshipaddress' );

        if ( !$blShowShippingAddress or !( $oShippingAddress instanceof oxAddress ) or !$oShippingAddress->getId()
        ) {
            return false;
        }

        return $oUser->mapShippingDataAndUpdateAddress( $aPostData, $oShippingAddress );
    }
protected function _updateUserActiveShippingAddress ( oxUser $ oUser , array $ aPostData ) { /** @var oxAddress $oShippingAddress */ $ oShippingAddress = $ oUser -> getSelectedAddress ( ) ; $ blShowShippingAddress = ( bool ) oxRegistry :: getSession ( ) -> getVariable ( 'blshowshipaddress' ) ; if ( ! $ blShowShippingAddress or ! ( $ oShippingAddress instanceof oxAddress ) or ! $ oShippingAddress -> getId ( ) ) { return false ; } return $ oUser -> mapShippingDataAndUpdateAddress ( $ aPostData , $ oShippingAddress ) ; }
Get user active shipping address if it is used in the session and update it.

@param OxpsPaymorrowOxUser|oxUser $oUser
@param array                      $aPostData

@return bool
Get user active shipping address if it is used in the session and update it .