• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/controller/payment.php
  • Класс: BitrixSaleControllerPayment
  • Вызов: Payment::setPaidAction
public function setPaidAction(BitrixSalePayment $payment, $value)
{
	$r = $payment->setPaid($value);
	if($r->isSuccess())
	{
		$this->save($payment, $r);
	}

	if(!$r->isSuccess())
	{
		$this->addErrors($r->getErrors());
		return null;
	}

	return true;
}