Index: branches/5.1.x/gw_notify.php =================================================================== diff -u -N -r13549 -r13704 --- branches/5.1.x/gw_notify.php (.../gw_notify.php) (revision 13549) +++ branches/5.1.x/gw_notify.php (.../gw_notify.php) (revision 13704) @@ -1,6 +1,6 @@ Init(); - /*$fh = fopen(WRITEABLE . '/gw.log', 'a'); + /* + // for debugging payment gateway notifications, don't remove + $fh = fopen(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'] );