1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
productcategory.php
См. документацию.
1<?php
2
3namespace Bitrix\Sale\Services\PaySystem\Restrictions;
4
5use Bitrix\Main\Localization\Loc;
6use Bitrix\Sale\Basket;
7use Bitrix\Sale\BasketItem;
8use Bitrix\Sale\Internals\Entity;
9use Bitrix\Sale\Internals\EntityCollection;
10use Bitrix\Sale\Order;
11use Bitrix\Sale\Payment;
12use Bitrix\Sale\PaymentCollection;
13use Bitrix\Sale\Services\Base\ProductCategoryRestriction;
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}
Определения payment.php:19
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$entity
Определения ufield.php:9
$order
Определения payment.php:8