• Модуль: messageservice
  • Путь к файлу: ~/bitrix/modules/messageservice/lib/sender/sms/smsru.php
  • Класс: BitrixMessageServiceSenderSmsSmsRu
  • Вызов: SmsRu::confirmRegistration
public function confirmRegistration(array $fields)
{
	$embedId = $this->getOption('embed_id');
	$params = array(
		'embed_id' => $embedId,
		'confirm' => $fields['confirm']
	);
	$result = $this->callExternalMethod('embed/confirm', $params);

	if ($result->isSuccess())
	{
		$this->setOption('is_confirmed', true);
		$callBackResult = $this->callExternalMethod('callback/add', array(
			'embed_id' => $embedId,
			'url' => $this->getCallbackUrl()
		));
		if ($callBackResult->isSuccess())
		{
			$this->setOption('callback_set', true);
		}
	}

	return $result;
}