Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
requestyookassa.php
1<?php
2
4
6use Bitrix\Seo\Engine\Bitrix as EngineBitrix;
7
13{
14 const TYPE_CODE = 'yookassa';
15
23 public function query(array $params = array())
24 {
25 $methodName = 'checkout.yookassa.'.$params['methodName'];
26 $parameters = isset($params['parameters']) ? $params['parameters'] : [];
27 $engine = new EngineBitrix();
28 if (!$engine->isRegistered())
29 {
30 return false;
31 }
32
33 $response = $engine->getInterface()->getTransport()->call($methodName, $parameters);
34 return ((isset($response['result']['RESULT']) && $response['result']['RESULT'])
35 ? $response['result']['RESULT']
36 : []
37 );
38 }
39}