bright, fresh software
Downloads  |  Buy

PayPal Scripts

PayPal Scripts

Postby Jason » March 9th, 2012, 12:21 pm

Is there any way to pass feature values through PayPal to paychecker using the included PayPal scripts?

(https://wyday.com/limelm/help/automate-license-generation-with-paypal/)

I want to use these scripts to automate key generation but I have a user-entered feature value that is required (a "Licensed To:" string).
Jason
 

Re: PayPal Scripts

Postby Wyatt » March 9th, 2012, 12:27 pm

PayPal supports a "custom" field where you can pass through custom data.
User avatar
Wyatt
Site Admin
 
Posts: 3364
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: PayPal Scripts

Postby Jason » March 9th, 2012, 12:35 pm

Thanks. In LimeLM.php, should multiple feature names and values be separated with commas?
Jason
 

Re: PayPal Scripts

Postby Wyatt » March 9th, 2012, 1:02 pm

You mean the "GeneratePKeys()" function? No, you pass in arrays. If you look in the file you'll see the function definition is as follows:

Code: Select all
public static function GeneratePKeys($version_id, $num_keys = 1, $num_acts = 1, $email = null, $feature_names = null, $feature_values = null, $tags = null)



So to generate a product key with feature values you do something like this:

Code: Select all
GeneratePKeys($version_id, 1, $quantity, 'user@example.com', array('feature 1', 'feature 2'), array('value 1', 'value 2'))
User avatar
Wyatt
Site Admin
 
Posts: 3364
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: PayPal Scripts

Postby Jason » March 9th, 2012, 2:49 pm

Awesome, thank you.
Jason
 


Return to LimeLM, TurboActivate, & TurboFloat Support