/**
  * ensureCouponIsValid
  * @param string $params
  * @return boolean
  */
 public function assertCouponIsValid($token, $coupon_code, $coupon_value, $coupon_type)
 {
     //first call the parent function
     parent::assertCouponIsValid($token, $coupon_code, $coupon_value, $coupon_type);
     //get the session_id associated with the token
     $session_id = $this->getSessionId($token);
     //make sure the session is valid
     if ($session_id === null) {
         throw new Exception(SyC::t('sdk', 'Token not found'));
     }
     //resume the session
     session_destroy();
     session_id($session_id);
     session_start();
     $this->loadSessionData();
 }