X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=extern%2FauthorizeIPN.php;h=cd1b265578b2dd15712fa5d410cc2dbf4f9d7836;hb=af3775b322b9e4f11d097067367f0ea7763f5f10;hp=e1384e586cd7113f6b440c9f2a21518f944cb14a;hpb=9cc8b9b246a371b9621a8279545258073fbd0e48;p=civicrm-core.git diff --git a/extern/authorizeIPN.php b/extern/authorizeIPN.php index e1384e586c..cd1b265578 100644 --- a/extern/authorizeIPN.php +++ b/extern/authorizeIPN.php @@ -1,7 +1,7 @@ alert('payment_notification processor_name=AuthNet', $_REQUEST); -$authorizeNetIPN = new CRM_Core_Payment_AuthorizeNetIPN(); -$authorizeNetIPN->main(); +$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"; +}