bright, fresh software
Downloads  |  Buy

Product key Activation

Re: Product key Activation

Postby Sam » February 7th, 2012, 1:33 am

The easiest thing to do is to creat a new file called "payment_debug.log'" on your computer. Then copy this file to your server (in the same folder as PaymentSettings.php). Now change the file permissions of the file to Read & Write for all groups (Owner, Group, Public). You can do this with any FTP program (set the "numeric value" of the file permission to "666").

Or if you connect to the server using SSH, you can change the file permissions of the file like this:

Code: Select all
chmod 666 payment_debug.log
User avatar
Sam
 
Posts: 1986
Joined: March 8th, 2010, 3:01 am
Location: New Hampshire

Product key Activation

Postby vertex » February 7th, 2012, 2:01 am

Hai,

In debug_log file this type of error is came

[02/07/2012 6:57 AM] - SUCCESS :paychecker intiated by 193.105.47.7
[02/07/2012 6:57 AM] - SUCCESS :Validating Moneybookers order
[02/07/2012 6:57 AM] - SUCCESS :IPN successfully verified.
[02/07/2012 6:57 AM] - SUCCESS :Creating product Information to send.
[02/07/2012 6:57 AM] - FAILURE :Failed to generate product keys: (117) You must enter a value for the feature "Accounts". It's a required feature.
[02/07/2012 6:57 AM] - SUCCESS :TODO: Insert array into db:

Array
(
[quantity_licenses] => 2
[pkey] =>
[pkey_emailed] => 0
[first_name] =>
[last_name] =>
[email] => kavasanthi87@gmail.com
)

[02/07/2012 6:57 AM] - FAILURE :Error sending product Email to kavasanthi87@gmail.com.
[02/07/2012 6:57 AM] - SUCCESS :paychecker finished.

Please tel how to sloved...
vertex
 

Re: Product key Activation

Postby Sam » February 7th, 2012, 3:03 am

This line tells you exactly what's wrong:

[02/07/2012 6:57 AM] - FAILURE :Failed to generate product keys: (117) You must enter a value for the feature "Accounts". It's a required feature.


That is, you have a "required" custom license feature named "Accounts", but when you're generating the product key you did not set that feature.

To set your feature values, change this line:

Code: Select all
$xml = new SimpleXMLElement(LimeLM::GeneratePKeys($LimeLM_VersionID, 1, $quantity, $email));



To something like this:


Code: Select all
$xml = new SimpleXMLElement(LimeLM::GeneratePKeys($LimeLM_VersionID, 1, $quantity, $email, array('Accounts'), array('feature value')));
User avatar
Sam
 
Posts: 1986
Joined: March 8th, 2010, 3:01 am
Location: New Hampshire

Product key Activation

Postby vertex » February 8th, 2012, 11:30 pm

hai,

Am using number of modules,so am passing parameter values to take and generate the product key..

first i check that coding is,

$xml = new SimpleXMLElement(LimeLM::GeneratePKeys($LimeLM_VersionID, 1, $quantity, $email,array('Accounts', 'HR', 'License_expires','Maintenance','OutProcess','Post Spinning','Preparatory','Raw Material','Sales','Spinning','Stores','WasteCotton'),
array('y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y')));

Its working correctly, but i am pass parameter means its not generate product key
Am using that coding....

$HR = $_POST['HR'] == 'on' ? 'y' : 'n';
$RawMaterial = $_POST['RawMaterial'] == 'on' ? 'y' : 'n';
$Stores = $_POST['Stores'] == 'on' ? 'y' : 'n';
$Preparatory = $_POST['Preparatory'] == 'on' ? 'y' : 'n';
$Spinning = $_POST['Spinning'] == 'on' ? 'y' : 'n';
$PostSpinning = $_POST['PostSpinning'] == 'on' ? 'y' : 'n';
$Outprocess = $_POST['Outprocess'] == 'on' ? 'y' : 'n';
$Maintenance = $_POST['Maintenance'] == 'on' ? 'y' : 'n';
$Sales = $_POST['Sales'] == 'on' ? 'y' : 'n';
$Accounts = $_POST['Accounts'] == 'on' ? 'y' : 'n';
$WasteCotton = $_POST['WasteCotton'] == 'on' ? 'y' : 'n';
$ExpiryDate = date('Y-m-d', strtotime('+1 month'));


$xml = new SimpleXMLElement(LimeLM::GeneratePKeys($LimeLM_VersionID, 1, $quantity, $email,array('Accounts', 'HR', 'License_expires','Maintenance','OutProcess','Post Spinning','Preparatory','Raw Material','Sales','Spinning','Stores','WasteCotton'),
array($Accounts,$HR,$ExpiryDate,$Maintenance,$Outprocess,$PostSpinning,$Preparatory,$RawMaterial,$Sales,$Spinning,$Stores,$WasteCotton)));

this coding only used, but not generate product key error is came that error is,

[02/09/2012 4:12 AM] - SUCCESS :paychecker intiated by 193.105.47.7
[02/09/2012 4:12 AM] - SUCCESS :Validating Moneybookers order
[02/09/2012 4:12 AM] - SUCCESS :IPN successfully verified.
[02/09/2012 4:12 AM] - SUCCESS :Creating product Information to send.
[02/09/2012 4:12 AM] - FAILURE :Failed to generate product keys: (117) You must enter a value for the feature "Accounts". It's a required feature.
[02/09/2012 4:12 AM] - SUCCESS :TODO: Insert array into db:

Array
(
[quantity_licenses] => 1
[pkey] =>
[pkey_emailed] => 0
[first_name] =>
[last_name] =>
[email] => kavasanthi87@gmail.com
)

[02/09/2012 4:12 AM] - FAILURE :Error sending product Email to kavasanthi87@gmail.com.
[02/09/2012 4:12 AM] - SUCCESS :paychecker finished.


please help me..
how to pass parameter values...
vertex
 

Re: Product key Activation

Postby Wyatt » February 9th, 2012, 1:11 am

It sounds like you're not passing the feature values (or feature names) to the "GeneratePKeys" function. Of course, you need to debug it to know where the problem is.


Code: Select all
$HR = $_POST['HR'] == 'on' ? 'y' : 'n';
$RawMaterial = $_POST['RawMaterial'] == 'on' ? 'y' : 'n';
$Stores = $_POST['Stores'] == 'on' ? 'y' : 'n';
$Preparatory = $_POST['Preparatory'] == 'on' ? 'y' : 'n';
$Spinning = $_POST['Spinning'] == 'on' ? 'y' : 'n';
$PostSpinning = $_POST['PostSpinning'] == 'on' ? 'y' : 'n';
$Outprocess = $_POST['Outprocess'] == 'on' ? 'y' : 'n';
$Maintenance = $_POST['Maintenance'] == 'on' ? 'y' : 'n';
$Sales = $_POST['Sales'] == 'on' ? 'y' : 'n';
$Accounts = $_POST['Accounts'] == 'on' ? 'y' : 'n';
$WasteCotton = $_POST['WasteCotton'] == 'on' ? 'y' : 'n';
$ExpiryDate = date('Y-m-d', strtotime('+1 month'));


$feature_names = array('Accounts', 'HR', 'License_expires', 'Maintenance', 'OutProcess', 'Post Spinning', 'Preparatory', 'Raw Material','Sales', 'Spinning', 'Stores', 'WasteCotton');
$feature_values = array($Accounts, $HR, $ExpiryDate, $Maintenance, $Outprocess, $PostSpinning, $Preparatory, $RawMaterial, $Sales, $Spinning, $Stores, $WasteCotton);

debug_log('Are these feature names correct?: '."\r\n\r\n".print_r($feature_names, true), true);
debug_log('Are these feature values correct?: '."\r\n\r\n".print_r($feature_values, true), true);

$xml = new SimpleXMLElement(LimeLM::GeneratePKeys($LimeLM_VersionID, 1, $quantity, $email, $feature_names, $feature_values));
User avatar
Wyatt
Site Admin
 
Posts: 2558
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Product key Activation

Postby vertex » February 9th, 2012, 4:02 am

hai,

In our application itself generate the product key, and email to that product key for particular customer,
Login to the customer and how to edit the license feature values in that product key.. same for LimeLM.

how to select the particular product key and how to edit that product key feature values..

please help me...
vertex
 

Re: Product key Activation

Postby Sam » February 10th, 2012, 2:32 am

Our web API functions are here: LimeLM Web API. It sounds like you're looking for limelm.pkey.setDetails.
User avatar
Sam
 
Posts: 1986
Joined: March 8th, 2010, 3:01 am
Location: New Hampshire

Previous

Return to LimeLM & TurboActivate Support