• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/delivery/restrictions/bypaysystem.php
  • Класс: BitrixSaleDeliveryRestrictionsByPaySystem
  • Вызов: ByPaySystem::getPaySystemsList
static function getPaySystemsList(): array
{
	static $result = null;

	if ($result !== null)
	{
		return $result;
	}

	$result = [];

	$iterator = PaySystemManager::getList([
		'select' => [
			'ID',
			'NAME',
			'SORT',
		],
		'filter' => [
			'=ACTIVE' => 'Y',
		],
		'order' => ['SORT' => 'ASC', 'NAME' => 'ASC']
	]);
	while ($row = $iterator->fetch())
	{
		$result[$row['ID']] = htmlspecialcharsbx($row['NAME']);
	}

	return $result;
}