<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*/
require_once '../civicrm.config.php';
$config = CRM_Core_Config::singleton();
+$log = new CRM_Utils_SystemLogger();
+$log->alert('payment_notification processor_name=AuthNet', $_REQUEST);
+
+$authorizeNetIPN = new CRM_Core_Payment_AuthorizeNetIPN($_REQUEST);
+try{
+ $authorizeNetIPN->main();
+}
+catch(CRM_Core_Exception $e) {
+ CRM_Core_Error::debug_log_message($e->getMessage());
+ CRM_Core_Error::debug_var('error data', $e->getErrorData(), TRUE, TRUE);
+ CRM_Core_Error::debug_var('REQUEST', $_REQUEST, TRUE, TRUE);
+ echo "The transaction has failed. Please review the log for more detail";
+}
-$authorizeNetIPN = new CRM_Core_Payment_AuthorizeNetIPN();
-$authorizeNetIPN->main();