/** * Persists all needed information from the incoming data set. * * @param array $request * @param array $response */ private function _processIncomingData($request, $response) { $actionMapping = $this->_actionMapping[$request['_action']]; $paramsIn = isset($actionMapping['paramsIn']) ? $actionMapping['paramsIn'] : array(); foreach ($paramsIn as $paramName) { if (!empty($response['Data'][$paramName]) || $paramName === self::KEY_CART_PING_TIME) { switch ($paramName) { case self::KEY_BUYER_ID: $this->_integrator->setBuyerId($response['Data'][$paramName]); break; case self::KEY_CART_ID: $this->_integrator->setCartId($response['Data'][$paramName]); break; case self::KEY_VISITOR_ID: $this->_integrator->setVisitorId($response['Data'][$paramName]); $this->_integrator->setVisitorCalled(); break; case self::KEY_REDIRECT_ID: $this->_integrator->setRedirectId($response['Data'][$paramName]); break; case self::KEY_CART_PING_TIME: $this->_integrator->setCartPingTime(time()); break; } } } }
public function __construct() { parent::__construct(); }