Skip to content

Commit

Permalink
Improve error handling on IPN
Browse files Browse the repository at this point in the history
https://civicrm.stackexchange.com/questions/37277/paypal-standard-payments-are-being-accepted-but-marked-as-incomplete-transaction/37279#37279

shows how unhelpful this error is - getting data from the exception should help.

Targetting 5.28 in case the gitlab relates to a regression & we need to solicit more debug info
  • Loading branch information
eileenmcnaughton committed Aug 4, 2020
1 parent 5cb039f commit 36ed5ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Core/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,7 @@ public static function handleIPN() {
Civi::log()->error('ipn_payment_callback_exception', [
'context' => [
'backtrace' => CRM_Core_Error::formatBacktrace(debug_backtrace()),
'message' => $e->getMessage(),
],
]);
}
Expand Down

0 comments on commit 36ed5ef

Please sign in to comment.