Skip to content

Commit

Permalink
Remove reference to trxn_id, not on form, from previously shared code
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Apr 3, 2021
1 parent 56233cb commit d5be88d
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 @@ -1737,7 +1737,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 d5be88d

Please sign in to comment.