• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/paysystem/manager.php
  • Класс: BitrixSalePaySystemManager
  • Вызов: Manager::getDataRefundablePage
static function getDataRefundablePage()
{
	$paySystemList = array();
	$dbRes = static::getList();
	while ($data = $dbRes->fetch())
	{
		$service = new Service($data);
		if ($service->isRefundable())
			$paySystemList[$data['ACTION_FILE']][] = $data;
	}

	$result = array();
	foreach ($paySystemList as $handler => $data)
	{
		/* @var ServiceHandler $classHandler */
		$classHandler = static::getClassNameFromPath($handler);

		if (is_subclass_of($classHandler, 'BitrixSalePaySystemServiceHandler'))
		{
			$settings = $classHandler::findMyDataRefundablePage($data);
			if ($settings)
				$result = array_merge($settings, $result);
		}
	}

	return $result;
}