Skip to main content
All CollectionsSelling on WarriorPlus
[Advanced Topic] How does the key generation link work?
[Advanced Topic] How does the key generation link work?
Updated over a week ago

This topic is for advanced users.

You can create a key generation script, which will display information on the WSO Pro "thank you" page. This can come in handy if you need to supply information on the "thank you" page such as a specific access key, or login information.

The script will accept only the initial Paypal IPN information. In other words, it will not accept a recurring IPN for subscriptions.

The script you create can do any tasks that you may need it to, including call any of the IPN variables, however it is limited to 512 characters, and can only have very simple/basic HTML tags such as <p>, <br>, <strong>, <em>. In order to have the output displayed on the page, all you have to do is "echo" the output from your script.

As an example, if you are creating a random key, you could do something similar to this:

$randomKey = randomKeyFunction; //Function that creates key
$userName = $_POST['first_name']; //Buyers name from IPN

echo "<p>Hello <em>". $userName ."</em>.<br>Your generated key is: ". $randomKey ."</p>"; //This is what is displayed on the "thank you" page.

You can find a complete list of Paypal IPN variables, as well as some documentation on its uses here:

Did this answer your question?