Skip to content

Commit

Permalink
Regression fix on Paypal Std with memberships not being finalised cor…
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Oct 18, 2019
1 parent a1b3cb0 commit 107f03e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Core/Payment/PayPalIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ public function main() {

Civi::log()->debug('PayPalIPN: Received (ContactID: ' . $ids['contact'] . '; trxn_id: ' . $input['trxn_id'] . ').');

if ($this->retrieve('membershipID', 'Integer', FALSE)) {
// Debugging related to possible missing membership linkage
if ($contributionRecurID && $this->retrieve('membershipID', 'Integer', FALSE)) {
$templateContribution = CRM_Contribute_BAO_ContributionRecur::getTemplateContribution($contributionRecurID);
$membershipPayment = civicrm_api3('MembershipPayment', 'get', [
'contribution_id' => $templateContribution['id'],
Expand Down

0 comments on commit 107f03e

Please sign in to comment.