Share via E-Mail
Share on Twitter
Share on Facebook
E-junkie Blog
E-junkie FaceBook Page
E-junkie @ Twitter

E-junkie Ecommerce Forums » E-junkie Discussions

Tag Cloud for this topic:

Free code handshake



nov181983
member
Posts: 5


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("your_e- 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['payer_email']."some secret string");
}
?>
* from_name - your display name in e-junkie profile
* from_email - your display email in e-junkie profile


#
POSTED ON: March 16, 2011 @ 23:38 GMT -7




E-junkieGuru
E-Junkie Crew
Posts: 4345


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".


#
POSTED ON: March 17, 2011 @ 12:52 GMT -7


You must be logged in to make a post. Please click here to login.

30 Day Money Back Guarantee
PayPal Certified Integration
Google Checkout Certified Integration
Slam the Online Scam