Hi everyone,
I’m trying to protect a page using the php code provided by jvzoo.
I don’t know much about php so to setup my page I don’t know where to place my content.
[php]<?php
function jvzValid()
{
$key=‘My_Secret_Key’;
$rcpt=$_REQUEST[‘cbreceipt’];
$time=$_REQUEST[‘time’];
$item=$_REQUEST[‘item’];
$cbpop=$_REQUEST[‘cbpop’];
$xxpop=sha1("$key|$rcpt|$time|$item");
$xxpop=strtoupper(substr($xxpop,0,8));
if($cbpop==$xxpop)
return 1;
else
return 0;
}
?>[/php]
The content of the page is just html with normal coding:
[code]
Thank You For Your Decision
Your download are ready!
[/code]So what I need is to have the content of the page displayed when a purchase is made and the customer click the download access link provided by the jvzoo platform as the script is supposed to verify the purchase validity, and a different content if someone try to access the page using the direct url of the page or a wrong purchase link.
Here is the explanation I found on jvzoo faq:
[i]When a purchase has been completed, there are several values that are passed to your Thank You page, provided you have entered your “secret key” into your account. The values that get passed are the receipt number (cbreceipt), the time of the purchase (time), the JVZoo item number (item) and the proof of purchase value (cbpop).
When a customer makes a purchase, JVZoo encrypts the receipt, time, and item. This is accomplished by using the secret key that you specified in your account. That information is then passed to you in the cbpop query screen. You can confirm that the proof of purchase (cbpop) is correct by using the validation script.
[/i]
Any help will be greatly appreciated.
Have an awesome day.
Turbo