You are here: Home
Support site for Tips and Tricks HQ premium products
I want to assign license keys to product downloads that I will retrieve from a database table based on the product id. I am planning to create a function to find the next available number(s) for the product and associate it with the TXN_ID via a custom table.
I would like the serial numbers to be displayed on the post-payment page and in the email.
I saw the following code in paypal.php:
//Product license key generation if using the license manager
if (function_exists('wp_lic_manager_install'))
{
$product_license_data .= eStore_check_and_generate_license_key($retrieved_product,$this->ipn_data);
$this->debug_log('License Data...'.$product_license_data,true);
}
If I create the ‘wp_lic_manager_install’ and ‘eStore_check_and_generate_license_key’ functions and include them in paypal.php, would that allow me to assign the key(s) and make them available through the {license_data} short code, or am I reading this wrong?
Will Binns