Skip to content

Commit

Permalink
Merge pull request #186 from PAYONE-GmbH/fix/PAYOSWXP-33
Browse files Browse the repository at this point in the history
[PAYOSWXP-33] Fix payment with open invoice
  • Loading branch information
janteuber authored Jun 30, 2022
2 parents fd1a91b + 35a793d commit 29ad27f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand All @@ -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;
Expand Down

0 comments on commit 29ad27f

Please sign in to comment.