Does the "Send Free Code" feature feature the handshake mentioned on http://www.e-junkie.com/ej/help.keygen.htm or is that only for processed payments?



* handshake - md5(your_e-junkie_login_email+md5(your-e-junkie-password))

<?php

// You can use this variable to ensure that the data coming is from

// E-junkie server. you can of course use any language of your choice.

// Put these lines in top of your script to make sure that the data

// you are getting is from e-junkie server.

// If your e-junkie login email and password is known to someone

// else, then this verification will be moot.

if ($POST['handshake']!==md5("your@login.email".md5("youre-junkie_password")))

{

exit;

}else {

// The code generation scheme will depend on the algorithm you

// are using in your software to actually check the data.

// It can be as simple as an MD5 hash of buyer's email, name and a secret word,

// or something completely random which you store in your database so your

// software would check the entered code against your DB.

// It's up to you completely; this is just one example of what you might do:

echo md5($POST['payeremail']."some secret string");

}

?>

* from_name - your display name in e-junkie profile

* from_email - your display email in e-junkie profile

  • created

    Mar '11
  • last reply

    Mar '11
  • 1

    reply

  • 1.3k

    views

  • 2

    users

  • 1

    link

The "Send free download link/code" function can only send a code for products using "Send Stored Codes". Since there is no actual checkout involved with that function, there is no order data to POST to a keygen URL, so that function will not work for "Send Generated Codes".