'onOrderDelete' ]; } public function onOrderDelete(OrderDeleteEvent $event) { $order = $event->order; $paymentManager = PaymentModule::getInstance(); $userModule = UserModule::getInstance(); $paymentManager->refundOrderCredit($order, $userModule->getCurrent()); } }