From 35a793da581d27cada137fdd2a74979dc228726c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20M=C3=BCller?= Date: Thu, 30 Jun 2022 08:13:00 +0200 Subject: [PATCH] [PAYOSWXP-33] Fix payment with open invoice --- .../Builder/OpenInvoice/AuthorizeRequestParameterBuilder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Payone/RequestParameter/Builder/OpenInvoice/AuthorizeRequestParameterBuilder.php b/src/Payone/RequestParameter/Builder/OpenInvoice/AuthorizeRequestParameterBuilder.php index 50d639023..bee413ffb 100644 --- a/src/Payone/RequestParameter/Builder/OpenInvoice/AuthorizeRequestParameterBuilder.php +++ b/src/Payone/RequestParameter/Builder/OpenInvoice/AuthorizeRequestParameterBuilder.php @@ -30,6 +30,7 @@ public function getRequestParameter(AbstractRequestParameterStruct $arguments): { $paymentTransaction = $arguments->getPaymentTransaction(); $salesChannelContext = $arguments->getSalesChannelContext(); + $context = $salesChannelContext->getContext(); $order = $paymentTransaction->getOrder(); $currency = $this->getOrderCurrency($order, $salesChannelContext->getContext()); @@ -39,7 +40,7 @@ public function getRequestParameter(AbstractRequestParameterStruct $arguments): ]; if ($order->getLineItems() !== null) { - $parameters = array_merge($parameters, $this->lineItemHydrator->mapOrderLines($currency, $order->getLineItems())); + $parameters = array_merge($parameters, $this->lineItemHydrator->mapOrderLines($currency, $order, $context)); } return $parameters;