diff --git a/Config/module.xml b/Config/module.xml
index aadb1bb..8d75baa 100644
--- a/Config/module.xml
+++ b/Config/module.xml
@@ -13,7 +13,7 @@
en_US
fr_FR
- 2.0.1
+ 2.0.2
Franck Allimant
diff --git a/EventListener/SendConfirmationEmail.php b/EventListener/SendConfirmationEmail.php
index 3c9061a..bcf8ea5 100644
--- a/EventListener/SendConfirmationEmail.php
+++ b/EventListener/SendConfirmationEmail.php
@@ -91,7 +91,7 @@ public function updateStatus(OrderEvent $event, $eventName, EventDispatcherInter
}
// Send confirmation email if required.
- if (Payzen::getConfigValue('send_confirmation_message_only_if_paid')) {
+ if (PayzenConfigQuery::read('send_confirmation_message_only_if_paid')) {
$dispatcher->dispatch($event, TheliaEvents::ORDER_SEND_CONFIRMATION_EMAIL);
}
}