Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fraudlabspro committed Dec 27, 2019
1 parent 08652d7 commit 792e60b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ Revision History for FraudLabs Pro Magento 2
First release.

1.0.1 2019-10-14
Minor fixes.
Minor fixes.

1.0.2 2019-12-26
Bug fixes.
4 changes: 2 additions & 2 deletions Controller/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) == '/') {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 792e60b

Please sign in to comment.