'onOrderDelete' ]; } public function onOrderDelete(OrderDeleteEvent $event) { $order = $event->order; $paymentManager = PaymentManager::getInstance(); $userManager = UserManager::getInstance(); $paymentManager->refundOrderCredit($order, $userManager->getCurrent()); } }