Datacash - Version 1.2.5

Version Notes

Version 1.2.5

Download this release

Release Info

Developer DataCash
Extension Datacash
Version 1.2.5
Comparing to
See all releases


Code changes from version 1.2.4 to 1.2.5

app/code/community/DataCash/Dpg/Model/Method/Api.php CHANGED
@@ -129,7 +129,7 @@ class DataCash_Dpg_Model_Method_Api extends DataCash_Dpg_Model_Method_Abstract
129
 
130
  // Process the response
131
  $response = $this->_api->getResponse();
132
- if ($response->isSuccessful() || $response->isMarkedForReview() || $response->isFraud()) {
133
  // Map data to the payment
134
  $this->_mapResponseToPayment($response, $payment);
135
  } else {
@@ -224,7 +224,8 @@ class DataCash_Dpg_Model_Method_Api extends DataCash_Dpg_Model_Method_Abstract
224
 
225
  // Process the response
226
  $response = $this->_api->getResponse();
227
- if ($response->isSuccessful() || $response->isMarkedForReview() || $response->isFraud()) {
 
228
  $this->_mapResponseToPayment($response, $payment);
229
  } else {
230
  $message = Mage::helper('dpg')->getUserFriendlyStatus($response->getStatus());
129
 
130
  // Process the response
131
  $response = $this->_api->getResponse();
132
+ if ($response->isSuccessful()) {
133
  // Map data to the payment
134
  $this->_mapResponseToPayment($response, $payment);
135
  } else {
224
 
225
  // Process the response
226
  $response = $this->_api->getResponse();
227
+ if ($response->isSuccessful()) {
228
+ // Map data to the payment
229
  $this->_mapResponseToPayment($response, $payment);
230
  } else {
231
  $message = Mage::helper('dpg')->getUserFriendlyStatus($response->getStatus());
app/code/community/DataCash/Dpg/Model/Method/Hcc.php CHANGED
@@ -183,9 +183,10 @@ class DataCash_Dpg_Model_Method_Hcc
183
  } catch (Exception $e) {
184
  throw new Mage_Payment_Model_Info_Exception($e->getMessage());
185
  }
 
186
  // Process the response
187
  $response = $this->_api->getResponse();
188
- if ($response->isSuccessful() || $response->isMarkedForReview() || $response->isFraud()) {
189
  // Map data to the payment
190
  $this->_mapResponseToPayment($response, $payment);
191
  } else {
@@ -242,7 +243,8 @@ class DataCash_Dpg_Model_Method_Hcc
242
 
243
  // Process the response
244
  $response = $this->_api->getResponse();
245
- if ($response->isSuccessful() || $response->isMarkedForReview() || $response->isFraud()) {
 
246
  $this->_mapResponseToPayment($response, $payment);
247
  } else {
248
  $message = Mage::helper('dpg')->getUserFriendlyStatus($response->getStatus());
183
  } catch (Exception $e) {
184
  throw new Mage_Payment_Model_Info_Exception($e->getMessage());
185
  }
186
+
187
  // Process the response
188
  $response = $this->_api->getResponse();
189
+ if ($response->isSuccessful()) {
190
  // Map data to the payment
191
  $this->_mapResponseToPayment($response, $payment);
192
  } else {
243
 
244
  // Process the response
245
  $response = $this->_api->getResponse();
246
+ if ($response->isSuccessful()) {
247
+ // Map data to the payment
248
  $this->_mapResponseToPayment($response, $payment);
249
  } else {
250
  $message = Mage::helper('dpg')->getUserFriendlyStatus($response->getStatus());
app/code/community/DataCash/Dpg/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <DataCash_Dpg>
5
- <version>1.2.4</version>
6
  </DataCash_Dpg>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <DataCash_Dpg>
5
+ <version>1.2.5</version>
6
  </DataCash_Dpg>
7
  </modules>
8
  <global>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Datacash</name>
4
- <version>1.2.4</version>
5
  <stability>stable</stability>
6
  <license>OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>DataCash payment gateway integration</summary>
10
  <description>DataCash payment gateway integration. System requirements as for Magento http://www.magentocommerce.com/system-requirements. cURL with the FOLLOWLOCATION option is used for service calls to DataCash. FOLLOWLOCATION requires safe_mode to be off and open_basedir to be disabled in the php.ini</description>
11
- <notes>Version 1.2.4</notes>
12
  <authors><author><name>DataCash</name><user>datacash</user><email>support@datacash.com</email></author></authors>
13
- <date>2014-10-17</date>
14
- <time>08:56:22</time>
15
- <contents><target name="magecommunity"><dir name="DataCash"><dir name="Dpg"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="c65030837e1ce97a063b9146f3bb983d"/></dir></dir></dir></dir><dir name="Form"><file name="Api.php" hash="033a34c52dc6dc03fa802c78e05fff9c"/><file name="Apiprereg.php" hash="bf28b55b476562ff459012c9fc21bc6d"/><file name="Hcc.php" hash="b3406a87a800b9182a0e4e259cf75754"/><file name="Hps.php" hash="47a732ebb397a14a145851cdb00ceb0b"/><file name="Iframe.php" hash="d0aad3633894b90f64112a962c8e3161"/><file name="Placeform.php" hash="19bafec3229f6f35382d9b725d41f620"/></dir><dir name="Iframe"><file name="Complete.php" hash="adbf0cb0a89aee5704cebf62dd63b4a9"/><file name="Start.php" hash="ef6527a85117c67a52291932339a25a1"/></dir><dir name="Info"><file name="Api.php" hash="a2893e155ba8c92776e12ed7d4472284"/><file name="Hcc.php" hash="7a2c713640e7fcee5d5c2150d1baff40"/><file name="Hps.php" hash="8b06d32980842db5274897d3bfba9df1"/></dir></dir><dir name="Controller"><file name="Abstract.php" hash="3082d6a39d67762df16eed690823aab3"/></dir><dir name="controllers"><file name="HccController.php" hash="4257caa14117e23565568855abe307a9"/><file name="HostedController.php" hash="d08cef939ce21212e30150354f86f6fc"/><file name="HpsController.php" hash="7c94d6d858f20f810cfd6df61a3238f3"/><file name="T3mController.php" hash="bf54d16c48e5fc9fec96dad1e6e0f0fc"/></dir><dir name="etc"><file name="config.xml" hash="6bac8185f76cb6d1d38a5ba008b6f51b"/><file name="system.xml" hash="bdb039f715fb9b2190c524e5d0e85051"/></dir><dir name="Helper"><file name="Cdata.php" hash="8e73bf53fd94e3b3af31bf3d42c42d72"/><file name="Data.php" hash="5ed8bc718e0fe451c28e9292fff73e97"/></dir><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="55c06a742eff55fa47be8a6251ecac44"/><file name="Direct.php" hash="bb6e10495f1a5f50feb0766dea293684"/><file name="Directprereg.php" hash="1ba0633478037b367bf3f15f091dcdb4"/><file name="Hcc.php" hash="5f54b2c9c23472f49ea61f4ba3041c94"/><file name="Hps.php" hash="40616c129c29acb6978b4bf543b4187c"/></dir><file name="Code.php" hash="43d2b25050901ebd6f6e82ed264de783"/><file name="Config.php" hash="612bce5a820094cdc809f6c3689d62b8"/><dir name="Datacash"><file name="Request.php" hash="8fc13fb3b8b38b2bf26167305d34e58b"/><file name="Response.php" hash="aa56436c93b2ededbec0f9e75f5e96d3"/><dir name="Simplexml"><file name="Element.php" hash="ac1b66c652eb1843a36dcbf1b94a40fa"/></dir></dir><file name="Dpg.php" hash="5ded0f39a06d12f538fbdf8fe7553c7c"/><dir name="Entity"><file name="Setup.php" hash="d74a82e89fe2213034f6558956ad9633"/></dir><dir name="Method"><file name="Abstract.php" hash="838a8a09927ba7768dd90757bc754d3d"/><file name="Api.php" hash="9be2125eeeed331d691b665351538f0a"/><file name="Apiprereg.php" hash="7af51159fa691a4593ca34754fa7490d"/><file name="Hcc.php" hash="f84c9ee095cf7aa18a5392ac8fe2c825"/><dir name="Hosted"><file name="Abstract.php" hash="32100702f8e7dbf2e3faafa1b541a981"/><file name="Interface.php" hash="926072fcd7d864e1f98da8b59b164eb7"/></dir><file name="Hps.php" hash="ce07c9a04d19558a052678e3df28c1f2"/></dir><file name="Observer.php" hash="8b1bb83efec831a079d8a248a5aa1f9c"/><dir name="Resource"><file name="Setup.php" hash="8c8dfa376d518c3b1122ecdeceec7683"/><dir name="Tokencard"><file name="Collection.php" hash="8f12f4c957db4c60542f345c909d7918"/></dir><file name="Tokencard.php" hash="4f1098828b12460edf828342fe88e559"/></dir><dir name="Service"><file name="Abstract.php" hash="8815585398e87b8bcb6d4c282b954f95"/><file name="Direct.php" hash="2dc35bf8f06de86cbdcb2975ea08ef9d"/><file name="Directprereg.php" hash="342849147fb97872192d800a2457c917"/><file name="Hcc.php" hash="090324b893a844715e3c06384bd456fe"/><dir name="State"><file name="Datacash.php" hash="79df9d849f4d23e154c1075b776ca888"/></dir></dir><file name="Service.php" hash="3c5374cf5d2f3d802fe032dce47c1c64"/><dir name="Source"><file name="Acceptreject.php" hash="a3142c294701177d85aab3a6f214e9b2"/><file name="Authtypes.php" hash="a7923edddb42f8ea86b2abb07546d62a"/><file name="GatewayMode.php" hash="c449151400da02fd3eff28cd799d4b46"/><file name="RsgBillingShipping.php" hash="03055dbd794ddef88e4c89d9f690e470"/><file name="RsgServiceTypes.php" hash="2a756b7341413ae462f3ad7f83c8ada6"/><file name="Threedstypes.php" hash="5f404d5d676a3baf0e0e71f1331decc2"/></dir><file name="Tokencard.php" hash="a83e3a6c6bfd86377727e5fab0b1020b"/></dir><dir name="sql"><dir name="datacash_dpg_setup"><file name="mysql4-install-0.1.0.php" hash="00a5d0be2b14d26ed85ed891b811abfc"/><file name="mysql4-upgrade-1.0.1-1.1.0.php" hash="a793557ab661f8d8a8535ae3a0683151"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="datacash"><dir><dir name="form"><file name="cc.phtml" hash="b798c2c2c0729bef424d1be5f64ca024"/><file name="cc.phtml.backup" hash="4930cc189ac48efe55694e5aec89939f"/><file name="cc_prereg.phtml" hash="5b33eaca19e25153a7bcedee02a6f0a6"/></dir><dir name="hcc"><file name="form.phtml" hash="81ed0746ffbd96d8000b95db7c281d03"/><file name="info.phtml" hash="eb512a6dab0d1396742cddf5c5db1598"/><file name="placeform.phtml" hash="b79869ff4346c230c6214b2bffdbc46c"/></dir><dir name="hps"><file name="form.phtml" hash="81ed0746ffbd96d8000b95db7c281d03"/><file name="info.phtml" hash="4bd99be8a9e08b77618fc2f596d2856a"/></dir><dir name="iframe"><file name="complete.phtml" hash="9190056410f552cb802a85b582127065"/><file name="form.phtml" hash="74abd537d1256778a19dd580d236224f"/><file name="start.phtml" hash="3493cd85bf3b3ca604990bd3d810d14d"/></dir></dir></dir></dir><dir name="layout"><file name="datacash.xml" hash="5f2531bbff2d8a5d2a20ea3ec91ea91e"/></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="en_GB"><file name="DataCash_Dpg.csv" hash="f5d24ae44a0d5f3ac76e74430059152d"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DataCash_Payment.xml" hash="7f1d393c458e2287f492fc01dd2f1265"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Datacash</name>
4
+ <version>1.2.5</version>
5
  <stability>stable</stability>
6
  <license>OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>DataCash payment gateway integration</summary>
10
  <description>DataCash payment gateway integration. System requirements as for Magento http://www.magentocommerce.com/system-requirements. cURL with the FOLLOWLOCATION option is used for service calls to DataCash. FOLLOWLOCATION requires safe_mode to be off and open_basedir to be disabled in the php.ini</description>
11
+ <notes>Version 1.2.5</notes>
12
  <authors><author><name>DataCash</name><user>datacash</user><email>support@datacash.com</email></author></authors>
13
+ <date>2014-10-20</date>
14
+ <time>08:43:55</time>
15
+ <contents><target name="magecommunity"><dir name="DataCash"><dir name="Dpg"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="c65030837e1ce97a063b9146f3bb983d"/></dir></dir></dir></dir><dir name="Form"><file name="Api.php" hash="033a34c52dc6dc03fa802c78e05fff9c"/><file name="Apiprereg.php" hash="bf28b55b476562ff459012c9fc21bc6d"/><file name="Hcc.php" hash="b3406a87a800b9182a0e4e259cf75754"/><file name="Hps.php" hash="47a732ebb397a14a145851cdb00ceb0b"/><file name="Iframe.php" hash="d0aad3633894b90f64112a962c8e3161"/><file name="Placeform.php" hash="19bafec3229f6f35382d9b725d41f620"/></dir><dir name="Iframe"><file name="Complete.php" hash="adbf0cb0a89aee5704cebf62dd63b4a9"/><file name="Start.php" hash="ef6527a85117c67a52291932339a25a1"/></dir><dir name="Info"><file name="Api.php" hash="a2893e155ba8c92776e12ed7d4472284"/><file name="Hcc.php" hash="7a2c713640e7fcee5d5c2150d1baff40"/><file name="Hps.php" hash="8b06d32980842db5274897d3bfba9df1"/></dir></dir><dir name="Controller"><file name="Abstract.php" hash="3082d6a39d67762df16eed690823aab3"/></dir><dir name="Helper"><file name="Cdata.php" hash="8e73bf53fd94e3b3af31bf3d42c42d72"/><file name="Data.php" hash="5ed8bc718e0fe451c28e9292fff73e97"/></dir><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="55c06a742eff55fa47be8a6251ecac44"/><file name="Direct.php" hash="bb6e10495f1a5f50feb0766dea293684"/><file name="Directprereg.php" hash="1ba0633478037b367bf3f15f091dcdb4"/><file name="Hcc.php" hash="5f54b2c9c23472f49ea61f4ba3041c94"/><file name="Hps.php" hash="40616c129c29acb6978b4bf543b4187c"/></dir><file name="Code.php" hash="43d2b25050901ebd6f6e82ed264de783"/><file name="Config.php" hash="612bce5a820094cdc809f6c3689d62b8"/><dir name="Datacash"><file name="Request.php" hash="8fc13fb3b8b38b2bf26167305d34e58b"/><file name="Response.php" hash="aa56436c93b2ededbec0f9e75f5e96d3"/><dir name="Simplexml"><file name="Element.php" hash="ac1b66c652eb1843a36dcbf1b94a40fa"/></dir></dir><file name="Dpg.php" hash="5ded0f39a06d12f538fbdf8fe7553c7c"/><dir name="Entity"><file name="Setup.php" hash="d74a82e89fe2213034f6558956ad9633"/></dir><dir name="Method"><file name="Abstract.php" hash="838a8a09927ba7768dd90757bc754d3d"/><file name="Api.php" hash="57f1f0db3c75d50f2977693b6b771b3c"/><file name="Apiprereg.php" hash="7af51159fa691a4593ca34754fa7490d"/><file name="Hcc.php" hash="4157135984275a240880dd657ba8a837"/><dir name="Hosted"><file name="Abstract.php" hash="32100702f8e7dbf2e3faafa1b541a981"/><file name="Interface.php" hash="926072fcd7d864e1f98da8b59b164eb7"/></dir><file name="Hps.php" hash="ce07c9a04d19558a052678e3df28c1f2"/></dir><file name="Observer.php" hash="8b1bb83efec831a079d8a248a5aa1f9c"/><dir name="Resource"><file name="Setup.php" hash="8c8dfa376d518c3b1122ecdeceec7683"/><dir name="Tokencard"><file name="Collection.php" hash="8f12f4c957db4c60542f345c909d7918"/></dir><file name="Tokencard.php" hash="4f1098828b12460edf828342fe88e559"/></dir><dir name="Service"><file name="Abstract.php" hash="8815585398e87b8bcb6d4c282b954f95"/><file name="Direct.php" hash="2dc35bf8f06de86cbdcb2975ea08ef9d"/><file name="Directprereg.php" hash="342849147fb97872192d800a2457c917"/><file name="Hcc.php" hash="090324b893a844715e3c06384bd456fe"/><dir name="State"><file name="Datacash.php" hash="79df9d849f4d23e154c1075b776ca888"/></dir></dir><file name="Service.php" hash="3c5374cf5d2f3d802fe032dce47c1c64"/><dir name="Source"><file name="Acceptreject.php" hash="a3142c294701177d85aab3a6f214e9b2"/><file name="Authtypes.php" hash="a7923edddb42f8ea86b2abb07546d62a"/><file name="GatewayMode.php" hash="c449151400da02fd3eff28cd799d4b46"/><file name="RsgBillingShipping.php" hash="03055dbd794ddef88e4c89d9f690e470"/><file name="RsgServiceTypes.php" hash="2a756b7341413ae462f3ad7f83c8ada6"/><file name="Threedstypes.php" hash="5f404d5d676a3baf0e0e71f1331decc2"/></dir><file name="Tokencard.php" hash="a83e3a6c6bfd86377727e5fab0b1020b"/></dir><dir name="controllers"><file name="HccController.php" hash="4257caa14117e23565568855abe307a9"/><file name="HostedController.php" hash="d08cef939ce21212e30150354f86f6fc"/><file name="HpsController.php" hash="7c94d6d858f20f810cfd6df61a3238f3"/><file name="T3mController.php" hash="bf54d16c48e5fc9fec96dad1e6e0f0fc"/></dir><dir name="etc"><file name="config.xml" hash="f2dca001e7d89f952e65b056f1934e39"/><file name="system.xml" hash="bdb039f715fb9b2190c524e5d0e85051"/></dir><dir name="sql"><dir name="datacash_dpg_setup"><file name="mysql4-install-0.1.0.php" hash="00a5d0be2b14d26ed85ed891b811abfc"/><file name="mysql4-upgrade-1.0.1-1.1.0.php" hash="a793557ab661f8d8a8535ae3a0683151"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="datacash"><dir><dir name="form"><file name="cc.phtml" hash="b798c2c2c0729bef424d1be5f64ca024"/><file name="cc.phtml.backup" hash="4930cc189ac48efe55694e5aec89939f"/><file name="cc_prereg.phtml" hash="5b33eaca19e25153a7bcedee02a6f0a6"/></dir><dir name="hcc"><file name="form.phtml" hash="81ed0746ffbd96d8000b95db7c281d03"/><file name="info.phtml" hash="eb512a6dab0d1396742cddf5c5db1598"/><file name="placeform.phtml" hash="b79869ff4346c230c6214b2bffdbc46c"/></dir><dir name="hps"><file name="form.phtml" hash="81ed0746ffbd96d8000b95db7c281d03"/><file name="info.phtml" hash="4bd99be8a9e08b77618fc2f596d2856a"/></dir><dir name="iframe"><file name="complete.phtml" hash="9190056410f552cb802a85b582127065"/><file name="form.phtml" hash="74abd537d1256778a19dd580d236224f"/><file name="start.phtml" hash="3493cd85bf3b3ca604990bd3d810d14d"/></dir></dir></dir></dir><dir name="layout"><file name="datacash.xml" hash="5f2531bbff2d8a5d2a20ea3ec91ea91e"/></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="en_GB"><file name="DataCash_Dpg.csv" hash="f5d24ae44a0d5f3ac76e74430059152d"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DataCash_Payment.xml" hash="7f1d393c458e2287f492fc01dd2f1265"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>