Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
cashboxyookassa.php
1<?php
2
4
7
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}