Sending license key codes

Email :

Sending license key codes ...

After a successful purchase the key code, license code or mobile phone pin number is extracted from the database.

First, the number of license codes is calculated and checked against the lower limit. If the number of codes has reached the lower limit, then an email is sent to the site administrator. The top license code is extracted and the remainder saved to the database.

The functionality is provided by three functions which could be modified if there is a requirement to extract the key codes from a different location or to provide a key code calculated from other details.

It could be possible to create a pin or license key based on the purchaser's name for example.

The three functions are :

  • getnoofkeycodes returns the number of key codes that are in the database for this item
  • getlowerlimit returns the number defined in the database for the lower limit of key codes
  • getnextkeycodes returns the next key code, (or key codes), and removes it, (or them), from the database

The files /keycodes/keycodes_paypal.php provide the above functionality.

The number of key codes that are sent out with each purchase is set to 1. This can be changed in /ipncommon/com_ipnfunctions.php at around line 422. Change the number of key codes to retrieved to what you require.

Find out more

Pricing : PHP-KeyCodes costs $45 U.S. Dollars.
Purchase page

Demo : To view an on-line demo illustrating the admin pages. Demo page
The demo is live and you may purchase items to see how the system works. Items are $0.01 in value.

Enquiries : If you have any questions about the product, go to the contacts page.
Contacts page