diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index a074540ff9de..c99d20d84b64 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -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; }