Version Notes
3D Secure transactions redirected to an outer ACS page rather than using iframe. System log file contains transaction specific result details.
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Iridiumcorp_Tpg |
| Version | 1.4 |
| Comparing to | |
| See all releases | |
Code changes from version 1.3 to 1.4
app/code/local/Iridiumcorp/Tpg/Model/Tpg/PaymentFormHelper.php
CHANGED
|
@@ -284,7 +284,7 @@
|
|
| 284 |
break;
|
| 285 |
}
|
| 286 |
|
| 287 |
-
|
| 288 |
|
| 289 |
return $szHashDigest;
|
| 290 |
}
|
|
@@ -352,7 +352,7 @@
|
|
| 352 |
}
|
| 353 |
|
| 354 |
$szCalculatedHashDigest = self::_hashCalculator($hmHashMethod, $szPreSharedKey, $szStringBeforeHash);
|
| 355 |
-
if($formVariables['HashDigest'] == $szCalculatedHashDigest)
|
| 356 |
{
|
| 357 |
$boMatch = true;
|
| 358 |
}
|
|
@@ -391,7 +391,7 @@
|
|
| 391 |
}
|
| 392 |
|
| 393 |
$szCalculatedHashDigest = self::_hashCalculator($hmHashMethod, $szPreSharedKey, $szStringBeforeHash);
|
| 394 |
-
if($formVariables['HashDigest'] == $szCalculatedHashDigest)
|
| 395 |
{
|
| 396 |
$boMatch = true;
|
| 397 |
}
|
|
@@ -431,7 +431,7 @@
|
|
| 431 |
}
|
| 432 |
|
| 433 |
$szCalculatedHashDigest = self::_hashCalculator($hmHashMethod, $szPreSharedKey, $szStringBeforeHash);
|
| 434 |
-
if($formVariables['HashDigest'] == $szCalculatedHashDigest)
|
| 435 |
{
|
| 436 |
$boMatch = true;
|
| 437 |
}
|
| 284 |
break;
|
| 285 |
}
|
| 286 |
|
| 287 |
+
//$szHashDigest = strtoupper($szHashDigest);
|
| 288 |
|
| 289 |
return $szHashDigest;
|
| 290 |
}
|
| 352 |
}
|
| 353 |
|
| 354 |
$szCalculatedHashDigest = self::_hashCalculator($hmHashMethod, $szPreSharedKey, $szStringBeforeHash);
|
| 355 |
+
if(strtoupper($formVariables['HashDigest']) == strtoupper($szCalculatedHashDigest))
|
| 356 |
{
|
| 357 |
$boMatch = true;
|
| 358 |
}
|
| 391 |
}
|
| 392 |
|
| 393 |
$szCalculatedHashDigest = self::_hashCalculator($hmHashMethod, $szPreSharedKey, $szStringBeforeHash);
|
| 394 |
+
if(strtoupper($formVariables['HashDigest']) == strtoupper($szCalculatedHashDigest))
|
| 395 |
{
|
| 396 |
$boMatch = true;
|
| 397 |
}
|
| 431 |
}
|
| 432 |
|
| 433 |
$szCalculatedHashDigest = self::_hashCalculator($hmHashMethod, $szPreSharedKey, $szStringBeforeHash);
|
| 434 |
+
if(strtoupper($formVariables['HashDigest']) == strtoupper($szCalculatedHashDigest))
|
| 435 |
{
|
| 436 |
$boMatch = true;
|
| 437 |
}
|
app/code/local/Iridiumcorp/Tpg/controllers/PaymentController.php
CHANGED
|
@@ -172,11 +172,11 @@ class Iridiumcorp_Tpg_PaymentController extends Mage_Core_Controller_Front_Actio
|
|
| 172 |
$formVariables['State'] = $this->getRequest()->getPost('State');
|
| 173 |
$formVariables['PostCode'] = $this->getRequest()->getPost('PostCode');
|
| 174 |
$formVariables['CountryCode'] = $this->getRequest()->getPost('CountryCode');
|
| 175 |
-
|
| 176 |
if(!IRC_PaymentFormHelper::compareHostedPaymentFormHashDigest($formVariables, $szPassword, $hmHashMethod, $szPreSharedKey))
|
| 177 |
{
|
| 178 |
$error = "The payment was rejected for a SECURITY reason: the incoming payment data was tampered with.";
|
| 179 |
-
Mage::log("The Hosted Payment Form transaction couldn't be completed for the following reason: ".$error. " Form variables: "
|
| 180 |
}
|
| 181 |
}
|
| 182 |
catch (Exception $exc)
|
| 172 |
$formVariables['State'] = $this->getRequest()->getPost('State');
|
| 173 |
$formVariables['PostCode'] = $this->getRequest()->getPost('PostCode');
|
| 174 |
$formVariables['CountryCode'] = $this->getRequest()->getPost('CountryCode');
|
| 175 |
+
Mage::log(print_r($formVariables, 1));
|
| 176 |
if(!IRC_PaymentFormHelper::compareHostedPaymentFormHashDigest($formVariables, $szPassword, $hmHashMethod, $szPreSharedKey))
|
| 177 |
{
|
| 178 |
$error = "The payment was rejected for a SECURITY reason: the incoming payment data was tampered with.";
|
| 179 |
+
Mage::log("The Hosted Payment Form transaction couldn't be completed for the following reason: ".$error. " Form variables: ".print_r($formVariables, 1));
|
| 180 |
}
|
| 181 |
}
|
| 182 |
catch (Exception $exc)
|
