# [YooKassa API SDK](../home.md) # Class: \YooKassa\Request\Payments\CreateCaptureRequestBuilder ### Namespace: [\YooKassa\Request\Payments](../namespaces/yookassa-request-payments.md) --- **Summary:** Класс, представляющий модель CreateCaptureRequestBuilder. **Description:** Класс билдера объекта запроса подтверждения платежа, передаваемого в методы клиента API. --- ### Constants * No constants found --- ### Properties | Visibility | Name | Flag | Summary | | ----------:| ---- | ---- | ------- | | protected | [$amount](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#property_amount) | | Сумма | | protected | [$currentObject](../classes/YooKassa-Request-Payments-CreateCaptureRequestBuilder.md#property_currentObject) | | Собираемый объект запроса. | | protected | [$receipt](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#property_receipt) | | Объект с информацией о чеке | --- ### Methods | Visibility | Name | Flag | Summary | | ----------:| ---- | ---- | ------- | | public | [__construct()](../classes/YooKassa-Common-AbstractRequestBuilder.md#method___construct) | | Конструктор, инициализирует пустой запрос, который в будущем начнём собирать. | | public | [addReceiptItem()](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#method_addReceiptItem) | | Добавляет в чек товар | | public | [addReceiptShipping()](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#method_addReceiptShipping) | | Добавляет в чек доставку товара. | | public | [addTransfer()](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#method_addTransfer) | | Добавляет трансфер. | | public | [build()](../classes/YooKassa-Request-Payments-CreateCaptureRequestBuilder.md#method_build) | | Осуществляет сборку объекта запроса к API. | | public | [setAirline()](../classes/YooKassa-Request-Payments-CreateCaptureRequestBuilder.md#method_setAirline) | | Устанавливает информацию об авиабилетах | | public | [setAmount()](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#method_setAmount) | | Устанавливает сумму. | | public | [setCurrency()](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#method_setCurrency) | | Устанавливает валюту в которой будет происходить подтверждение оплаты заказа. | | public | [setDeal()](../classes/YooKassa-Request-Payments-CreateCaptureRequestBuilder.md#method_setDeal) | | Устанавливает сделку. | | public | [setOptions()](../classes/YooKassa-Common-AbstractRequestBuilder.md#method_setOptions) | | Устанавливает свойства запроса из массива. | | public | [setReceipt()](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#method_setReceipt) | | Устанавливает чек. | | public | [setReceiptEmail()](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#method_setReceiptEmail) | | Устанавливает адрес электронной почты получателя чека. | | public | [setReceiptItems()](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#method_setReceiptItems) | | Устанавливает список товаров для создания чека. | | public | [setReceiptPhone()](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#method_setReceiptPhone) | | Устанавливает телефон получателя чека. | | public | [setTaxSystemCode()](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#method_setTaxSystemCode) | | Устанавливает код системы налогообложения. | | public | [setTransfers()](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md#method_setTransfers) | | Устанавливает трансферы. | | protected | [initCurrentObject()](../classes/YooKassa-Request-Payments-CreateCaptureRequestBuilder.md#method_initCurrentObject) | | Инициализирует пустой запрос | --- ### Details * File: [lib/Request/Payments/CreateCaptureRequestBuilder.php](../../lib/Request/Payments/CreateCaptureRequestBuilder.php) * Package: YooKassa\Request * Class Hierarchy: * [\YooKassa\Common\AbstractRequestBuilder](../classes/YooKassa-Common-AbstractRequestBuilder.md) * [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) * \YooKassa\Request\Payments\CreateCaptureRequestBuilder * See Also: * [](https://yookassa.ru/developers/api) --- ### Tags | Tag | Version | Description | | --- | ------- | ----------- | | category | | Class | | author | | cms@yoomoney.ru | --- ## Properties #### protected $amount : ?\YooKassa\Model\MonetaryAmount --- **Summary** Сумма **Type:** MonetaryAmount **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) #### protected $currentObject : ?\YooKassa\Common\AbstractRequestInterface --- **Summary** Собираемый объект запроса. **Type:** AbstractRequestInterface **Details:** #### protected $receipt : ?\YooKassa\Model\Receipt\Receipt --- **Summary** Объект с информацией о чеке **Type:** Receipt **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) --- ## Methods #### public __construct() : mixed ```php public __construct() : mixed ``` **Summary** Конструктор, инициализирует пустой запрос, который в будущем начнём собирать. **Details:** * Inherited From: [\YooKassa\Common\AbstractRequestBuilder](../classes/YooKassa-Common-AbstractRequestBuilder.md) **Returns:** mixed - #### public addReceiptItem() : self ```php public addReceiptItem(string $title, string $price, float $quantity, int $vatCode, null|string $paymentMode = null, null|string $paymentSubject = null, null|mixed $productCode = null, null|mixed $countryOfOriginCode = null, null|mixed $customsDeclarationNumber = null, null|mixed $excise = null) : self ``` **Summary** Добавляет в чек товар **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) * See Also: * [](\YooKassa\Request\Payments\PaymentSubject) * [](\YooKassa\Request\Payments\PaymentMode) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | title | Название или описание товара | | string | price | Цена товара в валюте, заданной в заказе | | float | quantity | Количество товара | | int | vatCode | Ставка НДС | | null OR string | paymentMode | значение перечисления PaymentMode | | null OR string | paymentSubject | значение перечисления PaymentSubject | | null OR mixed | productCode | | | null OR mixed | countryOfOriginCode | | | null OR mixed | customsDeclarationNumber | | | null OR mixed | excise | | **Returns:** self - Инстанс билдера запросов #### public addReceiptShipping() : self ```php public addReceiptShipping(string $title, string $price, int $vatCode, null|string $paymentMode = null, null|string $paymentSubject = null) : self ``` **Summary** Добавляет в чек доставку товара. **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) * See Also: * [](\YooKassa\Request\Payments\PaymentSubject) * [](\YooKassa\Request\Payments\PaymentMode) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | title | Название доставки в чеке | | string | price | Стоимость доставки | | int | vatCode | Ставка НДС | | null OR string | paymentMode | значение перечисления PaymentMode | | null OR string | paymentSubject | значение перечисления PaymentSubject | **Returns:** self - Инстанс билдера запросов #### public addTransfer() : self ```php public addTransfer(array|\YooKassa\Request\Payments\TransferDataInterface $value) : self ``` **Summary** Добавляет трансфер. **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | array OR \YooKassa\Request\Payments\TransferDataInterface | value | Трансфер | **Returns:** self - Инстанс билдера запросов #### public build() : \YooKassa\Request\Payments\CreateCaptureRequest|\YooKassa\Common\AbstractRequestInterface ```php public build(null|array $options = null) : \YooKassa\Request\Payments\CreateCaptureRequest|\YooKassa\Common\AbstractRequestInterface ``` **Summary** Осуществляет сборку объекта запроса к API. **Details:** * Inherited From: [\YooKassa\Request\Payments\CreateCaptureRequestBuilder](../classes/YooKassa-Request-Payments-CreateCaptureRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | null OR array | options | Массив дополнительных настроек объекта | **Returns:** \YooKassa\Request\Payments\CreateCaptureRequest|\YooKassa\Common\AbstractRequestInterface - Инстанс объекта запроса к API #### public setAirline() : \YooKassa\Request\Payments\CreateCaptureRequestBuilder ```php public setAirline(\YooKassa\Request\Payments\AirlineInterface|array|null $value) : \YooKassa\Request\Payments\CreateCaptureRequestBuilder ``` **Summary** Устанавливает информацию об авиабилетах **Details:** * Inherited From: [\YooKassa\Request\Payments\CreateCaptureRequestBuilder](../classes/YooKassa-Request-Payments-CreateCaptureRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Request\Payments\AirlineInterface OR array OR null | value | Объект данных длинной записи или ассоциативный массив с данными | **Returns:** \YooKassa\Request\Payments\CreateCaptureRequestBuilder - #### public setAmount() : self ```php public setAmount(\YooKassa\Model\AmountInterface|array|\YooKassa\Request\Payments\numeric $value, string|null $currency = null) : self ``` **Summary** Устанавливает сумму. **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\AmountInterface OR array OR \YooKassa\Request\Payments\numeric | value | Сумма оплаты | | string OR null | currency | Валюта | **Returns:** self - Инстанс билдера запросов #### public setCurrency() : self ```php public setCurrency(string $value) : self ``` **Summary** Устанавливает валюту в которой будет происходить подтверждение оплаты заказа. **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | value | Валюта в которой подтверждается оплата | **Returns:** self - Инстанс билдера запросов #### public setDeal() : \YooKassa\Request\Payments\CreateCaptureRequestBuilder ```php public setDeal(null|array|\YooKassa\Model\Deal\CaptureDealData $value) : \YooKassa\Request\Payments\CreateCaptureRequestBuilder ``` **Summary** Устанавливает сделку. **Details:** * Inherited From: [\YooKassa\Request\Payments\CreateCaptureRequestBuilder](../classes/YooKassa-Request-Payments-CreateCaptureRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | null OR array OR \YooKassa\Model\Deal\CaptureDealData | value | Данные о сделке, в составе подтверждения оплаты | **Returns:** \YooKassa\Request\Payments\CreateCaptureRequestBuilder - Инстанс билдера запросов #### public setOptions() : \YooKassa\Common\AbstractRequestBuilder ```php public setOptions(iterable|null $options) : \YooKassa\Common\AbstractRequestBuilder ``` **Summary** Устанавливает свойства запроса из массива. **Details:** * Inherited From: [\YooKassa\Common\AbstractRequestBuilder](../classes/YooKassa-Common-AbstractRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | iterable OR null | options | Массив свойств запроса | ##### Throws: | Type | Description | | ---- | ----------- | | \InvalidArgumentException | Выбрасывается если аргумент не массив и не итерируемый объект | | \YooKassa\Common\Exceptions\InvalidPropertyException | Выбрасывается если не удалось установить один из параметров, переданных в массиве настроек | **Returns:** \YooKassa\Common\AbstractRequestBuilder - Инстанс текущего билдера запросов #### public setReceipt() : self ```php public setReceipt(array|\YooKassa\Model\Receipt\ReceiptInterface $value) : self ``` **Summary** Устанавливает чек. **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | array OR \YooKassa\Model\Receipt\ReceiptInterface | value | Инстанс чека или ассоциативный массив с данными чека | ##### Throws: | Type | Description | | ---- | ----------- | | \YooKassa\Common\Exceptions\InvalidPropertyValueTypeException | Генерируется если было передано значение невалидного типа | **Returns:** self - Инстанс билдера запросов #### public setReceiptEmail() : self ```php public setReceiptEmail(string|null $value) : self ``` **Summary** Устанавливает адрес электронной почты получателя чека. **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | value | Email получателя чека | **Returns:** self - Инстанс билдера запросов #### public setReceiptItems() : self ```php public setReceiptItems(array $value = []) : self ``` **Summary** Устанавливает список товаров для создания чека. **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | array | value | Массив товаров в заказе | ##### Throws: | Type | Description | | ---- | ----------- | | \YooKassa\Common\Exceptions\InvalidPropertyValueException | Выбрасывается если хотя бы один из товаров имеет неверную структуру | **Returns:** self - Инстанс билдера запросов #### public setReceiptPhone() : self ```php public setReceiptPhone(string|null $value) : self ``` **Summary** Устанавливает телефон получателя чека. **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | value | Телефон получателя чека | **Returns:** self - Инстанс билдера запросов #### public setTaxSystemCode() : self ```php public setTaxSystemCode(int|null $value) : self ``` **Summary** Устанавливает код системы налогообложения. **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | int OR null | value | Код системы налогообложения. Число 1-6. | **Returns:** self - Инстанс билдера запросов #### public setTransfers() : self ```php public setTransfers(array|\YooKassa\Request\Payments\TransferDataInterface[]|\YooKassa\Common\ListObjectInterface $value) : self ``` **Summary** Устанавливает трансферы. **Details:** * Inherited From: [\YooKassa\Request\Payments\AbstractPaymentRequestBuilder](../classes/YooKassa-Request-Payments-AbstractPaymentRequestBuilder.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | array OR \YooKassa\Request\Payments\TransferDataInterface[] OR \YooKassa\Common\ListObjectInterface | value | Массив трансферов | **Returns:** self - Инстанс билдера запросов #### protected initCurrentObject() : \YooKassa\Common\AbstractRequestInterface|null ```php protected initCurrentObject() : \YooKassa\Common\AbstractRequestInterface|null ``` **Summary** Инициализирует пустой запрос **Details:** * Inherited From: [\YooKassa\Request\Payments\CreateCaptureRequestBuilder](../classes/YooKassa-Request-Payments-CreateCaptureRequestBuilder.md) **Returns:** \YooKassa\Common\AbstractRequestInterface|null - --- ### Top Namespaces * [\YooKassa](../namespaces/yookassa.md) --- ### Reports * [Errors - 0](../reports/errors.md) * [Markers - 0](../reports/markers.md) * [Deprecated - 43](../reports/deprecated.md) --- This document was automatically generated from source code comments on 2026-08-13 using [phpDocumentor](http://www.phpdoc.org/) © 2026 YooMoney