# [YooKassa API SDK](../home.md) # Class: \YooKassa\Request\Payments\CreateCaptureResponse ### Namespace: [\YooKassa\Request\Payments](../namespaces/yookassa-request-payments.md) --- **Summary:** Класс, представляющий модель CreateCaptureResponse. **Description:** Объект ответа от API на запрос подтверждения платежа. --- ### Constants * No constants found --- ### Properties | Visibility | Name | Flag | Summary | | ----------:| ---- | ---- | ------- | | public | [$amount](../classes/YooKassa-Model-Payment-Payment.md#property_amount) | | Сумма заказа | | public | [$authorization_details](../classes/YooKassa-Model-Payment-Payment.md#property_authorization_details) | | Данные об авторизации платежа | | public | [$authorizationDetails](../classes/YooKassa-Model-Payment-Payment.md#property_authorizationDetails) | | Данные об авторизации платежа | | public | [$cancellation_details](../classes/YooKassa-Model-Payment-Payment.md#property_cancellation_details) | | Комментарий к отмене платежа | | public | [$cancellationDetails](../classes/YooKassa-Model-Payment-Payment.md#property_cancellationDetails) | | Комментарий к отмене платежа | | public | [$captured_at](../classes/YooKassa-Model-Payment-Payment.md#property_captured_at) | | Время подтверждения платежа магазином | | public | [$capturedAt](../classes/YooKassa-Model-Payment-Payment.md#property_capturedAt) | | Время подтверждения платежа магазином | | public | [$confirmation](../classes/YooKassa-Model-Payment-Payment.md#property_confirmation) | | Способ подтверждения платежа | | public | [$created_at](../classes/YooKassa-Model-Payment-Payment.md#property_created_at) | | Время создания заказа | | public | [$createdAt](../classes/YooKassa-Model-Payment-Payment.md#property_createdAt) | | Время создания заказа | | public | [$deal](../classes/YooKassa-Model-Payment-Payment.md#property_deal) | | Данные о сделке, в составе которой проходит платеж | | public | [$description](../classes/YooKassa-Model-Payment-Payment.md#property_description) | | Описание транзакции | | public | [$expires_at](../classes/YooKassa-Model-Payment-Payment.md#property_expires_at) | | Время, до которого можно бесплатно отменить или подтвердить платеж | | public | [$expiresAt](../classes/YooKassa-Model-Payment-Payment.md#property_expiresAt) | | Время, до которого можно бесплатно отменить или подтвердить платеж | | public | [$id](../classes/YooKassa-Model-Payment-Payment.md#property_id) | | Идентификатор платежа | | public | [$income_amount](../classes/YooKassa-Model-Payment-Payment.md#property_income_amount) | | Сумма платежа, которую получит магазин | | public | [$incomeAmount](../classes/YooKassa-Model-Payment-Payment.md#property_incomeAmount) | | Сумма платежа, которую получит магазин | | public | [$invoice_details](../classes/YooKassa-Model-Payment-Payment.md#property_invoice_details) | | Данные о выставленном счете, в рамках которого проведен платеж | | public | [$invoiceDetails](../classes/YooKassa-Model-Payment-Payment.md#property_invoiceDetails) | | Данные о выставленном счете, в рамках которого проведен платеж | | public | [$merchant_customer_id](../classes/YooKassa-Model-Payment-Payment.md#property_merchant_customer_id) | | Идентификатор покупателя в вашей системе, например электронная почта или номер телефона | | public | [$merchantCustomerId](../classes/YooKassa-Model-Payment-Payment.md#property_merchantCustomerId) | | Идентификатор покупателя в вашей системе, например электронная почта или номер телефона | | public | [$metadata](../classes/YooKassa-Model-Payment-Payment.md#property_metadata) | | Метаданные платежа указанные мерчантом | | public | [$paid](../classes/YooKassa-Model-Payment-Payment.md#property_paid) | | Признак оплаты заказа | | public | [$payment_method](../classes/YooKassa-Model-Payment-Payment.md#property_payment_method) | | Способ проведения платежа | | public | [$paymentMethod](../classes/YooKassa-Model-Payment-Payment.md#property_paymentMethod) | | Способ проведения платежа | | public | [$receipt_registration](../classes/YooKassa-Model-Payment-Payment.md#property_receipt_registration) | | Состояние регистрации фискального чека | | public | [$receiptRegistration](../classes/YooKassa-Model-Payment-Payment.md#property_receiptRegistration) | | Состояние регистрации фискального чека | | public | [$recipient](../classes/YooKassa-Model-Payment-Payment.md#property_recipient) | | Получатель платежа | | public | [$refundable](../classes/YooKassa-Model-Payment-Payment.md#property_refundable) | | Возможность провести возврат по API | | public | [$refunded_amount](../classes/YooKassa-Model-Payment-Payment.md#property_refunded_amount) | | Сумма возвращенных средств платежа | | public | [$refundedAmount](../classes/YooKassa-Model-Payment-Payment.md#property_refundedAmount) | | Сумма возвращенных средств платежа | | public | [$status](../classes/YooKassa-Model-Payment-Payment.md#property_status) | | Текущее состояние платежа | | public | [$test](../classes/YooKassa-Model-Payment-Payment.md#property_test) | | Признак тестовой операции | | public | [$transfers](../classes/YooKassa-Model-Payment-Payment.md#property_transfers) | | Данные о распределении платежа между магазинами | | protected | [$_amount](../classes/YooKassa-Model-Payment-Payment.md#property__amount) | | | | protected | [$_authorization_details](../classes/YooKassa-Model-Payment-Payment.md#property__authorization_details) | | Данные об авторизации платежа | | protected | [$_cancellation_details](../classes/YooKassa-Model-Payment-Payment.md#property__cancellation_details) | | Комментарий к статусу canceled: кто отменил платеж и по какой причине | | protected | [$_captured_at](../classes/YooKassa-Model-Payment-Payment.md#property__captured_at) | | | | protected | [$_confirmation](../classes/YooKassa-Model-Payment-Payment.md#property__confirmation) | | | | protected | [$_created_at](../classes/YooKassa-Model-Payment-Payment.md#property__created_at) | | | | protected | [$_deal](../classes/YooKassa-Model-Payment-Payment.md#property__deal) | | | | protected | [$_description](../classes/YooKassa-Model-Payment-Payment.md#property__description) | | | | protected | [$_expires_at](../classes/YooKassa-Model-Payment-Payment.md#property__expires_at) | | Время, до которого можно бесплатно отменить или подтвердить платеж. В указанное время платеж в статусе `waiting_for_capture` будет автоматически отменен. | | protected | [$_id](../classes/YooKassa-Model-Payment-Payment.md#property__id) | | | | protected | [$_income_amount](../classes/YooKassa-Model-Payment-Payment.md#property__income_amount) | | | | protected | [$_invoice_details](../classes/YooKassa-Model-Payment-Payment.md#property__invoice_details) | | | | protected | [$_merchant_customer_id](../classes/YooKassa-Model-Payment-Payment.md#property__merchant_customer_id) | | | | protected | [$_metadata](../classes/YooKassa-Model-Payment-Payment.md#property__metadata) | | | | protected | [$_paid](../classes/YooKassa-Model-Payment-Payment.md#property__paid) | | | | protected | [$_payment_method](../classes/YooKassa-Model-Payment-Payment.md#property__payment_method) | | | | protected | [$_receipt_registration](../classes/YooKassa-Model-Payment-Payment.md#property__receipt_registration) | | | | protected | [$_recipient](../classes/YooKassa-Model-Payment-Payment.md#property__recipient) | | | | protected | [$_refundable](../classes/YooKassa-Model-Payment-Payment.md#property__refundable) | | | | protected | [$_refunded_amount](../classes/YooKassa-Model-Payment-Payment.md#property__refunded_amount) | | | | protected | [$_status](../classes/YooKassa-Model-Payment-Payment.md#property__status) | | | | protected | [$_test](../classes/YooKassa-Model-Payment-Payment.md#property__test) | | Признак тестовой операции. | | protected | [$_transfers](../classes/YooKassa-Model-Payment-Payment.md#property__transfers) | | | --- ### Methods | Visibility | Name | Flag | Summary | | ----------:| ---- | ---- | ------- | | public | [__construct()](../classes/YooKassa-Common-AbstractObject.md#method___construct) | | AbstractObject constructor. | | public | [__get()](../classes/YooKassa-Common-AbstractObject.md#method___get) | | Возвращает значение свойства. | | public | [__isset()](../classes/YooKassa-Common-AbstractObject.md#method___isset) | | Проверяет наличие свойства. | | public | [__set()](../classes/YooKassa-Common-AbstractObject.md#method___set) | | Устанавливает значение свойства. | | public | [__unset()](../classes/YooKassa-Common-AbstractObject.md#method___unset) | | Удаляет свойство. | | public | [fromArray()](../classes/YooKassa-Common-AbstractObject.md#method_fromArray) | | Устанавливает значения свойств текущего объекта из массива. | | public | [getAmount()](../classes/YooKassa-Model-Payment-Payment.md#method_getAmount) | | Возвращает сумму. | | public | [getAuthorizationDetails()](../classes/YooKassa-Model-Payment-Payment.md#method_getAuthorizationDetails) | | Возвращает данные об авторизации платежа. | | public | [getCancellationDetails()](../classes/YooKassa-Model-Payment-Payment.md#method_getCancellationDetails) | | Возвращает комментарий к статусу canceled: кто отменил платеж и по какой причине. | | public | [getCapturedAt()](../classes/YooKassa-Model-Payment-Payment.md#method_getCapturedAt) | | Возвращает время подтверждения платежа магазином или null, если время не задано. | | public | [getConfirmation()](../classes/YooKassa-Model-Payment-Payment.md#method_getConfirmation) | | Возвращает способ подтверждения платежа. | | public | [getCreatedAt()](../classes/YooKassa-Model-Payment-Payment.md#method_getCreatedAt) | | Возвращает время создания заказа. | | public | [getDeal()](../classes/YooKassa-Model-Payment-Payment.md#method_getDeal) | | Возвращает данные о сделке, в составе которой проходит платеж. | | public | [getDescription()](../classes/YooKassa-Model-Payment-Payment.md#method_getDescription) | | Возвращает описание транзакции | | public | [getExpiresAt()](../classes/YooKassa-Model-Payment-Payment.md#method_getExpiresAt) | | Возвращает время до которого можно бесплатно отменить или подтвердить платеж, или null, если оно не задано. | | public | [getId()](../classes/YooKassa-Model-Payment-Payment.md#method_getId) | | Возвращает идентификатор платежа. | | public | [getIncomeAmount()](../classes/YooKassa-Model-Payment-Payment.md#method_getIncomeAmount) | | Возвращает сумму платежа, которую получит магазин, значение `amount` за вычетом комиссии ЮKassa. | | public | [getInvoiceDetails()](../classes/YooKassa-Model-Payment-Payment.md#method_getInvoiceDetails) | | Возвращает invoice_details. | | public | [getMerchantCustomerId()](../classes/YooKassa-Model-Payment-Payment.md#method_getMerchantCustomerId) | | Возвращает идентификатор покупателя в вашей системе. | | public | [getMetadata()](../classes/YooKassa-Model-Payment-Payment.md#method_getMetadata) | | Возвращает метаданные платежа установленные мерчантом | | public | [getPaid()](../classes/YooKassa-Model-Payment-Payment.md#method_getPaid) | | Проверяет, был ли уже оплачен заказ. | | public | [getPaymentMethod()](../classes/YooKassa-Model-Payment-Payment.md#method_getPaymentMethod) | | Возвращает используемый способ проведения платежа. | | public | [getReceiptRegistration()](../classes/YooKassa-Model-Payment-Payment.md#method_getReceiptRegistration) | | Возвращает состояние регистрации фискального чека. | | public | [getRecipient()](../classes/YooKassa-Model-Payment-Payment.md#method_getRecipient) | | Возвращает получателя платежа. | | public | [getRefundable()](../classes/YooKassa-Model-Payment-Payment.md#method_getRefundable) | | Проверяет возможность провести возврат по API. | | public | [getRefundedAmount()](../classes/YooKassa-Model-Payment-Payment.md#method_getRefundedAmount) | | Возвращает сумму возвращенных средств. | | public | [getStatus()](../classes/YooKassa-Model-Payment-Payment.md#method_getStatus) | | Возвращает состояние платежа. | | public | [getTest()](../classes/YooKassa-Model-Payment-Payment.md#method_getTest) | | Возвращает признак тестовой операции. | | public | [getTransfers()](../classes/YooKassa-Model-Payment-Payment.md#method_getTransfers) | | Возвращает массив распределения денег между магазинами. | | public | [getValidator()](../classes/YooKassa-Common-AbstractObject.md#method_getValidator) | | | | public | [jsonSerialize()](../classes/YooKassa-Common-AbstractObject.md#method_jsonSerialize) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации. | | public | [offsetExists()](../classes/YooKassa-Common-AbstractObject.md#method_offsetExists) | | Проверяет наличие свойства. | | public | [offsetGet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetGet) | | Возвращает значение свойства. | | public | [offsetSet()](../classes/YooKassa-Common-AbstractObject.md#method_offsetSet) | | Устанавливает значение свойства. | | public | [offsetUnset()](../classes/YooKassa-Common-AbstractObject.md#method_offsetUnset) | | Удаляет свойство. | | public | [setAmount()](../classes/YooKassa-Model-Payment-Payment.md#method_setAmount) | | Устанавливает сумму платежа. | | public | [setAuthorizationDetails()](../classes/YooKassa-Model-Payment-Payment.md#method_setAuthorizationDetails) | | Устанавливает данные об авторизации платежа. | | public | [setCancellationDetails()](../classes/YooKassa-Model-Payment-Payment.md#method_setCancellationDetails) | | Устанавливает комментарий к статусу canceled: кто отменил платеж и по какой причине. | | public | [setCapturedAt()](../classes/YooKassa-Model-Payment-Payment.md#method_setCapturedAt) | | Устанавливает время подтверждения платежа магазином | | public | [setConfirmation()](../classes/YooKassa-Model-Payment-Payment.md#method_setConfirmation) | | Устанавливает способ подтверждения платежа. | | public | [setCreatedAt()](../classes/YooKassa-Model-Payment-Payment.md#method_setCreatedAt) | | Устанавливает время создания заказа. | | public | [setDeal()](../classes/YooKassa-Model-Payment-Payment.md#method_setDeal) | | Устанавливает данные о сделке, в составе которой проходит платеж. | | public | [setDescription()](../classes/YooKassa-Model-Payment-Payment.md#method_setDescription) | | Устанавливает описание транзакции | | public | [setExpiresAt()](../classes/YooKassa-Model-Payment-Payment.md#method_setExpiresAt) | | Устанавливает время до которого можно бесплатно отменить или подтвердить платеж. | | public | [setId()](../classes/YooKassa-Model-Payment-Payment.md#method_setId) | | Устанавливает идентификатор платежа. | | public | [setIncomeAmount()](../classes/YooKassa-Model-Payment-Payment.md#method_setIncomeAmount) | | Устанавливает сумму платежа, которую получит магазин, значение `amount` за вычетом комиссии ЮKassa | | public | [setInvoiceDetails()](../classes/YooKassa-Model-Payment-Payment.md#method_setInvoiceDetails) | | Устанавливает invoice_details. | | public | [setMerchantCustomerId()](../classes/YooKassa-Model-Payment-Payment.md#method_setMerchantCustomerId) | | Устанавливает идентификатор покупателя в вашей системе. | | public | [setMetadata()](../classes/YooKassa-Model-Payment-Payment.md#method_setMetadata) | | Устанавливает метаданные платежа. | | public | [setPaid()](../classes/YooKassa-Model-Payment-Payment.md#method_setPaid) | | Устанавливает флаг оплаты заказа. | | public | [setPaymentMethod()](../classes/YooKassa-Model-Payment-Payment.md#method_setPaymentMethod) | | Устанавливает используемый способ проведения платежа. | | public | [setReceiptRegistration()](../classes/YooKassa-Model-Payment-Payment.md#method_setReceiptRegistration) | | Устанавливает состояние регистрации фискального чека | | public | [setRecipient()](../classes/YooKassa-Model-Payment-Payment.md#method_setRecipient) | | Устанавливает получателя платежа. | | public | [setRefundable()](../classes/YooKassa-Model-Payment-Payment.md#method_setRefundable) | | Устанавливает возможность провести возврат по API. | | public | [setRefundedAmount()](../classes/YooKassa-Model-Payment-Payment.md#method_setRefundedAmount) | | Устанавливает сумму возвращенных средств. | | public | [setStatus()](../classes/YooKassa-Model-Payment-Payment.md#method_setStatus) | | Устанавливает статус платежа | | public | [setTest()](../classes/YooKassa-Model-Payment-Payment.md#method_setTest) | | Устанавливает признак тестовой операции. | | public | [setTransfers()](../classes/YooKassa-Model-Payment-Payment.md#method_setTransfers) | | Устанавливает массив распределения денег между магазинами. | | public | [toArray()](../classes/YooKassa-Common-AbstractObject.md#method_toArray) | | Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize(). | | protected | [getUnknownProperties()](../classes/YooKassa-Common-AbstractObject.md#method_getUnknownProperties) | | Возвращает массив свойств которые не существуют, но были заданы у объекта. | | protected | [validatePropertyValue()](../classes/YooKassa-Common-AbstractObject.md#method_validatePropertyValue) | | | --- ### Details * File: [lib/Request/Payments/CreateCaptureResponse.php](../../lib/Request/Payments/CreateCaptureResponse.php) * Package: YooKassa\Request * Class Hierarchy: * [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) * [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) * [\YooKassa\Request\Payments\AbstractPaymentResponse](../classes/YooKassa-Request-Payments-AbstractPaymentResponse.md) * \YooKassa\Request\Payments\CreateCaptureResponse * See Also: * [](https://yookassa.ru/developers/api) --- ### Tags | Tag | Version | Description | | --- | ------- | ----------- | | category | | Class | | author | | cms@yoomoney.ru | --- ## Properties #### public $amount : \YooKassa\Model\AmountInterface --- ***Description*** Сумма заказа **Type:** AmountInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $authorization_details : \YooKassa\Model\Payment\AuthorizationDetailsInterface --- ***Description*** Данные об авторизации платежа **Type:** AuthorizationDetailsInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $authorizationDetails : \YooKassa\Model\Payment\AuthorizationDetailsInterface --- ***Description*** Данные об авторизации платежа **Type:** AuthorizationDetailsInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $cancellation_details : \YooKassa\Model\CancellationDetailsInterface --- ***Description*** Комментарий к отмене платежа **Type:** CancellationDetailsInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $cancellationDetails : \YooKassa\Model\CancellationDetailsInterface --- ***Description*** Комментарий к отмене платежа **Type:** CancellationDetailsInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $captured_at : \DateTime --- ***Description*** Время подтверждения платежа магазином **Type:** \DateTime **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $capturedAt : \DateTime --- ***Description*** Время подтверждения платежа магазином **Type:** \DateTime **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $confirmation : \YooKassa\Model\Payment\Confirmation\AbstractConfirmation --- ***Description*** Способ подтверждения платежа **Type:** AbstractConfirmation **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $created_at : \DateTime --- ***Description*** Время создания заказа **Type:** \DateTime **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $createdAt : \DateTime --- ***Description*** Время создания заказа **Type:** \DateTime **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $deal : \YooKassa\Model\Deal\PaymentDealInfo --- ***Description*** Данные о сделке, в составе которой проходит платеж **Type:** PaymentDealInfo **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $description : string --- ***Description*** Описание транзакции **Type:** string **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $expires_at : \DateTime --- ***Description*** Время, до которого можно бесплатно отменить или подтвердить платеж **Type:** \DateTime **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $expiresAt : \DateTime --- ***Description*** Время, до которого можно бесплатно отменить или подтвердить платеж **Type:** \DateTime **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $id : string --- ***Description*** Идентификатор платежа **Type:** string **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $income_amount : \YooKassa\Model\AmountInterface --- ***Description*** Сумма платежа, которую получит магазин **Type:** AmountInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $incomeAmount : \YooKassa\Model\AmountInterface --- ***Description*** Сумма платежа, которую получит магазин **Type:** AmountInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $invoice_details : \YooKassa\Model\Payment\PaymentInvoiceDetails --- ***Description*** Данные о выставленном счете, в рамках которого проведен платеж **Type:** PaymentInvoiceDetails **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $invoiceDetails : \YooKassa\Model\Payment\PaymentInvoiceDetails --- ***Description*** Данные о выставленном счете, в рамках которого проведен платеж **Type:** PaymentInvoiceDetails **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $merchant_customer_id : string --- ***Description*** Идентификатор покупателя в вашей системе, например электронная почта или номер телефона **Type:** string **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $merchantCustomerId : string --- ***Description*** Идентификатор покупателя в вашей системе, например электронная почта или номер телефона **Type:** string **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $metadata : \YooKassa\Model\Metadata --- ***Description*** Метаданные платежа указанные мерчантом **Type:** Metadata **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $paid : bool --- ***Description*** Признак оплаты заказа **Type:** bool **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $payment_method : \YooKassa\Model\Payment\PaymentMethod\AbstractPaymentMethod --- ***Description*** Способ проведения платежа **Type:** AbstractPaymentMethod **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $paymentMethod : \YooKassa\Model\Payment\PaymentMethod\AbstractPaymentMethod --- ***Description*** Способ проведения платежа **Type:** AbstractPaymentMethod **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $receipt_registration : string --- ***Description*** Состояние регистрации фискального чека **Type:** string **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $receiptRegistration : string --- ***Description*** Состояние регистрации фискального чека **Type:** string **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $recipient : \YooKassa\Model\Payment\RecipientInterface --- ***Description*** Получатель платежа **Type:** RecipientInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $refundable : bool --- ***Description*** Возможность провести возврат по API **Type:** bool **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $refunded_amount : \YooKassa\Model\AmountInterface --- ***Description*** Сумма возвращенных средств платежа **Type:** AmountInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $refundedAmount : \YooKassa\Model\AmountInterface --- ***Description*** Сумма возвращенных средств платежа **Type:** AmountInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $status : string --- ***Description*** Текущее состояние платежа **Type:** string **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $test : bool --- ***Description*** Признак тестовой операции **Type:** bool **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### public $transfers : \YooKassa\Common\ListObjectInterface|\YooKassa\Model\Payment\TransferInterface[] --- ***Description*** Данные о распределении платежа между магазинами **Type:** TransferInterface[] **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_amount : ?\YooKassa\Model\AmountInterface --- **Type:** AmountInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_authorization_details : ?\YooKassa\Model\Payment\AuthorizationDetailsInterface --- **Summary** Данные об авторизации платежа **Type:** AuthorizationDetailsInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_cancellation_details : ?\YooKassa\Model\CancellationDetailsInterface --- **Summary** Комментарий к статусу canceled: кто отменил платеж и по какой причине **Type:** CancellationDetailsInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_captured_at : ?\DateTime --- **Type:** DateTime Время подтверждения платежа магазином **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_confirmation : ?\YooKassa\Model\Payment\Confirmation\AbstractConfirmation --- **Type:** AbstractConfirmation Способ подтверждения платежа **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_created_at : ?\DateTime --- **Type:** DateTime Время создания заказа **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_deal : ?\YooKassa\Model\Deal\PaymentDealInfo --- **Type:** PaymentDealInfo Данные о сделке, в составе которой проходит платеж. Необходимо передавать, если вы проводите Безопасную сделку **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_description : ?string --- **Type:** ?string Описание платежа **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_expires_at : ?\DateTime --- **Summary** Время, до которого можно бесплатно отменить или подтвердить платеж. В указанное время платеж в статусе `waiting_for_capture` будет автоматически отменен. **Type:** DateTime Время, до которого можно бесплатно отменить или подтвердить платеж **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_id : ?string --- **Type:** ?string Идентификатор платежа **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_income_amount : ?\YooKassa\Model\AmountInterface --- **Type:** AmountInterface **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_invoice_details : ?\YooKassa\Model\Payment\PaymentInvoiceDetails --- **Type:** PaymentInvoiceDetails **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_merchant_customer_id : ?string --- **Type:** ?string Идентификатор покупателя в вашей системе, например электронная почта или номер телефона. Не более 200 символов. Присутствует, если вы хотите запомнить банковскую карту и отобразить ее при повторном платеже в виджете ЮKassa **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_metadata : ?\YooKassa\Model\Metadata --- **Type:** Metadata Метаданные платежа указанные мерчантом **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_paid : bool --- **Type:** bool Признак оплаты заказа **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_payment_method : ?\YooKassa\Model\Payment\PaymentMethod\AbstractPaymentMethod --- **Type:** AbstractPaymentMethod Способ проведения платежа **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_receipt_registration : ?string --- **Type:** ?string Состояние регистрации фискального чека **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_recipient : ?\YooKassa\Model\Payment\RecipientInterface --- **Type:** RecipientInterface Получатель платежа **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_refundable : bool --- **Type:** bool Возможность провести возврат по API **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_refunded_amount : ?\YooKassa\Model\AmountInterface --- **Type:** AmountInterface Сумма возвращенных средств платежа **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_status : ?string --- **Type:** ?string Текущее состояние платежа **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_test : bool --- **Summary** Признак тестовой операции. **Type:** bool **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) #### protected $_transfers : ?\YooKassa\Common\ListObject --- **Type:** ListObject Данные о распределении платежа между магазинами **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) --- ## Methods #### public __construct() : mixed ```php public __construct(array|null $data = []) : mixed ``` **Summary** AbstractObject constructor. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | array OR null | data | | **Returns:** mixed - #### public __get() : mixed ```php public __get(string $propertyName) : mixed ``` **Summary** Возвращает значение свойства. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | propertyName | Имя свойства | **Returns:** mixed - Значение свойства #### public __isset() : bool ```php public __isset(string $propertyName) : bool ``` **Summary** Проверяет наличие свойства. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | propertyName | Имя проверяемого свойства | **Returns:** bool - True если свойство имеется, false если нет #### public __set() : void ```php public __set(string $propertyName, mixed $value) : void ``` **Summary** Устанавливает значение свойства. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | propertyName | Имя свойства | | mixed | value | Значение свойства | **Returns:** void - #### public __unset() : void ```php public __unset(string $propertyName) : void ``` **Summary** Удаляет свойство. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | propertyName | Имя удаляемого свойства | **Returns:** void - #### public fromArray() : void ```php public fromArray(array|\Traversable $sourceArray) : void ``` **Summary** Устанавливает значения свойств текущего объекта из массива. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | array OR \Traversable | sourceArray | Ассоциативный массив с настройками | **Returns:** void - #### public getAmount() : \YooKassa\Model\AmountInterface|null ```php public getAmount() : \YooKassa\Model\AmountInterface|null ``` **Summary** Возвращает сумму. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** \YooKassa\Model\AmountInterface|null - Сумма платежа #### public getAuthorizationDetails() : null|\YooKassa\Model\Payment\AuthorizationDetailsInterface ```php public getAuthorizationDetails() : null|\YooKassa\Model\Payment\AuthorizationDetailsInterface ``` **Summary** Возвращает данные об авторизации платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** null|\YooKassa\Model\Payment\AuthorizationDetailsInterface - Данные об авторизации платежа #### public getCancellationDetails() : null|\YooKassa\Model\CancellationDetailsInterface ```php public getCancellationDetails() : null|\YooKassa\Model\CancellationDetailsInterface ``` **Summary** Возвращает комментарий к статусу canceled: кто отменил платеж и по какой причине. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** null|\YooKassa\Model\CancellationDetailsInterface - Комментарий к статусу canceled #### public getCapturedAt() : null|\DateTime ```php public getCapturedAt() : null|\DateTime ``` **Summary** Возвращает время подтверждения платежа магазином или null, если время не задано. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** null|\DateTime - Время подтверждения платежа магазином #### public getConfirmation() : \YooKassa\Model\Payment\Confirmation\AbstractConfirmation|null ```php public getConfirmation() : \YooKassa\Model\Payment\Confirmation\AbstractConfirmation|null ``` **Summary** Возвращает способ подтверждения платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** \YooKassa\Model\Payment\Confirmation\AbstractConfirmation|null - Способ подтверждения платежа #### public getCreatedAt() : \DateTime|null ```php public getCreatedAt() : \DateTime|null ``` **Summary** Возвращает время создания заказа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** \DateTime|null - Время создания заказа #### public getDeal() : \YooKassa\Model\Deal\PaymentDealInfo|null ```php public getDeal() : \YooKassa\Model\Deal\PaymentDealInfo|null ``` **Summary** Возвращает данные о сделке, в составе которой проходит платеж. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** \YooKassa\Model\Deal\PaymentDealInfo|null - Данные о сделке, в составе которой проходит платеж #### public getDescription() : string|null ```php public getDescription() : string|null ``` **Summary** Возвращает описание транзакции **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** string|null - #### public getExpiresAt() : null|\DateTime ```php public getExpiresAt() : null|\DateTime ``` **Summary** Возвращает время до которого можно бесплатно отменить или подтвердить платеж, или null, если оно не задано. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** null|\DateTime - Время, до которого можно бесплатно отменить или подтвердить платеж #### public getId() : string|null ```php public getId() : string|null ``` **Summary** Возвращает идентификатор платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** string|null - Идентификатор платежа #### public getIncomeAmount() : \YooKassa\Model\AmountInterface|null ```php public getIncomeAmount() : \YooKassa\Model\AmountInterface|null ``` **Summary** Возвращает сумму платежа, которую получит магазин, значение `amount` за вычетом комиссии ЮKassa. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** \YooKassa\Model\AmountInterface|null - Сумма платежа, которую получит магазин #### public getInvoiceDetails() : \YooKassa\Model\Payment\PaymentInvoiceDetails|null ```php public getInvoiceDetails() : \YooKassa\Model\Payment\PaymentInvoiceDetails|null ``` **Summary** Возвращает invoice_details. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** \YooKassa\Model\Payment\PaymentInvoiceDetails|null - #### public getMerchantCustomerId() : string|null ```php public getMerchantCustomerId() : string|null ``` **Summary** Возвращает идентификатор покупателя в вашей системе. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** string|null - Идентификатор покупателя в вашей системе #### public getMetadata() : \YooKassa\Model\Metadata|null ```php public getMetadata() : \YooKassa\Model\Metadata|null ``` **Summary** Возвращает метаданные платежа установленные мерчантом **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** \YooKassa\Model\Metadata|null - Метаданные платежа указанные мерчантом #### public getPaid() : bool ```php public getPaid() : bool ``` **Summary** Проверяет, был ли уже оплачен заказ. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** bool - Признак оплаты заказа, true если заказ оплачен, false если нет #### public getPaymentMethod() : \YooKassa\Model\Payment\PaymentMethod\AbstractPaymentMethod|null ```php public getPaymentMethod() : \YooKassa\Model\Payment\PaymentMethod\AbstractPaymentMethod|null ``` **Summary** Возвращает используемый способ проведения платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** \YooKassa\Model\Payment\PaymentMethod\AbstractPaymentMethod|null - Способ проведения платежа #### public getReceiptRegistration() : string|null ```php public getReceiptRegistration() : string|null ``` **Summary** Возвращает состояние регистрации фискального чека. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** string|null - Состояние регистрации фискального чека #### public getRecipient() : null|\YooKassa\Model\Payment\RecipientInterface ```php public getRecipient() : null|\YooKassa\Model\Payment\RecipientInterface ``` **Summary** Возвращает получателя платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** null|\YooKassa\Model\Payment\RecipientInterface - Получатель платежа или null, если получатель не задан #### public getRefundable() : bool ```php public getRefundable() : bool ``` **Summary** Проверяет возможность провести возврат по API. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** bool - Возможность провести возврат по API, true если есть, false если нет #### public getRefundedAmount() : \YooKassa\Model\AmountInterface|null ```php public getRefundedAmount() : \YooKassa\Model\AmountInterface|null ``` **Summary** Возвращает сумму возвращенных средств. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** \YooKassa\Model\AmountInterface|null - Сумма возвращенных средств платежа #### public getStatus() : string|null ```php public getStatus() : string|null ``` **Summary** Возвращает состояние платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** string|null - Текущее состояние платежа #### public getTest() : bool ```php public getTest() : bool ``` **Summary** Возвращает признак тестовой операции. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** bool - Признак тестовой операции #### public getTransfers() : \YooKassa\Model\Payment\TransferInterface[]|\YooKassa\Common\ListObjectInterface ```php public getTransfers() : \YooKassa\Model\Payment\TransferInterface[]|\YooKassa\Common\ListObjectInterface ``` **Summary** Возвращает массив распределения денег между магазинами. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) **Returns:** \YooKassa\Model\Payment\TransferInterface[]|\YooKassa\Common\ListObjectInterface - Массив распределения денег #### public getValidator() : \YooKassa\Validator\Validator ```php public getValidator() : \YooKassa\Validator\Validator ``` **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) **Returns:** \YooKassa\Validator\Validator - #### public jsonSerialize() : array ```php public jsonSerialize() : array ``` **Summary** Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) **Returns:** array - Ассоциативный массив со свойствами текущего объекта #### public offsetExists() : bool ```php public offsetExists(string $offset) : bool ``` **Summary** Проверяет наличие свойства. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | offset | Имя проверяемого свойства | **Returns:** bool - True если свойство имеется, false если нет #### public offsetGet() : mixed ```php public offsetGet(string $offset) : mixed ``` **Summary** Возвращает значение свойства. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | offset | Имя свойства | **Returns:** mixed - Значение свойства #### public offsetSet() : void ```php public offsetSet(string $offset, mixed $value) : void ``` **Summary** Устанавливает значение свойства. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | offset | Имя свойства | | mixed | value | Значение свойства | **Returns:** void - #### public offsetUnset() : void ```php public offsetUnset(string $offset) : void ``` **Summary** Удаляет свойство. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | offset | Имя удаляемого свойства | **Returns:** void - #### public setAmount() : self ```php public setAmount(\YooKassa\Model\AmountInterface|array|null $amount = null) : self ``` **Summary** Устанавливает сумму платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\AmountInterface OR array OR null | amount | Сумма платежа | **Returns:** self - #### public setAuthorizationDetails() : self ```php public setAuthorizationDetails(\YooKassa\Model\Payment\AuthorizationDetailsInterface|array|null $authorization_details = null) : self ``` **Summary** Устанавливает данные об авторизации платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\Payment\AuthorizationDetailsInterface OR array OR null | authorization_details | Данные об авторизации платежа | **Returns:** self - #### public setCancellationDetails() : self ```php public setCancellationDetails(\YooKassa\Model\CancellationDetailsInterface|array|null $cancellation_details = null) : self ``` **Summary** Устанавливает комментарий к статусу canceled: кто отменил платеж и по какой причине. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\CancellationDetailsInterface OR array OR null | cancellation_details | Комментарий к статусу canceled | **Returns:** self - #### public setCapturedAt() : self ```php public setCapturedAt(\DateTime|string|null $captured_at = null) : self ``` **Summary** Устанавливает время подтверждения платежа магазином **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \DateTime OR string OR null | captured_at | Время подтверждения платежа магазином | **Returns:** self - #### public setConfirmation() : self ```php public setConfirmation(\YooKassa\Model\Payment\Confirmation\AbstractConfirmation|array|null $confirmation = null) : self ``` **Summary** Устанавливает способ подтверждения платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\Payment\Confirmation\AbstractConfirmation OR array OR null | confirmation | Способ подтверждения платежа | **Returns:** self - #### public setCreatedAt() : self ```php public setCreatedAt(\DateTime|string|null $created_at = null) : self ``` **Summary** Устанавливает время создания заказа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \DateTime OR string OR null | created_at | Время создания заказа | **Returns:** self - #### public setDeal() : self ```php public setDeal(null|array|\YooKassa\Model\Deal\PaymentDealInfo $deal = null) : self ``` **Summary** Устанавливает данные о сделке, в составе которой проходит платеж. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | null OR array OR \YooKassa\Model\Deal\PaymentDealInfo | deal | Данные о сделке, в составе которой проходит платеж | **Returns:** self - #### public setDescription() : self ```php public setDescription(string|null $description = null) : self ``` **Summary** Устанавливает описание транзакции **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | description | | **Returns:** self - #### public setExpiresAt() : self ```php public setExpiresAt(\DateTime|string|null $expires_at = null) : self ``` **Summary** Устанавливает время до которого можно бесплатно отменить или подтвердить платеж. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \DateTime OR string OR null | expires_at | Время, до которого можно бесплатно отменить или подтвердить платеж | **Returns:** self - #### public setId() : self ```php public setId(string|null $id = null) : self ``` **Summary** Устанавливает идентификатор платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | id | Идентификатор платежа | **Returns:** self - #### public setIncomeAmount() : self ```php public setIncomeAmount(\YooKassa\Model\AmountInterface|array|null $income_amount = null) : self ``` **Summary** Устанавливает сумму платежа, которую получит магазин, значение `amount` за вычетом комиссии ЮKassa **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\AmountInterface OR array OR null | income_amount | | **Returns:** self - #### public setInvoiceDetails() : self ```php public setInvoiceDetails(\YooKassa\Model\Payment\PaymentInvoiceDetails|array|null $invoice_details = null) : self ``` **Summary** Устанавливает invoice_details. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\Payment\PaymentInvoiceDetails OR array OR null | invoice_details | | **Returns:** self - #### public setMerchantCustomerId() : self ```php public setMerchantCustomerId(string|null $merchant_customer_id = null) : self ``` **Summary** Устанавливает идентификатор покупателя в вашей системе. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | merchant_customer_id | Идентификатор покупателя в вашей системе, например электронная почта или номер телефона. Не более 200 символов | **Returns:** self - #### public setMetadata() : self ```php public setMetadata(\YooKassa\Model\Metadata|array|null $metadata = null) : self ``` **Summary** Устанавливает метаданные платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\Metadata OR array OR null | metadata | Метаданные платежа указанные мерчантом | **Returns:** self - #### public setPaid() : self ```php public setPaid(bool $paid) : self ``` **Summary** Устанавливает флаг оплаты заказа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | bool | paid | Признак оплаты заказа | **Returns:** self - #### public setPaymentMethod() : self ```php public setPaymentMethod(\YooKassa\Model\Payment\PaymentMethod\AbstractPaymentMethod|array|null $payment_method) : self ``` **Summary** Устанавливает используемый способ проведения платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\Payment\PaymentMethod\AbstractPaymentMethod OR array OR null | payment_method | Способ проведения платежа | **Returns:** self - #### public setReceiptRegistration() : self ```php public setReceiptRegistration(string|null $receipt_registration = null) : self ``` **Summary** Устанавливает состояние регистрации фискального чека **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | receipt_registration | Состояние регистрации фискального чека | **Returns:** self - #### public setRecipient() : self ```php public setRecipient(\YooKassa\Model\Payment\RecipientInterface|array|null $recipient = null) : self ``` **Summary** Устанавливает получателя платежа. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\Payment\RecipientInterface OR array OR null | recipient | Объект с информацией о получателе платежа | **Returns:** self - #### public setRefundable() : self ```php public setRefundable(bool $refundable) : self ``` **Summary** Устанавливает возможность провести возврат по API. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | bool | refundable | Возможность провести возврат по API | **Returns:** self - #### public setRefundedAmount() : self ```php public setRefundedAmount(\YooKassa\Model\AmountInterface|array|null $refunded_amount = null) : self ``` **Summary** Устанавливает сумму возвращенных средств. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\AmountInterface OR array OR null | refunded_amount | Сумма возвращенных средств платежа | **Returns:** self - #### public setStatus() : self ```php public setStatus(string|null $status = null) : self ``` **Summary** Устанавливает статус платежа **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR null | status | Статус платежа | **Returns:** self - #### public setTest() : self ```php public setTest(bool $test = null) : self ``` **Summary** Устанавливает признак тестовой операции. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | bool | test | Признак тестовой операции | **Returns:** self - #### public setTransfers() : self ```php public setTransfers(\YooKassa\Common\ListObjectInterface|array|null $transfers = null) : self ``` **Summary** Устанавливает массив распределения денег между магазинами. **Details:** * Inherited From: [\YooKassa\Model\Payment\Payment](../classes/YooKassa-Model-Payment-Payment.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Common\ListObjectInterface OR array OR null | transfers | Массив распределения денег | **Returns:** self - #### public toArray() : array ```php public toArray() : array ``` **Summary** Возвращает ассоциативный массив со свойствами текущего объекта для его дальнейшей JSON сериализации Является алиасом метода AbstractObject::jsonSerialize(). **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) **Returns:** array - Ассоциативный массив со свойствами текущего объекта #### protected getUnknownProperties() : array ```php protected getUnknownProperties() : array ``` **Summary** Возвращает массив свойств которые не существуют, но были заданы у объекта. **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) **Returns:** array - Ассоциативный массив с не существующими у текущего объекта свойствами #### protected validatePropertyValue() : mixed ```php protected validatePropertyValue(string $propertyName, mixed $propertyValue) : mixed ``` **Details:** * Inherited From: [\YooKassa\Common\AbstractObject](../classes/YooKassa-Common-AbstractObject.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | propertyName | | | mixed | propertyValue | | **Returns:** mixed - --- ### Top Namespaces * [\YooKassa](../namespaces/yookassa.md) --- ### Reports * [Errors - 0](../reports/errors.md) * [Markers - 0](../reports/markers.md) * [Deprecated - 40](../reports/deprecated.md) --- This document was automatically generated from source code comments on 2025-09-04 using [phpDocumentor](http://www.phpdoc.org/) © 2025 YooMoney