View Single Post
Old August 24th, 2005, 07:33 PM   #20 (permalink)
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,054
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?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote