Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
responseyookassa.php
1
<?php
2
3
namespace
Bitrix\Seo\Checkout\Services
;
4
5
use
Bitrix\Main\Error
;
6
use
Bitrix\Seo\Checkout\Response
;
7
12
class
ResponseYookassa
extends
Response
13
{
14
const
TYPE_CODE
=
'yookassa'
;
15
19
public
function
parse
($data)
20
{
21
if
(isset($data[
'errors'
]))
22
{
23
$this->addError(
new
Error
($data[
'errors'
][
'message'
], $data[
'errors'
][
'code'
]));
24
}
25
else
26
{
27
if
($data[
'data'
])
28
{
29
$this->setData($data[
'data'
]);
30
}
31
}
32
}
33
}
Bitrix\Main\Error
Definition
error.php:14
Bitrix\Main\Response
Definition
response.php:5
Bitrix\Seo\Checkout\Response
Definition
response.php:12
Bitrix\Seo\Checkout\Services\ResponseYookassa
Definition
responseyookassa.php:13
Bitrix\Seo\Checkout\Services\ResponseYookassa\TYPE_CODE
const TYPE_CODE
Definition
responseyookassa.php:14
Bitrix\Seo\Checkout\Services\ResponseYookassa\parse
parse($data)
Definition
responseyookassa.php:19
Bitrix\Seo\Checkout\Services
Definition
accountyandex.php:3
modules
seo
lib
checkout
services
responseyookassa.php
Создано системой
1.10.0