diff --git a/CHANGELOG b/CHANGELOG index 59cd89d..2107a75 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,4 +3,7 @@ Revision History for FraudLabs Pro Magento 2 First release. 1.0.1 2019-10-14 - Minor fixes. \ No newline at end of file + Minor fixes. + +1.0.2 2019-12-26 + Bug fixes. \ No newline at end of file diff --git a/Controller/Observer.php b/Controller/Observer.php index d0ac704..ed0d47d 100644 --- a/Controller/Observer.php +++ b/Controller/Observer.php @@ -53,9 +53,9 @@ public function sendRequestToFraudLabsProSmsVerification($observer) { $data = json_decode($order->getfraudlabspro_response(), true); } if ($data['fraudlabspro_status'] == 'REVIEW') { - $subject = ($this->scopeConfig->getValue('fraudlabsprosmsverification/active_display/email_subject', \Magento\Store\Model\ScopeInterface::SCOPE_STORE)) ? ($this->getConfig()->getValue('fraudlabsprosmsverification/active_display/email_subject')) : 'Action Required: SMS Verification is required to process the order.'; + $subject = ($this->scopeConfig->getValue('fraudlabsprosmsverification/active_display/email_subject', \Magento\Store\Model\ScopeInterface::SCOPE_STORE)) ? ($this->scopeConfig->getValue('fraudlabsprosmsverification/active_display/email_subject')) : 'Action Required: SMS Verification is required to process the order.'; - $content = ($this->scopeConfig->getValue('fraudlabsprosmsverification/active_display/email_body', \Magento\Store\Model\ScopeInterface::SCOPE_STORE)) ? ($this->getConfig()->getValue('fraudlabsprosmsverification/active_display/email_body')) : "Dear Customer, Thanks for your business. Before we can continue processing your order, you may require you to click on the link to complete the SMS verification: {email_verification_link} Thank you."; + $content = ($this->scopeConfig->getValue('fraudlabsprosmsverification/active_display/email_body', \Magento\Store\Model\ScopeInterface::SCOPE_STORE)) ? ($this->scopeConfig->getValue('fraudlabsprosmsverification/active_display/email_body')) : "Dear Customer, Thanks for your business. Before we can continue processing your order, you may require you to click on the link to complete the SMS verification: {email_verification_link} Thank you."; $code = $this->randomCode(20); if (substr($this->_storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_WEB), -1) == '/') { diff --git a/composer.json b/composer.json index eac61ea..d43859e 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "hexasoft/module-fraudlabsprosmsverification", "description": "FraudLabs Pro SMS Verification extension for Magento 2 that help merchants to authenticate the client's identity by sending them a SMS for verification.", - "version": "1.0.1", + "version": "1.0.2", "type": "magento2-module", "require": { "php": "~5.5.0|~5.6.0|~7.0"