|
Well I still dont get this
The file is coded properly and I cant reproduce it
if ( $action == "paid" ) {
// First, update the status of the ad and the approved flag
if ( $User['usemod'] == 0 ) {
// Needs approval, so give them that message
$Globals['pp_lang']['thankyou'] = $Globals['pp_lang']['thankapp'];
$query = "UPDATE {$Globals['pp_db_prefix']}products SET approved=0,paid=1 WHERE id=$adid";
}
else {
$query = "UPDATE {$Globals['pp_db_prefix']}products SET approved=1,paid=1 WHERE id=$adid";
}
$resultb = ppmysql_query($query, $link);
You can see action and ad are both typecast here so if action=paid this gets executed and we use ad to get the $adid
So my number one question would be more along this line
Are you getting redirected back to the payment script with this url and a transaction code displayed?? Note the lines below that come right from the payment template
<input type="hidden" name="return" value="{$Globals['maindir']}/payment.php?action=paid&ad=$transcode">
<input type="hidden" name="cancel_return" value="{$Globals['maindir']}/payment.php?action=cancel?ad=$transcode">
So whether you cancel or go through payment you should get redirected back to the payment page. What do your links look like?
|