Hi,
I've installed this hack, and it looks great <G>
However, due to protection issues on our server (anti-DDos mitigation system), PayPal don't seem to be able to request our ppverify.php file for some reason :/
As a fix.. I've moved the validation code from ppverify.php, into a do_verify() routine in donate.php (inside the "thankyou" part).
Basically, it seems to be working ok... as the transID is being passed back. I added this debugging;
echo "SELECT txn_id FROM ".TABLE_PREFIX."donation_paypalipn WHERE txn_id = '".$txn_id."'";
..which gives;
SELECT txn_id FROM donation_paypalipn WHERE txn_id = '62X17512XV724171B'
Fatal error: Call to a member function on a non-object in /var/home/andy/domain.co.uk/www/donate.php on line 344
Line 344, is this;
$query = $DB_site->query_first("SELECT txn_id FROM ".TABLE_PREFIX."donation_paypalipn WHERE txn_id = '".$txn_id."'");
I'm guessing its something to do with the query_first part not working for some reason?
TIA
Andy
|