var is_features = ""; // featureset 0 var hasFeatureF1 = (tags['F1']>0) ? true : false; var hasFeatureF2 = (tags['F2']>0) ? true : false; var hasFeatureF3 = (tags['F3']>0) ? true : false; // featureset 0 var fiF1= 1; var fiF2 = 2; var fiF3 = 4; // featureset 0 if (hasFeatureF1 || hasFeatureF2 || hasFeatureF3) { is_features += "0:"; var tmp = 0; if (hasFeatureF1) { tmp += fiF1; } if (hasFeatureF2) { tmp += fiF2; } if (hasFeatureF3) { tmp += fiF3; } is_features += tmp; is_features += ";"; } // featureset 3 var hasFeatureD1 = (tags['D1']>0) ? true : false; var fiD1= 1; if (hasFeatureD1) { is_features += "3:"; var tmp = 0; if (hasFeatureD1) { tmp += fiD1; } is_features += tmp; is_features += ";"; } // var referrer = (typeof referrer == 'undefined') ? "" : referrer; var company = (typeof company == 'undefined') ? "" : company; var response = httpPost("https://quicklicensemanager.com/qlmdemov10/qlm/qlmservice.asmx/GetActivationKey", { "is_vendor": "fastspring", "is_productid": "1", "is_majorversion": "1", "is_minorversion": "0", "is_qlmversion": "5.0.00", "is_user": "", "is_pwd": "", "is_features": is_features, "email": email, "company": company, "referrer": referrer, "internalProductName": product, "name": name, "quantity": quantity, "reference": reference } ); //response.statusCode; response.body;