• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/paysystem/service.php
  • Класс: BitrixSalePaySystemService
  • Вызов: Service::confirm
public function confirm(Payment $payment, $sum = 0)
{
	if ($this->isBlockable())
	{
		if ($this->handler instanceof IPartialHold)
		{
			return $this->handler->confirm($payment, $sum);
		}
		else if ($sum > 0)
		{
			throw new SystemException(Loc::getMessage('SALE_PS_SERVICE_ERROR_PARTIAL_CONFIRM_IS_NOT_SUPPORTED'));
		}

		return $this->handler->confirm($payment);
	}

	throw new SystemException(Loc::getMessage('SALE_PS_SERVICE_ERROR_HOLD_IS_NOT_SUPPORTED'));
}