public function checkSendOrderConfirmationMessageToCustomer(OrderEvent $event)
    {
        if (Paybox::getConfigValue('send_confirmation_email_on_successful_payment', false)) {
            $paybox = new Paybox();

            if ($paybox->isPaymentModuleFor($event->getOrder())) {
                if (!$event->getOrder()->isPaid()) {
                    $event->stopPropagation();
                }
            }
        }
    }