• Модуль: crmmobile
  • Путь к файлу: ~/bitrix/modules/crmmobile/lib/Controller/ReceivePayment/Payment.php
  • Класс: BitrixCrmMobileControllerReceivePaymentPayment
  • Вызов: Payment::resendMessageAction
public function resendMessageAction(array $options): bool
{
	$factory = Container::getInstance()->getFactory((int)$options['ownerTypeId']);
	if (!$factory)
	{
		return false;
	}

	$entity = $factory->getItem((int)$options['ownerId']);
	if (!$entity)
	{
		return false;
	}
	$orderId = $this->getOrderId($entity);

	$this->forward(
		Order::class,
		'resendPayment',
		[
			'orderId' => $orderId,
			'paymentId' => $options['paymentId'],
			'shipmentId' => $options['shipmentId'],
			'options' => $options,
		]
	);

	$errors = $this->getErrors();
	if (!empty($errors))
	{
		$this->errorCollection->clear();
		$errors = $this->markErrorsAsPublic($errors);
		$this->addErrors($errors);
	}

	return true;
}