Index: branches/5.2.x/gw_notify.php =================================================================== diff -u -N -r14258 -r14582 --- branches/5.2.x/gw_notify.php (.../gw_notify.php) (revision 14258) +++ branches/5.2.x/gw_notify.php (.../gw_notify.php) (revision 14582) @@ -1,6 +1,6 @@ Init(); - /* + // for debugging payment gateway notifications, don't remove - $fh = fopen(WRITEABLE . '/gw.log', 'a'); + /*$fh = fopen((defined('RESTRICTED') ? RESTRICTED : WRITEABLE) . '/gw.log', 'a'); fwrite ($fh, "\n\n".date('d/m/y h:i:s').":\n"); foreach ($_REQUEST as $key => $val) { fwrite($fh, "\n"); } - fclose($fh); - */ - + fclose($fh);*/ + + $db =& $application->GetADODBConnection(); $application->setUnitOption('ord','AutoLoad',false); $order =& $application->recallObject('ord'); - + $order_id = $application->GetVar('order_id'); if ($order_id) { $order->Load($order_id); } - + $gw_data = $order->getGatewayData($application->GetVar('payment_type_id')); $application->registerClass( $gw_data['ClassName'], GW_CLASS_PATH.'/'.$gw_data['ClassFile'] ); $gateway_object =& $application->recallObject( $gw_data['ClassName'] );