• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/paysystem/service.php
  • Класс: BitrixSalePaySystemname
  • Вызов: name::getCashboxClass
public function getCashboxClass(): string
{
	if ($this->isSupportPrintCheck())
	{
		$cashboxClassName = $this->handler::getCashboxClass();
		if (!CashboxManager::isPaySystemCashbox($cashboxClassName))
		{
			throw new NotSupportedException(
				'Cashbox is not extended class '.CashboxCashboxPaySystem::class
			);
		}

		return $cashboxClassName;
	}

	throw new NotSupportedException(
		'Handler is not implemented interface '.SalePaySystemCashboxISupportPrintCheck::class
	);
}