43 public static function check($params, array $restrictionParams, $serviceId = 0)
45 if (is_array($restrictionParams) && isset($restrictionParams[
'PAY_SYSTEMS']))
47 $diff = array_diff($params, $restrictionParams[
'PAY_SYSTEMS']);
58 protected static function extractParams(
Entity $entity)
64 $collection = $entity->getPaymentCollection();
68 foreach ($collection as $item)
69 $result[] = $item->getPaymentSystemId();
75 $shipmentCollection = $entity->getCollection();
76 if (!$shipmentCollection)
79 $order = $shipmentCollection->getOrder();
83 $paymentCollection = $order->getPaymentCollection();
84 if (!$paymentCollection)
88 foreach ($paymentCollection as $item)
89 $result[] = $item->getPaymentSystemId();
91 elseif ($entity instanceof Payment)
93 $result[] = $entity->getPaymentSystemId();
104 static $result =
null;
111 $dbResultList = Sale\PaySystem\Manager::getList(array(
112 'select' => array(
"ID",
"NAME",
"ACTIVE"),
113 'filter' => array(
"ACTIVE" =>
"Y"),
114 'order' => array(
"SORT"=>
"ASC",
"NAME"=>
"ASC")
117 while ($arPayType = $dbResultList->fetch())
118 $result[$arPayType[
"ID"]] = $arPayType[
"NAME"];
130 "PAY_SYSTEMS" => array(
134 "OPTIONS" => self::getPaySystemsList()
147 return Manager::SEVERITY_STRICT;
static loadMessages($file)
static getMessage($code, $replace=null, $language=null)