Esempio n. 1
0
 /**
  * Handles the request.
  * Parses the request variables if necessary. Attempts to call the specified action function
  *
  * @return void
  */
 public function handleRequest()
 {
     if (\XLite\Core\Session::getInstance()->xpc_order_create_profile && $this->getOrder() && $this->getOrder()->getOrderId() && (!\XLite\Core\Session::getInstance()->last_order_id || !$this->getCart()->getOrderId())) {
         $this->getCart()->setOrderId($this->getOrder()->getOrderId());
         \XLite\Core\Session::getInstance()->last_order_id = $this->getOrder()->getOrderId();
         parent::handleRequest();
         $this->getCart()->setOrderId(null);
         \XLite\Core\Session::getInstance()->last_order_id = null;
         \XLite\Core\Session::getInstance()->xpc_order_create_profile = null;
         // Cleanup fake carts from session
         \XLite\Module\CDev\XPaymentsConnector\Core\ZeroAuth::cleanupFakeCarts($this->getProfile());
     } else {
         parent::handleRequest();
     }
 }