Skip to content

Commit

Permalink
Merge pull request #19965 from eileenmcnaughton/mem_trxn
Browse files Browse the repository at this point in the history
Remove reference to trxn_id, not on form, from previously shared code
  • Loading branch information
colemanw authored Apr 8, 2021
2 parents 8590f6b + d5be88d commit b61cc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Member/Form/Membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ protected function legacyProcessRecurringContribution(array $params, $contactID)
$recurParams['is_email_receipt'] = (bool) $this->getSubmittedValue('send_receipt');
// we need to add a unique trxn_id to avoid a unique key error
// in paypal IPN we reset this when paypal sends us the real trxn id, CRM-2991
$recurParams['trxn_id'] = $params['trxn_id'] ?? $this->getInvoiceID();
$recurParams['trxn_id'] = $this->getInvoiceID();
$recurParams['campaign_id'] = $this->getSubmittedValue('campaign_id');
return CRM_Contribute_BAO_ContributionRecur::add($recurParams)->id;
}
Expand Down

0 comments on commit b61cc5d

Please sign in to comment.