Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
productcategory.php
1<?php
2
4
14use Twilio\TwiML\Voice\Pay;
15
16Loc::loadMessages(__FILE__);
17
19{
23 protected static function getJsHandler(): string
24 {
25 return 'BX.Sale.PaySystem';
26 }
27
32 public static function getClassDescription() : string
33 {
34 return '';
35 }
36
41 protected static function getBasketItems(Entity $entity): array
42 {
43 if (!$entity instanceof Payment)
44 {
45 return [];
46 }
47
49 if (!$collection = $entity->getCollection())
50 {
51 return [];
52 }
53
55 if (!$order = $collection->getOrder())
56 {
57 return [];
58 }
59
61 if ($orderBasket = $order->getBasket())
62 {
63 return $orderBasket->getBasketItems();
64 }
65
66 return [];
67 }
68}
static loadMessages($file)
Definition loc.php:64