Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
cashboxyookassa.php
1
<?php
2
3
namespace
Bitrix\Sale\Cashbox\EventsHandler
;
4
5
use
Bitrix\Main
;
6
use
Bitrix\Sale\Cashbox
;
7
8
class
CashboxYooKassa
9
{
14
public
static
function
onBeforeCashboxAdd
(Main\
Event
$event): Main\
EventResult
15
{
16
$result = $event->getParameters();
17
18
if
($result[
'HANDLER'
] ===
'\\'
.
Cashbox
\CashboxYooKassa::class)
19
{
20
$result[
'OFD'
] =
'\\'
. Cashbox\FirstOfd::class;
21
}
22
23
return
new
Main\EventResult
(
24
Main\EventResult::SUCCESS,
25
$result,
26
'sale'
27
);
28
}
29
}
Bitrix\Catalog\Model\Event
Definition
event.php:11
Bitrix\Catalog\Model\EventResult
Definition
eventresult.php:7
Bitrix\Main\EventResult
Definition
eventresult.php:5
Bitrix\Sale\Cashbox\Cashbox
Definition
cashbox.php:18
Bitrix\Sale\Cashbox\CashboxYooKassa
Definition
cashboxyookassa.php:20
Bitrix\Sale\Cashbox\EventsHandler\CashboxYooKassa\onBeforeCashboxAdd
static onBeforeCashboxAdd(Main\Event $event)
Definition
cashboxyookassa.php:14
Bitrix\Main
Bitrix\Sale\Cashbox\EventsHandler
Definition
cashboxyookassa.php:3
Bitrix\Sale\Cashbox
Definition
abstractcheck.php:3
modules
sale
lib
cashbox
eventshandler
cashboxyookassa.php
Создано системой
1.10.0