Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
eventhandler.php
1<?php
2
4
7
13final class EventHandler
14{
19 public static function onSaleAfterPsServiceProcessRequest(Main\Event $event): void
20 {
21 $parameters = $event->getParameters();
22
24 $payment = $parameters['payment'];
26 $serviceResult = $parameters['serviceResult'];
27
28 if ($payment instanceof Sale\Payment && $serviceResult->isSuccess())
29 {
30 $provider = new Sale\PaySystem\Internals\Analytics\Provider($payment);
31 (new Sale\Internals\Analytics\Storage($provider))->save();
32 }
33 }
34}