_amount !== null) { $value = $this->_amount->getValue(); if (empty($value) || $value <= 0.0) { $this->setValidationError('Invalid amount value: ' . $value); return false; } } if ($this->getReceipt() && $this->getReceipt()->notEmpty()) { $email = $this->getReceipt()->getCustomer()->getEmail(); $phone = $this->getReceipt()->getCustomer()->getPhone(); if (empty($email) && empty($phone)) { $this->setValidationError('Both email and phone values are empty in receipt'); return false; } } return true; } /** * Возвращает билдер объектов запросов на подтверждение оплаты * @return CreateCaptureRequestBuilder Инстанс билдера */ public static function builder() { return new CreateCaptureRequestBuilder(); } }