if (Tools::getIsset('license_number') && !empty($params['license_number'])) {
                    $response = $this->jsonDecode($this->sendRequest($params));
                    if (is_object($response)) {
                        if ($response->code == self::CODE_ERROR) {
                            $this->errors[] = $response->message;
                        } elseif ($response->code == self::CODE_SUCCESS) {
                            Configuration::deleteByName($this->prefix_module.'_DOMAIN');
                            Configuration::deleteByName($this->prefix_module.'_RM');
                            if (version_compare(_PS_VERSION_, '1.5') >= 0) {
                                Configuration::updateValue(
                                    $this->prefix_module.'_DOMAIN',
                                    $response->domain,
                                    $id_shop_group,
                                    $id_shop
                                );
                                Configuration::updateValue($this->prefix_module.'_RM', '1', $id_shop_group, $id_shop);
                            } else {
                                Configuration::updateValue($this->prefix_module.'_DOMAIN', $response->domain);
                                Configuration::updateValue($this->prefix_module.'_RM', '1');
                            }
                            $this->fillConfigVars();
                            $this->html .= $this->displayConfirmation($response->message);
                        }
                    }
                } else {
                    $this->errors[] = 'Please enter the license to do the validation of the module.';
                }