RelationshipCache - Remove case_id
[civicrm-core.git] / extern / authorizeIPN.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
6b7eb9df
TO
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 * @package CRM
ca5cec67 14 * @copyright CiviCRM LLC https://civicrm.org/licensing
6a488035
TO
15 * $Id$
16 */
17
ba1e1ab6
CB
18if (defined('PANTHEON_ENVIRONMENT')) {
19 ini_set('session.save_handler', 'files');
20}
6a488035
TO
21session_start();
22
23require_once '../civicrm.config.php';
d523d24a 24CRM_Core_Config::singleton();
414e3596 25$log = new CRM_Utils_SystemLogger();
6c8d1617 26$log->alert('payment_notification processor_name=AuthNet', $_REQUEST);
6a488035 27
0dbefed3 28$authorizeNetIPN = new CRM_Core_Payment_AuthorizeNetIPN($_REQUEST);
92e4c2a5 29try {
0dbefed3
EM
30 $authorizeNetIPN->main();
31}
56fdfc52 32catch (CRM_Core_Exception $e) {
0dbefed3
EM
33 CRM_Core_Error::debug_log_message($e->getMessage());
34 CRM_Core_Error::debug_var('error data', $e->getErrorData(), TRUE, TRUE);
35 CRM_Core_Error::debug_var('REQUEST', $_REQUEST, TRUE, TRUE);
36 echo "The transaction has failed. Please review the log for more detail";
37}