Skip to content

Commit

Permalink
Merge pull request #27759 from braders/paypalipn-exception
Browse files Browse the repository at this point in the history
Fix message within exception (PayPalIPN)
  • Loading branch information
colemanw authored Oct 8, 2023
2 parents 67e86d6 + c657f24 commit 1f76d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Payment/PayPalIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ protected function getContribution(): CRM_Contribute_BAO_Contribution {
$this->contribution = new CRM_Contribute_BAO_Contribution();
$this->contribution->id = $this->getContributionID();
if (!$this->contribution->find(TRUE)) {
throw new CRM_Core_Exception('Failure: Could not find contribution record for ' . (int) $contribution->id, NULL, ['context' => "Could not find contribution record: {$contribution->id} in IPN request: "]);
throw new CRM_Core_Exception('Failure: Could not find contribution record for ' . (int) $this->contribution->id, NULL, ['context' => "Could not find contribution record: {$this->contribution->id} in IPN request: "]);
}
if ((int) $this->contribution->contact_id !== $this->getContactID()) {
CRM_Core_Error::debug_log_message("Contact ID in IPN not found but contact_id found in contribution.");
Expand Down

0 comments on commit 1f76d7c

Please sign in to comment.