diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 272ea3f6dc8a..05d31fd420d3 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -1219,14 +1219,14 @@ public function submit(): void { $paymentParams, [ 'contact_id' => $this->_contributorContactID, - 'line_item' => $lineItem, + 'line_item' => [$this->order->getPriceSetID() => $this->order->getLineItems()], 'is_test' => $this->isTest(), 'campaign_id' => $paymentParams['campaign_id'] ?? NULL, 'source' => CRM_Utils_Array::value('source', $paymentParams, CRM_Utils_Array::value('description', $paymentParams)), 'payment_instrument_id' => $this->getPaymentInstrumentID(), 'financial_type_id' => $this->getFinancialTypeID(), 'receive_date' => CRM_Utils_Time::date('YmdHis'), - 'tax_amount' => $params['tax_amount'] ?? NULL, + 'tax_amount' => $this->order->getTotalTaxAmount(), 'total_amount' => $this->order->getTotalAmount(), 'invoice_id' => $this->getInvoiceID(), 'currency' => $this->getCurrency(),