Files
yookassa-sdk-php/docs/classes/YooKassa-Request-PaymentMethods-CreatePaymentMethodRequestSerializer.md
Евгений Ю. Лозный 260d13f890 Добавлен прием платежей через Alfa Pay. Добавлен новый тип ошибки RuleViolationError
Добавлены нулевые привязки по СБП
Добавлена причина отмены возвратов `payment_expired`
2026-06-29 17:46:40 +03:00

83 lines
2.5 KiB
Markdown

# [YooKassa API SDK](../home.md)
# Class: \YooKassa\Request\PaymentMethods\CreatePaymentMethodRequestSerializer
### Namespace: [\YooKassa\Request\PaymentMethods](../namespaces/yookassa-request-paymentmethods.md)
---
**Summary:**
Класс, представляющий модель CreatePaymentMethodRequest.
**Description:**
Класс объекта осуществляющего сериализацию запроса к API на проверку и сохранение способа оплаты.
---
### Constants
* No constants found
---
### Methods
| Visibility | Name | Flag | Summary |
| ----------:| ---- | ---- | ------- |
| public | [serialize()](../classes/YooKassa-Request-PaymentMethods-CreatePaymentMethodRequestSerializer.md#method_serialize) | | Формирует ассоциативный массив данных из объекта запроса. |
---
### Details
* File: [lib/Request/PaymentMethods/CreatePaymentMethodRequestSerializer.php](../../lib/Request/PaymentMethods/CreatePaymentMethodRequestSerializer.php)
* Package: YooKassa\Request
* Class Hierarchy:
* \YooKassa\Request\PaymentMethods\CreatePaymentMethodRequestSerializer
* See Also:
* [](https://yookassa.ru/developers/api)
---
### Tags
| Tag | Version | Description |
| --- | ------- | ----------- |
| category | | Class |
| author | | cms@yoomoney.ru |
---
## Methods
<a name="method_serialize" class="anchor"></a>
#### public serialize() : array
```php
public serialize(\YooKassa\Request\PaymentMethods\CreatePaymentMethodRequestInterface $request) : array
```
**Summary**
Формирует ассоциативный массив данных из объекта запроса.
**Details:**
* Inherited From: [\YooKassa\Request\PaymentMethods\CreatePaymentMethodRequestSerializer](../classes/YooKassa-Request-PaymentMethods-CreatePaymentMethodRequestSerializer.md)
##### Parameters:
| Type | Name | Description |
| ---- | ---- | ----------- |
| <code lang="php">\YooKassa\Request\PaymentMethods\CreatePaymentMethodRequestInterface</code> | request | Объект запроса |
**Returns:** array - Массив данных для дальнейшего кодирования в JSON
---
### 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-06-29 using [phpDocumentor](http://www.phpdoc.org/)
&copy; 2026 YooMoney