# [YooKassa API SDK](../home.md) # Interface: CreatePaymentRequestInterface ### Namespace: [\YooKassa\Request\Payments](../namespaces/yookassa-request-payments.md) --- **Summary:** Interface CreatePaymentRequestInterface --- ### Constants * No constants found --- ### Methods | Visibility | Name | Flag | Summary | | ----------:| ---- | ---- | ------- | | public | [getAirline()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getAirline) | | Возвращает данные длинной записи | | public | [getAmount()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getAmount) | | Возвращает сумму заказа | | public | [getCapture()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getCapture) | | Возвращает флаг автоматического принятия поступившей оплаты | | public | [getClientIp()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getClientIp) | | Возвращает IPv4 или IPv6-адрес покупателя | | public | [getConfirmation()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getConfirmation) | | Возвращает способ подтверждения платежа | | public | [getDeal()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getDeal) | | Возвращает данные о сделке, в составе которой проходит платеж | | public | [getDescription()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getDescription) | | Возвращает описание транзакции | | public | [getFraudData()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getFraudData) | | Возвращает информацию для проверки операции на мошенничество | | public | [getMerchantCustomerId()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getMerchantCustomerId) | | Возвращает идентификатор покупателя в вашей системе | | public | [getMetadata()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getMetadata) | | Возвращает данные оплаты установленные мерчантом | | public | [getPaymentMethodData()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getPaymentMethodData) | | Возвращает данные для создания метода оплаты | | public | [getPaymentMethodId()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getPaymentMethodId) | | Устанавливает идентификатор записи платёжных данных покупателя | | public | [getPaymentToken()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getPaymentToken) | | Возвращает одноразовый токен для проведения оплаты | | public | [getReceipt()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getReceipt) | | Возвращает чек, если он есть | | public | [getRecipient()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getRecipient) | | Возвращает объект получателя платежа | | public | [getSavePaymentMethod()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getSavePaymentMethod) | | Возвращает флаг сохранения платёжных данных | | public | [getTransfers()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_getTransfers) | | Возвращает данные о распределении денег — сколько и в какой магазин нужно перевести. | | public | [hasAirline()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasAirline) | | Проверяет, были ли установлены данные длинной записи | | public | [hasCapture()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasCapture) | | Проверяет, был ли установлен флаг автоматического приняти поступившей оплаты | | public | [hasClientIp()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasClientIp) | | Проверяет, был ли установлен IPv4 или IPv6-адрес покупателя | | public | [hasConfirmation()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasConfirmation) | | Проверяет, был ли установлен способ подтверждения платежа | | public | [hasDeal()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasDeal) | | Проверяет, были ли установлены данные о сделке | | public | [hasDescription()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasDescription) | | Проверяет наличие описания транзакции в создаваемом платеже | | public | [hasFraudData()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasFraudData) | | Проверяет, была ли установлена информация для проверки операции на мошенничество | | public | [hasMerchantCustomerId()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasMerchantCustomerId) | | Проверяет, был ли установлен идентификатор покупателя в вашей системе | | public | [hasMetadata()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasMetadata) | | Проверяет, были ли установлены метаданные заказа | | public | [hasPaymentMethodData()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasPaymentMethodData) | | Проверяет установлен ли объект с методом оплаты | | public | [hasPaymentMethodId()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasPaymentMethodId) | | Проверяет наличие идентификатора записи о платёжных данных покупателя | | public | [hasPaymentToken()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasPaymentToken) | | Проверяет наличие одноразового токена для проведения оплаты | | public | [hasReceipt()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasReceipt) | | Проверяет наличие чека в создаваемом платеже | | public | [hasRecipient()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasRecipient) | | Проверяет наличие получателя платежа в запросе | | public | [hasSavePaymentMethod()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasSavePaymentMethod) | | Проверяет, был ли установлен флаг сохранения платёжных данных | | public | [hasTransfers()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_hasTransfers) | | Проверяет наличие данных о распределении денег | | public | [setAirline()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setAirline) | | Устанавливает данные авиабилетов | | public | [setCapture()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setCapture) | | Устанавливает флаг автоматического принятия поступившей оплаты | | public | [setClientIp()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setClientIp) | | Устанавливает IP адрес покупателя | | public | [setConfirmation()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setConfirmation) | | Устанавливает способ подтверждения платежа | | public | [setDeal()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setDeal) | | Устанавливает данные о сделке, в составе которой проходит платеж. | | public | [setDescription()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setDescription) | | Устанавливает описание транзакции | | public | [setFraudData()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setFraudData) | | Устанавливает информацию для проверки операции на мошенничество | | public | [setMerchantCustomerId()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setMerchantCustomerId) | | Устанавливает идентификатор покупателя в вашей системе | | public | [setMetadata()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setMetadata) | | Устанавливает метаданные, привязанные к платежу | | public | [setPaymentMethodData()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setPaymentMethodData) | | Устанавливает объект с информацией для создания метода оплаты | | public | [setPaymentMethodId()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setPaymentMethodId) | | Устанавливает идентификатор записи о сохранённых данных покупателя | | public | [setPaymentToken()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setPaymentToken) | | Устанавливает одноразовый токен для проведения оплаты, сформированный YooKassa JS widget | | public | [setRecipient()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setRecipient) | | Устанавливает объект с информацией о получателе платежа | | public | [setSavePaymentMethod()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setSavePaymentMethod) | | Устанавливает флаг сохранения платёжных данных. Значение true инициирует создание многоразового payment_method. | | public | [setTransfers()](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md#method_setTransfers) | | Устанавливает данные о распределении денег — сколько и в какой магазин нужно перевести. | --- ### Details * File: [lib/Request/Payments/CreatePaymentRequestInterface.php](../../lib/Request/Payments/CreatePaymentRequestInterface.php) * Package: \YooKassa --- ### Tags | Tag | Version | Description | | --- | ------- | ----------- | | property-read | | Получатель платежа, если задан | | property-read | | Сумма создаваемого платежа | | property-read | | Данные фискального чека 54-ФЗ | | property-read | | Одноразовый токен для проведения оплаты, сформированный YooKassa JS widget | | property-read | | Одноразовый токен для проведения оплаты, сформированный YooKassa JS widget | | property-read | | Идентификатор записи о сохраненных платежных данных покупателя | | property-read | | Идентификатор записи о сохраненных платежных данных покупателя | | property-read | | Данные используемые для создания метода оплаты | | property-read | | Данные используемые для создания метода оплаты | | property-read | | Способ подтверждения платежа | | property-read | | Сохранить платежные данные для последующего использования | | property-read | | Сохранить платежные данные для последующего использования | | property-read | | Автоматически принять поступившую оплату | | property-read | | IPv4 или IPv6-адрес покупателя. Если не указан, используется IP-адрес TCP-подключения. | | property-read | | IPv4 или IPv6-адрес покупателя. Если не указан, используется IP-адрес TCP-подключения. | | property-read | | Метаданные привязанные к платежу | | property-read | | Метаданные привязанные к платежу | | property-read | | Данные о сделке, в составе которой проходит платеж | | property-read | | Информация для проверки операции на мошенничество | | property-read | | Информация для проверки операции на мошенничество | | property-read | | Идентификатор покупателя в вашей системе, например электронная почта или номер телефона | | property-read | | Идентификатор покупателя в вашей системе, например электронная почта или номер телефона | --- ## Methods #### public getRecipient() : \YooKassa\Model\RecipientInterface|null ```php public getRecipient() : \YooKassa\Model\RecipientInterface|null ``` **Summary** Возвращает объект получателя платежа **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** \YooKassa\Model\RecipientInterface|null - Объект с информацией о получателе платежа или null, если получатель не задан #### public hasRecipient() : bool ```php public hasRecipient() : bool ``` **Summary** Проверяет наличие получателя платежа в запросе **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если получатель платежа задан, false если нет #### public setRecipient() : mixed ```php public setRecipient(\YooKassa\Model\RecipientInterface|null $value) : mixed ``` **Summary** Устанавливает объект с информацией о получателе платежа **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\RecipientInterface OR null | value | Инстанс объекта информации о получателе платежа или null | **Returns:** mixed - #### public getAmount() : \YooKassa\Model\AmountInterface ```php public getAmount() : \YooKassa\Model\AmountInterface ``` **Summary** Возвращает сумму заказа **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** \YooKassa\Model\AmountInterface - Сумма заказа #### public getDescription() : string ```php public getDescription() : string ``` **Summary** Возвращает описание транзакции **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** string - Описание транзакции #### public hasDescription() : bool ```php public hasDescription() : bool ``` **Summary** Проверяет наличие описания транзакции в создаваемом платеже **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если описание транзакции установлено, false если нет #### public setDescription() : mixed ```php public setDescription(string $value) : mixed ``` **Summary** Устанавливает описание транзакции **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | value | Описание транзакции | **Returns:** mixed - #### public getReceipt() : \YooKassa\Model\ReceiptInterface|null ```php public getReceipt() : \YooKassa\Model\ReceiptInterface|null ``` **Summary** Возвращает чек, если он есть **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** \YooKassa\Model\ReceiptInterface|null - Данные фискального чека 54-ФЗ или null, если чека нет #### public hasReceipt() : bool ```php public hasReceipt() : bool ``` **Summary** Проверяет наличие чека в создаваемом платеже **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если чек есть, false если нет #### public getPaymentToken() : string ```php public getPaymentToken() : string ``` **Summary** Возвращает одноразовый токен для проведения оплаты **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** string - Одноразовый токен для проведения оплаты, сформированный YooKassa JS widget #### public hasPaymentToken() : bool ```php public hasPaymentToken() : bool ``` **Summary** Проверяет наличие одноразового токена для проведения оплаты **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если токен установлен, false если нет #### public setPaymentToken() : mixed ```php public setPaymentToken(string $value) : mixed ``` **Summary** Устанавливает одноразовый токен для проведения оплаты, сформированный YooKassa JS widget **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | value | Одноразовый токен для проведения оплаты | **Returns:** mixed - #### public getPaymentMethodId() : string ```php public getPaymentMethodId() : string ``` **Summary** Устанавливает идентификатор записи платёжных данных покупателя **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** string - Идентификатор записи о сохраненных платежных данных покупателя #### public hasPaymentMethodId() : bool ```php public hasPaymentMethodId() : bool ``` **Summary** Проверяет наличие идентификатора записи о платёжных данных покупателя **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если идентификатор задан, false если нет #### public setPaymentMethodId() : mixed ```php public setPaymentMethodId(string $value) : mixed ``` **Summary** Устанавливает идентификатор записи о сохранённых данных покупателя **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | value | Идентификатор записи о сохраненных платежных данных покупателя | **Returns:** mixed - #### public getPaymentMethodData() : \YooKassa\Model\PaymentData\AbstractPaymentData ```php public getPaymentMethodData() : \YooKassa\Model\PaymentData\AbstractPaymentData ``` **Summary** Возвращает данные для создания метода оплаты **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** \YooKassa\Model\PaymentData\AbstractPaymentData - Данные используемые для создания метода оплаты #### public hasPaymentMethodData() : bool ```php public hasPaymentMethodData() : bool ``` **Summary** Проверяет установлен ли объект с методом оплаты **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если объект метода оплаты установлен, false если нет #### public setPaymentMethodData() : mixed ```php public setPaymentMethodData(\YooKassa\Model\PaymentData\AbstractPaymentData|null $value) : mixed ``` **Summary** Устанавливает объект с информацией для создания метода оплаты **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\PaymentData\AbstractPaymentData OR null | value | Объект создания метода оплаты или null | **Returns:** mixed - #### public getConfirmation() : \YooKassa\Model\ConfirmationAttributes\AbstractConfirmationAttributes ```php public getConfirmation() : \YooKassa\Model\ConfirmationAttributes\AbstractConfirmationAttributes ``` **Summary** Возвращает способ подтверждения платежа **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** \YooKassa\Model\ConfirmationAttributes\AbstractConfirmationAttributes - Способ подтверждения платежа #### public hasConfirmation() : bool ```php public hasConfirmation() : bool ``` **Summary** Проверяет, был ли установлен способ подтверждения платежа **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если способ подтверждения платежа был установлен, false если нет #### public setConfirmation() : mixed ```php public setConfirmation(\YooKassa\Model\ConfirmationAttributes\AbstractConfirmationAttributes|null $value) : mixed ``` **Summary** Устанавливает способ подтверждения платежа **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\ConfirmationAttributes\AbstractConfirmationAttributes OR null | value | Способ подтверждения платежа | **Returns:** mixed - #### public getSavePaymentMethod() : bool ```php public getSavePaymentMethod() : bool ``` **Summary** Возвращает флаг сохранения платёжных данных **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - Флаг сохранения платёжных данных #### public hasSavePaymentMethod() : bool ```php public hasSavePaymentMethod() : bool ``` **Summary** Проверяет, был ли установлен флаг сохранения платёжных данных **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если флыг был установлен, false если нет #### public setSavePaymentMethod() : mixed ```php public setSavePaymentMethod(bool $value) : mixed ``` **Summary** Устанавливает флаг сохранения платёжных данных. Значение true инициирует создание многоразового payment_method. **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | bool | value | Сохранить платежные данные для последующего использования | **Returns:** mixed - #### public getCapture() : bool ```php public getCapture() : bool ``` **Summary** Возвращает флаг автоматического принятия поступившей оплаты **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если требуется автоматически принять поступившую оплату, false если нет #### public hasCapture() : bool ```php public hasCapture() : bool ``` **Summary** Проверяет, был ли установлен флаг автоматического приняти поступившей оплаты **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если флаг автоматического принятия оплаты был установлен, false если нет #### public setCapture() : mixed ```php public setCapture(bool $value) : mixed ``` **Summary** Устанавливает флаг автоматического принятия поступившей оплаты **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | bool | value | Автоматически принять поступившую оплату | **Returns:** mixed - #### public getClientIp() : string ```php public getClientIp() : string ``` **Summary** Возвращает IPv4 или IPv6-адрес покупателя **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** string - IPv4 или IPv6-адрес покупателя #### public hasClientIp() : bool ```php public hasClientIp() : bool ``` **Summary** Проверяет, был ли установлен IPv4 или IPv6-адрес покупателя **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если IP адрес покупателя был установлен, false если нет #### public setClientIp() : mixed ```php public setClientIp(string $value) : mixed ``` **Summary** Устанавливает IP адрес покупателя **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | value | IPv4 или IPv6-адрес покупателя | **Returns:** mixed - #### public getMetadata() : \YooKassa\Model\Metadata ```php public getMetadata() : \YooKassa\Model\Metadata ``` **Summary** Возвращает данные оплаты установленные мерчантом **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** \YooKassa\Model\Metadata - Метаданные привязанные к платежу #### public hasMetadata() : bool ```php public hasMetadata() : bool ``` **Summary** Проверяет, были ли установлены метаданные заказа **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если метаданные были установлены, false если нет #### public setMetadata() : mixed ```php public setMetadata(\YooKassa\Model\Metadata|array|null $value) : mixed ``` **Summary** Устанавливает метаданные, привязанные к платежу **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\Metadata OR array OR null | value | Метаданные платежа, устанавливаемые мерчантом | **Returns:** mixed - #### public getAirline() : \YooKassa\Model\Airline ```php public getAirline() : \YooKassa\Model\Airline ``` **Summary** Возвращает данные длинной записи **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** \YooKassa\Model\Airline - #### public hasAirline() : bool ```php public hasAirline() : bool ``` **Summary** Проверяет, были ли установлены данные длинной записи **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - #### public setAirline() : mixed ```php public setAirline(\YooKassa\Model\AirlineInterface $value) : mixed ``` **Summary** Устанавливает данные авиабилетов **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\AirlineInterface | value | Данные авиабилетов | **Returns:** mixed - #### public hasTransfers() : bool ```php public hasTransfers() : bool ``` **Summary** Проверяет наличие данных о распределении денег **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - #### public getTransfers() : \YooKassa\Model\TransferInterface[] ```php public getTransfers() : \YooKassa\Model\TransferInterface[] ``` **Summary** Возвращает данные о распределении денег — сколько и в какой магазин нужно перевести. **Description** Присутствует, если вы используете решение ЮKassa для платформ. (https://yookassa.ru/developers/special-solutions/checkout-for-platforms/basics) **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** \YooKassa\Model\TransferInterface[] - Данные о распределении денег #### public setTransfers() : mixed ```php public setTransfers(\YooKassa\Model\TransferInterface[]|array|null $value) : mixed ``` **Summary** Устанавливает данные о распределении денег — сколько и в какой магазин нужно перевести. **Description** Присутствует, если вы используете решение ЮKassa для платформ. (https://yookassa.ru/developers/special-solutions/checkout-for-platforms/basics) **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\TransferInterface[] OR array OR null | value | Данные о распределении денег | **Returns:** mixed - #### public getDeal() : \YooKassa\Model\Deal\PaymentDealInfo ```php public getDeal() : \YooKassa\Model\Deal\PaymentDealInfo ``` **Summary** Возвращает данные о сделке, в составе которой проходит платеж **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** \YooKassa\Model\Deal\PaymentDealInfo - Данные о сделке, в составе которой проходит платеж. #### public hasDeal() : bool ```php public hasDeal() : bool ``` **Summary** Проверяет, были ли установлены данные о сделке **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если данные о сделке были установлены, false если нет #### public setDeal() : mixed ```php public setDeal(\YooKassa\Model\Deal\PaymentDealInfo|array|null $value) : mixed ``` **Summary** Устанавливает данные о сделке, в составе которой проходит платеж. **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\Deal\PaymentDealInfo OR array OR null | value | Данные о сделке, в составе которой проходит платеж | **Returns:** mixed - #### public getFraudData() : \YooKassa\Model\FraudData ```php public getFraudData() : \YooKassa\Model\FraudData ``` **Summary** Возвращает информацию для проверки операции на мошенничество **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** \YooKassa\Model\FraudData - Информация для проверки операции на мошенничество #### public hasFraudData() : bool ```php public hasFraudData() : bool ``` **Summary** Проверяет, была ли установлена информация для проверки операции на мошенничество **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если информация была установлена, false если нет #### public setFraudData() : mixed ```php public setFraudData(\YooKassa\Model\FraudData|array|null $value) : mixed ``` **Summary** Устанавливает информацию для проверки операции на мошенничество **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \YooKassa\Model\FraudData OR array OR null | value | Информация для проверки операции на мошенничество | **Returns:** mixed - #### public getMerchantCustomerId() : string ```php public getMerchantCustomerId() : string ``` **Summary** Возвращает идентификатор покупателя в вашей системе **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** string - Идентификатор покупателя в вашей системе #### public hasMerchantCustomerId() : bool ```php public hasMerchantCustomerId() : bool ``` **Summary** Проверяет, был ли установлен идентификатор покупателя в вашей системе **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) **Returns:** bool - True если идентификатор покупателя был установлен, false если нет #### public setMerchantCustomerId() : mixed ```php public setMerchantCustomerId(string $value) : mixed ``` **Summary** Устанавливает идентификатор покупателя в вашей системе **Details:** * Inherited From: [\YooKassa\Request\Payments\CreatePaymentRequestInterface](../classes/YooKassa-Request-Payments-CreatePaymentRequestInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | value | Идентификатор покупателя в вашей системе, например электронная почта или номер телефона. Не более 200 символов | **Returns:** mixed - --- ### Top Namespaces * [\YooKassa](../namespaces/yookassa.md) --- ### Reports * [Errors - 0](../reports/errors.md) * [Markers - 1](../reports/markers.md) * [Deprecated - 25](../reports/deprecated.md) --- This document was automatically generated from source code comments on 2023-04-06 using [phpDocumentor](http://www.phpdoc.org/) © 2023 YooMoney