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 [url=https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables#id091EAB0105Z__id0913D0J60HK:27m8jc8t]supports a "custom" field[/url:27m8jc8t] where you can pass through custom data.
User avatar
Wyatt
Site Admin
 
Posts: 3990
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:3a0jrh9k]public static function GeneratePKeys($version_id, $num_keys = 1, $num_acts = 1, $email = null, $feature_names = null, $feature_values = null, $tags = null)[/code:3a0jrh9k]


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

[code:3a0jrh9k]GeneratePKeys($version_id, 1, $quantity, 'user@example.com', array('feature 1', 'feature 2'), array('value 1', 'value 2'))[/code:3a0jrh9k]
User avatar
Wyatt
Site Admin
 
Posts: 3990
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