Version Notes
Fix 3D Secure bug with new gateway accounts
Download this release
Release Info
Developer | CardSave |
Extension | Cardsave_Cardsaveonlinepayments |
Version | 1.14.2 |
Comparing to | |
See all releases |
Code changes from version 1.14.1 to 1.14.2
app/code/local/Cardsave/Cardsaveonlinepayments/Block/Redirect.php
CHANGED
@@ -185,7 +185,13 @@ class Cardsave_Cardsaveonlinepayments_Block_Redirect extends Mage_Core_Block_Abs
|
|
185 |
$form->addField("StartDateMonth", 'hidden', array('name'=>"StartDateMonth", 'value'=>Mage::getSingleton('checkout/session')->getStartdatemonth()));
|
186 |
$form->addField("StartDateYear", 'hidden', array('name'=>"StartDateYear", 'value'=>Mage::getSingleton('checkout/session')->getStartdateyear()));
|
187 |
$form->addField("IssueNumber", 'hidden', array('name'=>"IssueNumber", 'value'=>Mage::getSingleton('checkout/session')->getIssuenumber()));
|
188 |
-
$form->addField("CV2", 'hidden', array('name'=>"CV2", 'value'=>Mage::getSingleton('checkout/session')->getCv2()));
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
|
190 |
// reset the session items
|
191 |
Mage::getSingleton('checkout/session')->setHashdigest(null)
|
@@ -247,6 +253,8 @@ class Cardsave_Cardsaveonlinepayments_Block_Redirect extends Mage_Core_Block_Abs
|
|
247 |
$form->addField("TransactionDateTime", 'hidden', array('name'=>"TransactionDateTime", 'value'=>Mage::getSingleton('checkout/session')->getTransactiondatetime()));
|
248 |
$form->addField("CallbackURL", 'hidden', array('name'=>"CallbackURL", 'value'=>Mage::getSingleton('checkout/session')->getCallbackurl()));
|
249 |
$form->addField("PaRES", 'hidden', array('name'=>"PaRES", 'value'=>Mage::getSingleton('checkout/session')->getPares()));
|
|
|
|
|
250 |
|
251 |
// reset the session items
|
252 |
Mage::getSingleton('checkout/session')->setHashdigest(null)
|
185 |
$form->addField("StartDateMonth", 'hidden', array('name'=>"StartDateMonth", 'value'=>Mage::getSingleton('checkout/session')->getStartdatemonth()));
|
186 |
$form->addField("StartDateYear", 'hidden', array('name'=>"StartDateYear", 'value'=>Mage::getSingleton('checkout/session')->getStartdateyear()));
|
187 |
$form->addField("IssueNumber", 'hidden', array('name'=>"IssueNumber", 'value'=>Mage::getSingleton('checkout/session')->getIssuenumber()));
|
188 |
+
$form->addField("CV2", 'hidden', array('name'=>"CV2", 'value'=>Mage::getSingleton('checkout/session')->getCv2()));
|
189 |
+
$form->addField("PostAuthCompatMode", 'hidden', array('name'=>"PostAuthCompatMode", 'value'=>"false"));
|
190 |
+
$form->addField("ThreeDSecureCompatMode", 'hidden', array('name'=>"ThreeDSecureCompatMode", 'value'=>"false"));
|
191 |
+
$form->addField("EchoAVSCheckResult", 'hidden', array('name'=>"EchoAVSCheckResult", 'value'=>"true"));
|
192 |
+
$form->addField("EchoCV2CheckResult", 'hidden', array('name'=>"EchoCV2CheckResult", 'value'=>"true"));
|
193 |
+
$form->addField("EchoThreeDSecureAuthenticationCheckResult", 'hidden', array('name'=>"EchoThreeDSecureAuthenticationCheckResult", 'value'=>"true"));
|
194 |
+
$form->addField("EchoCardType", 'hidden', array('name'=>"EchoCardType", 'value'=>"true"));
|
195 |
|
196 |
// reset the session items
|
197 |
Mage::getSingleton('checkout/session')->setHashdigest(null)
|
253 |
$form->addField("TransactionDateTime", 'hidden', array('name'=>"TransactionDateTime", 'value'=>Mage::getSingleton('checkout/session')->getTransactiondatetime()));
|
254 |
$form->addField("CallbackURL", 'hidden', array('name'=>"CallbackURL", 'value'=>Mage::getSingleton('checkout/session')->getCallbackurl()));
|
255 |
$form->addField("PaRES", 'hidden', array('name'=>"PaRES", 'value'=>Mage::getSingleton('checkout/session')->getPares()));
|
256 |
+
$form->addField("PostAuthCompatMode", 'hidden', array('name'=>"PostAuthCompatMode", 'value'=>"false"));
|
257 |
+
$form->addField("ThreeDSecureCompatMode", 'hidden', array('name'=>"ThreeDSecureCompatMode", 'value'=>"false"));
|
258 |
|
259 |
// reset the session items
|
260 |
Mage::getSingleton('checkout/session')->setHashdigest(null)
|
app/code/local/Cardsave/Cardsaveonlinepayments/Model/Common/PaymentFormHelper.php
CHANGED
@@ -352,6 +352,8 @@
|
|
352 |
'PostCode='.$formVariables['PostCode'].'&'.
|
353 |
'CountryCode='.$formVariables['CountryCode'];
|
354 |
|
|
|
|
|
355 |
if ($hmHashMethod == Cardsave_Cardsaveonlinepayments_Model_Source_HashMethod::HASH_METHOD_MD5 ||
|
356 |
$hmHashMethod == Cardsave_Cardsaveonlinepayments_Model_Source_HashMethod::HASH_METHOD_SHA1)
|
357 |
{
|
@@ -384,12 +386,35 @@
|
|
384 |
|
385 |
$szStringBeforeHash = 'MerchantID='.$formVariables['MerchantID'].'&'.
|
386 |
'Password='.$szPassword.'&'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
387 |
'Amount='.$formVariables['Amount'].'&'.
|
388 |
'CurrencyCode='.$formVariables['CurrencyCode'].'&'.
|
389 |
'OrderID='.$formVariables['OrderID'].'&'.
|
390 |
'TransactionType='.$formVariables['TransactionType'].'&'.
|
391 |
'TransactionDateTime='.$formVariables['TransactionDateTime'].'&'.
|
392 |
-
'OrderDescription='.$formVariables['OrderDescription']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
|
394 |
if ($hmHashMethod == Cardsave_Cardsaveonlinepayments_Model_Source_HashMethod::HASH_METHOD_MD5 ||
|
395 |
$hmHashMethod == Cardsave_Cardsaveonlinepayments_Model_Source_HashMethod::HASH_METHOD_SHA1)
|
352 |
'PostCode='.$formVariables['PostCode'].'&'.
|
353 |
'CountryCode='.$formVariables['CountryCode'];
|
354 |
|
355 |
+
echo $szStringBeforeHash;
|
356 |
+
|
357 |
if ($hmHashMethod == Cardsave_Cardsaveonlinepayments_Model_Source_HashMethod::HASH_METHOD_MD5 ||
|
358 |
$hmHashMethod == Cardsave_Cardsaveonlinepayments_Model_Source_HashMethod::HASH_METHOD_SHA1)
|
359 |
{
|
386 |
|
387 |
$szStringBeforeHash = 'MerchantID='.$formVariables['MerchantID'].'&'.
|
388 |
'Password='.$szPassword.'&'.
|
389 |
+
'StatusCode='.$formVariables['StatusCode'].'&'.
|
390 |
+
'Message='.$formVariables['Message'].'&'.
|
391 |
+
'PreviousStatusCode='.$formVariables['PreviousStatusCode'].'&'.
|
392 |
+
'PreviousMessage='.$formVariables['PreviousMessage'].'&'.
|
393 |
+
'CrossReference='.$formVariables['CrossReference'].'&'.
|
394 |
+
'AddressNumericCheckResult='.$formVariables['AddressNumericCheckResult'].'&'.
|
395 |
+
'PostCodeCheckResult='.$formVariables['PostCodeCheckResult'].'&'.
|
396 |
+
'CV2CheckResult='.$formVariables['CV2CheckResult'].'&'.
|
397 |
+
'ThreeDSecureAuthenticationCheckResult='.$formVariables['ThreeDSecureAuthenticationCheckResult'].'&'.
|
398 |
+
'CardType='.$formVariables['CardType'].'&'.
|
399 |
+
'CardClass='.$formVariables['CardClass'].'&'.
|
400 |
+
'CardIssuer='.$formVariables['CardIssuer'].'&'.
|
401 |
+
'CardIssuerCountryCode='.$formVariables['CardIssuerCountryCode'].'&'.
|
402 |
'Amount='.$formVariables['Amount'].'&'.
|
403 |
'CurrencyCode='.$formVariables['CurrencyCode'].'&'.
|
404 |
'OrderID='.$formVariables['OrderID'].'&'.
|
405 |
'TransactionType='.$formVariables['TransactionType'].'&'.
|
406 |
'TransactionDateTime='.$formVariables['TransactionDateTime'].'&'.
|
407 |
+
'OrderDescription='.$formVariables['OrderDescription'].'&'.
|
408 |
+
'Address1='.$formVariables['Address1'].'&'.
|
409 |
+
'Address2='.$formVariables['Address2'].'&'.
|
410 |
+
'Address3='.$formVariables['Address3'].'&'.
|
411 |
+
'Address4='.$formVariables['Address4'].'&'.
|
412 |
+
'City='.$formVariables['City'].'&'.
|
413 |
+
'State='.$formVariables['State'].'&'.
|
414 |
+
'PostCode='.$formVariables['PostCode'].'&'.
|
415 |
+
'CountryCode='.$formVariables['CountryCode'].'&'.
|
416 |
+
'EmailAddress='.$formVariables['EmailAddress'].'&'.
|
417 |
+
'PhoneNumber='.$formVariables['PhoneNumber'];
|
418 |
|
419 |
if ($hmHashMethod == Cardsave_Cardsaveonlinepayments_Model_Source_HashMethod::HASH_METHOD_MD5 ||
|
420 |
$hmHashMethod == Cardsave_Cardsaveonlinepayments_Model_Source_HashMethod::HASH_METHOD_SHA1)
|
app/code/local/Cardsave/Cardsaveonlinepayments/controllers/PaymentController.php
CHANGED
@@ -690,6 +690,18 @@ class Cardsave_Cardsaveonlinepayments_PaymentController extends Mage_Core_Contro
|
|
690 |
$formVariables['State'] = $this->getRequest()->getPost('State');
|
691 |
$formVariables['PostCode'] = $this->getRequest()->getPost('PostCode');
|
692 |
$formVariables['CountryCode'] = $this->getRequest()->getPost('CountryCode');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
693 |
|
694 |
if(!CSV_PaymentFormHelper::comparePaymentCompleteHashDigest($formVariables, $szPassword, $hmHashMethod, $szPreSharedKey))
|
695 |
{
|
690 |
$formVariables['State'] = $this->getRequest()->getPost('State');
|
691 |
$formVariables['PostCode'] = $this->getRequest()->getPost('PostCode');
|
692 |
$formVariables['CountryCode'] = $this->getRequest()->getPost('CountryCode');
|
693 |
+
|
694 |
+
$formVariables['AddressNumericCheckResult'] = $this->getRequest()->getPost('AddressNumericCheckResult');
|
695 |
+
$formVariables['PostCodeCheckResult'] = $this->getRequest()->getPost('PostCodeCheckResult');
|
696 |
+
$formVariables['CV2CheckResult'] = $this->getRequest()->getPost('CV2CheckResult');
|
697 |
+
$formVariables['ThreeDSecureAuthenticationCheckResult'] = $this->getRequest()->getPost('ThreeDSecureAuthenticationCheckResult');
|
698 |
+
$formVariables['CardType'] = $this->getRequest()->getPost('CardType');
|
699 |
+
$formVariables['CardClass'] = $this->getRequest()->getPost('CardClass');
|
700 |
+
$formVariables['CardIssuer'] = $this->getRequest()->getPost('CardIssuer');
|
701 |
+
$formVariables['CardIssuerCountryCode'] = $this->getRequest()->getPost('CardIssuerCountryCode');
|
702 |
+
|
703 |
+
$formVariables['EmailAddress'] = $this->getRequest()->getPost('EmailAddress');
|
704 |
+
$formVariables['PhoneNumber'] = $this->getRequest()->getPost('PhoneNumber');
|
705 |
|
706 |
if(!CSV_PaymentFormHelper::comparePaymentCompleteHashDigest($formVariables, $szPassword, $hmHashMethod, $szPreSharedKey))
|
707 |
{
|
package.xml
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Cardsave_Cardsaveonlinepayments</name>
|
4 |
-
<version>1.14.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GPL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |

|
13 |
</notes>
|
14 |
<authors><author><name>CardSave</name><user>CardSave</user><email>alistair.richardson@cardsave.net</email></author></authors>
|
15 |
-
<date>2013-
|
16 |
-
<time>
|
17 |
-
<contents><target name="magelocal"><dir name="Cardsave"><dir name="Cardsaveonlinepayments"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Payment.php" hash="1cff6196bd79d3989b960506cc87201e"/></dir></dir></dir><file name="Error.php" hash="660d3cbde48910ef271df9e05130a6d7"/><file name="Form.php" hash="ea5b3817c9607a94f4685d53d0b18569"/><file name="Info.php" hash="57a4bfec1a1c769de063be2b922f4a97"/><file name="Redirect.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0</min><max>1.7.5</max></package></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Cardsave_Cardsaveonlinepayments</name>
|
4 |
+
<version>1.14.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GPL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>CardSave Payment Extension (Official)</summary>
|
10 |
+
<description>Supports all of the integration methods provided by CardSave and 3D Secure. Now updated for Magento v1.7.</description>
|
11 |
+
<notes>Fix 3D Secure bug with new gateway accounts
|
12 |

|
13 |
</notes>
|
14 |
<authors><author><name>CardSave</name><user>CardSave</user><email>alistair.richardson@cardsave.net</email></author></authors>
|
15 |
+
<date>2013-03-05</date>
|
16 |
+
<time>11:46:41</time>
|
17 |
+
<contents><target name="magelocal"><dir name="Cardsave"><dir name="Cardsaveonlinepayments"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Payment.php" hash="1cff6196bd79d3989b960506cc87201e"/></dir></dir></dir><file name="Error.php" hash="660d3cbde48910ef271df9e05130a6d7"/><file name="Form.php" hash="ea5b3817c9607a94f4685d53d0b18569"/><file name="Info.php" hash="57a4bfec1a1c769de063be2b922f4a97"/><file name="Redirect.php" hash="b5439397d10caf4f07505566bde9522d"/><file name="Threedsecure.php" hash="9d75776f34c5acaf6ea265f35f302c69"/></dir><dir name="Helper"><file name="Data.php" hash="e024ec0479d1e8e7efcf4751b05194d6"/></dir><dir name="Model"><dir name="Common"><file name="GlobalErrors.php" hash="e0f9062ca2db4c85d17e6939f9bd7641"/><file name="ISOCountries.php" hash="6c59574f190f6a67e38578d876c14edf"/><file name="ISOCurrencies.php" hash="2568f980f09bd8a7d4beaf3d16456d28"/><file name="PaymentFormHelper.php" hash="4db3a71495e5e7f9e8cbb9911d8adf9c"/><dir name="ThePaymentGateway"><file name="PaymentSystem.php" hash="e7d13200c853536cf641bde7f714b54e"/><file name="SOAP.php" hash="2b966f946889c6f151b222c322d7a0ee"/><file name="TPG_Common.php" hash="0170a3c7f6a01faf9aee9b0f94da6d2a"/></dir></dir><file name="Direct.php" hash="ceec1e292df3c0c316533da0756e6ace"/><file name="Request.php" hash="370f028086d13ae1df470e93a67dea66"/><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="b2a7e887464ff91517dbb4fd62f13c66"/></dir></dir></dir><dir name="Source"><file name="HashMethod.php" hash="997928579b69d21ae9eebec698c715c6"/><file name="OrderStatus.php" hash="4c44f8ba1652f20d934aa200ed4c8d00"/><file name="PaymentAction.php" hash="3aab84053c69af1de2e743ee590fdf0c"/><file name="PaymentMode.php" hash="ea8af602bd09d54a123af64bc4b680d0"/><file name="ResultDeliveryMethod.php" hash="afb838319df715e604173d6aa143feab"/></dir></dir><dir name="controllers"><file name="PaymentController.php" hash="ac32fc8147445e4177960c3482ec4179"/></dir><dir name="etc"><file name="config.xml" hash="a2ccf758ed448c19a2d9cb95ddd13316"/><file name="system.xml" hash="67d9e6f182704f8c2e44b55229e2c8bf"/></dir><dir name="sql"><dir name="cardsaveonlinepayments_setup"><file name="mysql4-install-0.1.0.php" hash="bda643d24b75e0dc527dc2caa6d47689"/></dir></dir></dir><dir name="Checkout"><dir name="Block"><dir name="Onepage"><dir name="Payment"><file name="Methods.php" hash="75a8a2961be74499d47ab398a8e1ba8a"/></dir></dir></dir><dir name="Model"><dir name="Type"><file name="Onepage.php" hash="2dc7e8f4e2b0292dc9160e4f9cf9ae5b"/></dir></dir><dir name="etc"><file name="config.xml" hash="9dbd58b6b32491d65e5c7d5850aa3420"/></dir></dir><dir name="Sales"><dir name="Model"><dir name="Order"><file name="Invoice.php" hash="9be99f3fbe1c4fe98fb110d3daa8afe6"/><file name="Payment.php" hash="10102812cd1906c0cceced21f88a78ff"/></dir><file name="Order.php" hash="e84594434822e321f271e3e463ddbcb9"/><dir name="Service"><file name="Quote.php" hash="a514922157b5690772d716c29f4a653e"/></dir></dir><dir name="etc"><file name="config.xml" hash="41f8d7978cb7e4cfffa0272d80e8f7bd"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="cardsaveonlinepayments"><file name="form.phtml" hash="45978066fc7ee981dec117306a33bb02"/><file name="info.phtml" hash="9765a5eae50cb6fa21dcec22e7767e79"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="cardsaveonlinepayments.xml" hash="65e413716658a000d659271cd174b1e2"/></dir><dir name="template"><dir name="cardsaveonlinepayments"><file name="form.phtml" hash="bf8cf94001d912f6d1e77b1d2b03cf6e"/><file name="info.phtml" hash="9765a5eae50cb6fa21dcec22e7767e79"/></dir><dir name="payment"><dir name="info"><file name="cc_cardsaveonlinepayments.phtml" hash="88065460669f1112779264bdbf710af4"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="cardsaveonlinepayments"><file name="form.phtml" hash="d8c32fe9d0d9584ac03ff7148c18e24a"/><file name="info.phtml" hash="c378bb59f085df95a4a6a5d866fc512d"/><file name="form.phtml" hash="d8c32fe9d0d9584ac03ff7148c18e24a"/><file name="info.phtml" hash="c378bb59f085df95a4a6a5d866fc512d"/></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="template"><dir name="cardsaveonlinepayments"><file name="form.phtml" hash="d8c32fe9d0d9584ac03ff7148c18e24a"/><file name="info.phtml" hash="c378bb59f085df95a4a6a5d866fc512d"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cardsave_All.xml" hash="e1d59fd8c4d4b5d87607f43fecf47e59"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="cardsaveonlinepayments.js" hash="e7b2422644d39f0eb98e63d54a55ae4d"/></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><file name="cardsave_online.png" hash="d24a379083a48ade742bddda6aa09103"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><file name="cardsave_online.png" hash="d24a379083a48ade742bddda6aa09103"/></dir></dir></dir></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0</min><max>1.7.5</max></package></required></dependencies>
|
20 |
</package>
|