• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/paysystem/yandexcert.php
  • Класс: BitrixSalePaySystemYandexCert
  • Вызов: YandexCert::getCsr
public function getCsr($shopId)
{
	global $APPLICATION;
	$APPLICATION->RestartBuffer();

	header('Content-Description: File Transfer');
	header('Content-Type: application/octet-stream');
	header('Content-Disposition: attachment; filename=csr_for_yamoney.csr');
	header('Content-Transfer-Encoding: binary');
	header('Expires: 0');
	header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
	header('Pragma: public');
	echo self::getValue('CSR', $shopId);
	die();
}