diff --git a/CRM/Core/Payment/PayPalIPN.php b/CRM/Core/Payment/PayPalIPN.php index 1d15aa3f70bb..c0826c72b413 100644 --- a/CRM/Core/Payment/PayPalIPN.php +++ b/CRM/Core/Payment/PayPalIPN.php @@ -232,31 +232,18 @@ public function single($input, $contribution, $recur = FALSE) { */ public function main() { try { - $ids = $input = []; + $input = []; $component = $this->retrieve('module', 'String'); $input['component'] = $component; - $ids['contact'] = $this->getContactID(); - $contributionID = $ids['contribution'] = $this->getContributionID(); + $contributionID = $this->getContributionID(); $membershipID = $this->retrieve('membershipID', 'Integer', FALSE); $this->getInput($input); - if ($component === 'event') { - $ids['event'] = $this->retrieve('eventID', 'Integer', TRUE); - $ids['participant'] = $this->retrieve('participantID', 'Integer', TRUE); - } - else { - // get the optional ids - $ids['membership'] = $membershipID; - $ids['contributionPage'] = $this->retrieve('contributionPageID', 'Integer', FALSE); - $ids['related_contact'] = $this->retrieve('relatedContactID', 'Integer', FALSE); - $ids['onbehalf_dupe_alert'] = $this->retrieve('onBehalfDupeAlert', 'Integer', FALSE); - } - $paymentProcessorID = $this->getPayPalPaymentProcessorID($input, $this->getContributionRecurID()); - Civi::log()->debug('PayPalIPN: Received (ContactID: ' . $ids['contact'] . '; trxn_id: ' . $input['trxn_id'] . ').'); + Civi::log()->debug('PayPalIPN: Received (ContactID: ' . $this->getContactID() . '; trxn_id: ' . $input['trxn_id'] . ').'); // Debugging related to possible missing membership linkage if ($this->getContributionRecurID() && $this->retrieve('membershipID', 'Integer', FALSE)) {