Skip to content

Commit

Permalink
refs #42390, add log to detect if transactional mailing silent fail
Browse files Browse the repository at this point in the history
  • Loading branch information
jimyhuang committed Jan 8, 2025
1 parent 12f3e5a commit 925da10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CRM/Core/Payment/BaseIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ function completeTransaction(&$input, &$ids, &$objects, &$transaction, $recur =
}

CRM_Core_Error::debug_log_message("Success: {$contribution->id} - Database updated");
CRM_Core_Error::debug_log_message("ipn debug pre for {$contribution->id}");
CRM_Utils_Hook::ipnPost('complete', $objects, $input, $ids, $values);

// #25671, add support for hook change mailing notification trigger
Expand All @@ -687,6 +688,7 @@ function completeTransaction(&$input, &$ids, &$objects, &$transaction, $recur =
self::sendMail($input, $ids, $objects, $values, $recur, FALSE);
CRM_Core_Error::debug_log_message("Success: {$contribution->id} - Database updated and mail sent");
}
CRM_Core_Error::debug_log_message("ipn debug post for {$contribution->id}");

if ($sendMail && $values['is_send_sms'] && CRM_SMS_BAO_Provider::activeProviderCount()) {
$sendSMS = TRUE;
Expand Down

0 comments on commit 925da10

Please sign in to comment.