From 66bd08d9a746c9191787b796a21280e2bd389f27 Mon Sep 17 00:00:00 2001 From: Frederik Rommel Date: Wed, 23 Aug 2023 20:15:31 +0200 Subject: [PATCH] PAYOSWXP-112: fix translation of shipping method name --- src/Components/Hydrator/LineItemHydrator/LineItemHydrator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Hydrator/LineItemHydrator/LineItemHydrator.php b/src/Components/Hydrator/LineItemHydrator/LineItemHydrator.php index 2063b36ce..5f8287995 100644 --- a/src/Components/Hydrator/LineItemHydrator/LineItemHydrator.php +++ b/src/Components/Hydrator/LineItemHydrator/LineItemHydrator.php @@ -263,7 +263,7 @@ private function getShippingItems( $items[] = $this->getRequestItem( self::TYPE_SHIPMENT, '', // got be filled by `addShippingItemsToItemList` - $shippingMethod->getName() ?? '', + $shippingMethod->getTranslation('name') ?? '', $shipmentPosition->getPrice(), 1, $shipmentPosition->getTaxRate()