PHP-KeyCodes

Sending Key codes

Sending Key codes ...

After a successful purchase the key code is extracted from the database.

First, the number of key codes is calculated and checked against the lower limit. If the number of key codes has reached the lower limit, then an email is sent to the site administrator. The top key 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 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. Click here to go to the purchase page for further details.

Demo : To view an on-line demo illustrating the admin pages click here.
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 by clicking here.