25 return 'BX.Sale.PaySystem';
41 protected static function getBasketItems(
Entity $entity): array
43 if (!$entity instanceof
Payment)
50 $payableItemCollection = $entity->getPayableItemCollection();
51 if ($payableItemCollection->isEmpty())
54 if (!$collection = $entity->getCollection())
60 if (!$order = $collection->getOrder())
66 if ($basket = $order->getBasket())
68 return $basket->getBasketItems();
73 $basketItemCollection = $payableItemCollection->getBasketItems();
76 foreach ($basketItemCollection as $payableBasketItem)
78 $basketItems[] = $payableBasketItem->getEntityObject();
static loadMessages($file)