• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/helpers/admin/blocks/orderpayment.php
  • Класс: BitrixSaleHelpersAdminBlocksOrderPayment
  • Вызов: OrderPayment::getPaySystemParams
static function getPaySystemParams($paySystemId)
{
	static $result = array();

	if (!isset($result[$paySystemId]))
	{
		$data = array();
		if ($paySystemId > 0)
		{
			$data = PaySystemActionTable::getRow(array(
				'select' => array('NAME', 'LOGOTIP', 'HAVE_RESULT', 'RESULT_FILE', 'ACTION_FILE'),
				'filter' => array('ID' => $paySystemId),
			));
		}

		$result[$paySystemId] =  $data;

		$logotip = (int)($data["LOGOTIP"] ?? 0);
		if($logotip > 0)
		{
			$tmp = CFile::ResizeImageGet($logotip, array('width' => 100, 'height' => 60));
			$result[$paySystemId]["LOGOTIP_PATH"] = $tmp['src'];
			$tmp = CFile::ResizeImageGet($logotip, array('width' => 80, 'height' => 50));
			$result[$paySystemId]["LOGOTIP_SHORT_PATH"] = $tmp['src'];
		}
		else
		{
			$result[$paySystemId]["LOGOTIP_PATH"] = '/bitrix/images/sale/nopaysystem.gif';
			$result[$paySystemId]["LOGOTIP_SHORT_PATH"] = '/bitrix/images/sale/nopaysystem.gif';
		}
	}

	return $result[$paySystemId];
}