Skip to content

Commit

Permalink
[REF] Fully remove ids variable from paypal std
Browse files Browse the repository at this point in the history
The ids variable is no longer used - bye
  • Loading branch information
eileenmcnaughton committed May 17, 2021
1 parent 27b1d20 commit 2b4ab80
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions CRM/Core/Payment/PayPalIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 2b4ab80

Please sign in to comment.