Example PayPal Script

Hello

I'm using your example PayPal script but I'm confused as to why the script is not generating any licences. It appears to want the "subscriptionReference" which Ive set as the email address haven't I?

[04/25/2019 11:43 PM] - SUCCESS :paychecker intiated by 173.0.82.126[04/25/2019 11:43 PM] - SUCCESS :Validating PayPal order 1[04/25/2019 11:43 PM] - SUCCESS :IPN successfully verified.[04/25/2019 11:43 PM] - SUCCESS :Creating product Information to send.[04/25/2019 11:43 PM] - FAILURE :Failed to generate product keys: (117) You must enter a value for the feature "subscriptionReference". It's a required feature.[04/25/2019 11:43 PM] - SUCCESS :TODO: Insert array into db:

Array( [quantity_licenses] => 1 [pkey] => [pkey_emailed] => 0 [first_name] => Nick [last_name] => Burrett => djnickburrett@xxxx.com [subscriptionReference] => djnickburrett@xxxx.com) [04/25/2019 11:43 PM] - FAILURE :Error sending product Email to djnickburrett@xxxx.com.[04/25/2019 11:43 PM] - SUCCESS :paychecker finished. ------------------------------------------------------------------

The web API docs talk about the parameters and what valid values are: https://wyday.com/limelm/help/api/limelm.pkey.generate/

"subscriptionReference" = "email", is not how feature values are set (subscriptionReference is not a parameter we accept).

This is how you do it:

feature_name[] = "subscriptionReference"feature_value[] = "email"