• Модуль: crmmobile
  • Путь к файлу: ~/bitrix/modules/crmmobile/lib/Terminal/PaymentSystemRepository.php
  • Класс: BitrixCrmMobileTerminalPaymentSystemRepository
  • Вызов: PaymentSystemRepository::getAvailablePaySystemList
static function getAvailablePaySystemList(Payment $payment): array
{
	if (self::isRuZone())
	{
		$paySystemList = self::getLocalPaySystemList();
	}
	else
	{
		$paySystemList = self::getRestPaySystemList($payment);
	}

	$paySystemListWithRestrictions = PaySystemManager::getListWithRestrictions($payment);

	return array_filter(
		$paySystemList,
		static function ($paySystem) use ($paySystemListWithRestrictions) {
			return array_key_exists((int)$paySystem['ID'], $paySystemListWithRestrictions);
		}
	);
}