Dibspw - Version 4.2.5

Version Notes

4.2.5
- fixed bug with online
cancelling transaction
4.2.4
- fixed bugs in previous release 4.2.3
4.2.3
- Added capture, refund, cancel online
- small bugfixing
- cart is not empty on cancel
4.2.2
- Fixed problem with wrong rounding
4.2.1
- Removed language that not support
- Fixed problem with mobile numbers with dash
4.2.0
- added fee amount to order
4.1.9
- bugfixing release
4.1.8
- added support of Bundle Products
4.1.7
- utf encoding fixed
4.1.6
- Fixed bug with double quoted items names
- Fixed bug with HMAC code
- Added compatibility with compilation mode
- Added instruction for resolving problem with MAC code error

4.1.5
-Development


4.1.4
- Added Magento coupons support
- Fixed possible rounding issues
- Removed Mobile Payment Window, now DIBS Payment Window can automatically scale to different screen sizes.

4.1.3
- Removed protected Magento statuses from module configuration page (Closed, Completed)
- Fixed possible problems running extension on Windows-hosted Magento
- Page after cancel operation changed to orders list (instead of empty cart)

4.1.2&
- Confirmed compatibility with Magento 1.7.*
- Improved stability by using more low-level Magento API integration;
- Improved compatibility with DIBS invoice payments
- Added option to limit payment method usage by countries
- Added Transaction ID to order confirmation mail

4.1.1
- Fixed error on redirect with expired session&

- Improved compatibility with DIBS FlexWin Magento extension
- Fixed order statuses bug&
- Fixed account parameter bugs
- Fixed layout
- Fixed crash on dibspw_results table remove
- Fixed logo appearance bugs
- Fixed bug with message appearance in inappropriate places
- Added Sort Order option
- A lot of other fixes and improvements

4.1.0
- New module for DIBS Payment Window and Mobile Payment Window integration methods

Download this release

Release Info

Developer DIBS A/S
Extension Dibspw
Version 4.2.5
Comparing to
See all releases


Code changes from version 4.2.4 to 4.2.5

app/code/community/Dibspw/Dibspw/Model/Dibspw.php CHANGED
@@ -38,6 +38,13 @@ class Dibspw_Dibspw_Model_Dibspw extends dibs_pw_api {
38
  protected $_canSaveCc = false;
39
  protected $_isInitializeNeeded = true;
40
 
 
 
 
 
 
 
 
41
 
42
  /*
43
  * Validate the currency code is avaialable to use for dibs or not
@@ -125,6 +132,7 @@ class Dibspw_Dibspw_Model_Dibspw extends dibs_pw_api {
125
 
126
 
127
  public function cancel(Varien_Object $payment) {
 
128
  $result = $this->callDibsApi($payment,$amount,'CancelTransaction');
129
  switch ($result['status']) {
130
  case 'ACCEPT':
@@ -132,7 +140,7 @@ class Dibspw_Dibspw_Model_Dibspw extends dibs_pw_api {
132
  break;
133
 
134
  case 'ERROR' :
135
- $errorMsg = $this->_getHelper()->__("Error due online refund. Use DIBS Admin panel to manually cancel this transaction" . $result['message']);
136
  $this->log("Cancel ERROR. Error message:".$result['message'], $result['transaction_id']);
137
  break;
138
 
38
  protected $_canSaveCc = false;
39
  protected $_isInitializeNeeded = true;
40
 
41
+
42
+ public function authorize(Varien_Object $payment, $amount) {
43
+ return $this;
44
+ }
45
+
46
+
47
+
48
 
49
  /*
50
  * Validate the currency code is avaialable to use for dibs or not
132
 
133
 
134
  public function cancel(Varien_Object $payment) {
135
+
136
  $result = $this->callDibsApi($payment,$amount,'CancelTransaction');
137
  switch ($result['status']) {
138
  case 'ACCEPT':
140
  break;
141
 
142
  case 'ERROR' :
143
+ $errorMsg = $this->_getHelper()->__("Error due online cancel. Use DIBS Admin panel to manually cancel this transaction" . $result['message']);
144
  $this->log("Cancel ERROR. Error message:".$result['message'], $result['transaction_id']);
145
  break;
146
 
app/code/community/Dibspw/Dibspw/Model/Observer.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Dibspw_Dibspw_Model_Observer extends Mage_Core_Model_Abstract
3
+ {
4
+
5
+ public function order_cancel_after(Varien_Event_Observer $observer) {
6
+ $order = $observer->getOrder();
7
+ if ($order->getId()) {
8
+ $dibspw = Mage::getModel('dibspw/dibspw');
9
+ $dibspw->cancel($order->getPayment());
10
+ }
11
+ return $this;
12
+ }
13
+ }
14
+ ?>
app/code/community/Dibspw/Dibspw/Model/dibs_api/pw/dibs_pw_api.php CHANGED
@@ -6,7 +6,7 @@ require_once str_replace('\\', '/', dirname(__FILE__)) . '/dibs_pw_helpers.php';
6
  class dibs_pw_api extends dibs_pw_helpers {
7
 
8
  /**
9
- * DIBS responses log table.
10
  *
11
  * @var string
12
  */
@@ -34,7 +34,7 @@ class dibs_pw_api extends dibs_pw_helpers {
34
  *
35
  * @var string
36
  */
37
- private static $sFormAction = 'https://sat1.dibspayment.com/dibspaymentwindow/entrypoint';
38
 
39
  /*
40
  * Dibs Payment Window Base Api URL
@@ -179,7 +179,7 @@ class dibs_pw_api extends dibs_pw_helpers {
179
  if(strpos($aData['callbackurl'], '/5c65f1600b8_dcbf.php') === FALSE) {
180
  $aData['callbackurl'] = $this->helper_dibs_tools_url($aData['callbackurl']);
181
  }
182
- }
183
 
184
  /**
185
  * Adds Invoice API parameters specific for SAT PW.
6
  class dibs_pw_api extends dibs_pw_helpers {
7
 
8
  /**
9
+ * DIBS responses log table.
10
  *
11
  * @var string
12
  */
34
  *
35
  * @var string
36
  */
37
+ private static $sFormAction = 'https://sat1.dibspayment.com/dibspaymentwindow/entrypoint';
38
 
39
  /*
40
  * Dibs Payment Window Base Api URL
179
  if(strpos($aData['callbackurl'], '/5c65f1600b8_dcbf.php') === FALSE) {
180
  $aData['callbackurl'] = $this->helper_dibs_tools_url($aData['callbackurl']);
181
  }
182
+ }
183
 
184
  /**
185
  * Adds Invoice API parameters specific for SAT PW.
app/code/community/Dibspw/Dibspw/etc/config.xml CHANGED
@@ -24,13 +24,26 @@
24
  <config>
25
  <modules>
26
  <Dibspw_Dibspw>
27
- <version>4.2.4</version>
28
  <depends>
29
  <Mage_Paygate />
30
  </depends>
31
  </Dibspw_Dibspw>
32
  </modules>
33
  <global>
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  <sales>
35
  <order_invoice>
36
  <totals>
24
  <config>
25
  <modules>
26
  <Dibspw_Dibspw>
27
+ <version>4.2.5</version>
28
  <depends>
29
  <Mage_Paygate />
30
  </depends>
31
  </Dibspw_Dibspw>
32
  </modules>
33
  <global>
34
+
35
+ <events>
36
+ <order_cancel_after>
37
+ <observers>
38
+ <dibspw>
39
+ <type>singleton</type>
40
+ <class>dibspw/observer</class>
41
+ <method>order_cancel_after</method>
42
+ </dibspw>
43
+ </observers>
44
+ </order_cancel_after>
45
+ </events>
46
+
47
  <sales>
48
  <order_invoice>
49
  <totals>
app/code/community/Dibspw/Dibspw/sql/dibspw_setup/{mysql4-install-4.2.4.php → mysql4-install-4.2.5.php} RENAMED
File without changes
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dibspw</name>
4
- <version>4.2.4</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -31,7 +31,10 @@ Card types accepted by the DIBS payment gateway: &#xD;
31
  - Danske Bank e-betaling &#xD;
32
  - Nordea e-betaling &#xD;
33
  A complete list can be found at http://www.dibspayment.com/</description>
34
- <notes>4.2.4&#xD;
 
 
 
35
  - fixed bugs in previous release 4.2.3&#xD;
36
  4.2.3&#xD;
37
  - Added capture, refund, cancel online&#xD;
@@ -93,9 +96,9 @@ A complete list can be found at http://www.dibspayment.com/</description>
93
  4.1.0 &#xD;
94
  - New module for DIBS Payment Window and Mobile Payment Window integration methods </notes>
95
  <authors><author><name>DIBS A/S</name><user>niso</user><email>info@dibs.dk</email></author></authors>
96
- <date>2013-07-26</date>
97
- <time>09:12:30</time>
98
- <contents><target name="magecommunity"><dir name="Dibspw"><dir name="Dibspw"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Totals.php" hash="d94792c5d13cf9ee3b3fba51655989f8"/></dir><dir name="Invoice"><file name="Totals.php" hash="1294d0a40d42cafdb39d205953ec948c"/></dir><file name="Totals.php" hash="81ead413ddaf2030011fa57fbb485ab7"/></dir></dir></dir><file name="Failure.php" hash="17e6a66c34637fac033d3e04c9e6a45e"/><file name="Form.php" hash="ac2155fe9ed943a258118dfb127ea30f"/><file name="Info.php" hash="aab0d56dbc869c0af8c213b5adb8885b"/><file name="Redirect.php" hash="b67600699025f99eaadb6cc7f27b42b1"/></dir><dir name="Helper"><file name="Data.php" hash="3ac20dd79b0d2e0cc1609f6b65d330c5"/></dir><dir name="Model"><file name="Dibspw.php" hash="7dc18001516ac9acca3aff614d147354"/><dir name="Mysql4"><file name="Setup.php" hash="1c135886bc8a0794310ec7cb70e04e64"/></dir><dir name="Sales"><dir name="Order"><file name="Fee.php" hash="81e7ffa06e95d77600948df8b9580be6"/><dir name="Total"><dir name="Creditmemo"><file name="Fee.php" hash="9843ad38862dcb0eb3c188f4b087bcdb"/></dir><dir name="Invoice"><file name="Fee.php" hash="d07f43c019739fcc60cdb41e4d778d08"/></dir><dir name="Order"><file name="Fee.php" hash="f7058003197c940c7092889f756f48ec"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Fee.php" hash="80faf1d3922ca905efeaacee82215af5"/></dir></dir></dir></dir><dir name="Service"><file name="Quote.php" hash="4c40330512775bded9a446c593118ee5"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Bundle.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Dibslogos.php" hash="d6cb9db1bd11f8cb40f79fc20fa9c44d"/><file name="Dibspaytypes.php" hash="7efbab315ad0cbdad7149f38c4a155d5"/><file name="Dibsyesno.php" hash="bd2708b2993a928f07215f09ba500094"/><file name="Lang.php" hash="0e3de6f18a689e3bfde21a90a9fa179e"/><file name="Orderstatusafter.php" hash="b2f27bddca028be1769051c5b191f1cc"/><file name="Orderstatusbefore.php" hash="e5ff243f2f310609465310c3719327d3"/><file name="PBBdistribution.php" hash="670ced20a731d657081ab720ad9bbc7a"/></dir></dir></dir><dir name="dibs_api"><dir name="pw"><file name="dibs_pw_api.php" hash="dd4bcdc629c205b61c66d09d2e111416"/><file name="dibs_pw_helpers.php" hash="7a417fbb8a0fbfac504eb4ac240ecde4"/><file name="dibs_pw_helpers_cms.php" hash="be4358677106128378da793d65fb2362"/><file name="dibs_pw_helpers_interface.php" hash="17a79ee1e27fdd1c6590c07133ba8c04"/><dir name="tmpl"><file name="dibs_pw_error" hash="7f82ad3b9f30425d21cc8991d7c90bf5"/></dir></dir></dir></dir><dir name="controllers"><file name="DibspwController.php" hash="d0381ba20d885c30927471aa26a5e7db"/></dir><dir name="etc"><file name="config.xml" hash="9f6bc5f91d9fbb6dd625e984e3b35449"/><file name="system.xml" hash="56269fd456c10d6e491f935d86350707"/></dir><dir name="sql"><dir name="dibspw_setup"><file name="mysql4-install-4.2.4.php" hash="befcb176eb030b2a8e831c413e30c7b0"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Dibspw_Dibspw.xml" hash="7c82595e6638c292f71a0ad5be4ecaf0"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Mage_Dibspw.csv" hash="38c7e584e9d49ffe1a3313417b403971"/></dir><dir name="nb_NO"><file name="Mage_Dibspw.csv" hash="8e78376a0b6aa14f7f60ace5a3db126f"/><file name="Mage_Dibspw.csv" hash="8e78376a0b6aa14f7f60ace5a3db126f"/></dir><dir name="nn_NO"><file name="Mage_Dibspw.csv" hash="04e799b7c54e246ebd76fcf6e414343d"/></dir><dir name="sv_SE"><file name="Mage_Dibspw.csv" hash="ecce28ec24bd2b02967c3eee5c40e120"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="dibspw"><dir name="dibspw"><file name="failure.phtml" hash="f5a7ed44946651f7ad4b1beeca7499be"/><file name="form.phtml" hash="c101fa3c34271f92a8276e76310dd98f"/><dir name="order"><dir name="creditmemo"><file name="totals.phtml" hash="f0c4d178bc7f5b6d93d1a8c42833e0be"/></dir><dir name="invoice"><file name="totals.phtml" hash="8fd636f8685a44ed936daca2c7ff63aa"/></dir><file name="totals.phtml" hash="87db23cb809f5164cd898c1ffa5d36b4"/></dir><file name="redirect.phtml" hash="28e2ab33b1394bc721208a06deccb785"/></dir></dir></dir><dir name="layout"><file name="dibspw.xml" hash="53204bb9885269745c0fe234a629d429"/></dir></dir></dir></dir></target></contents>
99
  <compatible/>
100
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
101
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dibspw</name>
4
+ <version>4.2.5</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
31
  - Danske Bank e-betaling &#xD;
32
  - Nordea e-betaling &#xD;
33
  A complete list can be found at http://www.dibspayment.com/</description>
34
+ <notes>4.2.5&#xD;
35
+ - fixed bug with online &#xD;
36
+ cancelling transaction&#xD;
37
+ 4.2.4&#xD;
38
  - fixed bugs in previous release 4.2.3&#xD;
39
  4.2.3&#xD;
40
  - Added capture, refund, cancel online&#xD;
96
  4.1.0 &#xD;
97
  - New module for DIBS Payment Window and Mobile Payment Window integration methods </notes>
98
  <authors><author><name>DIBS A/S</name><user>niso</user><email>info@dibs.dk</email></author></authors>
99
+ <date>2013-08-09</date>
100
+ <time>08:39:26</time>
101
+ <contents><target name="magecommunity"><dir name="Dibspw"><dir name="Dibspw"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Totals.php" hash="d94792c5d13cf9ee3b3fba51655989f8"/></dir><dir name="Invoice"><file name="Totals.php" hash="1294d0a40d42cafdb39d205953ec948c"/></dir><file name="Totals.php" hash="81ead413ddaf2030011fa57fbb485ab7"/></dir></dir></dir><file name="Failure.php" hash="17e6a66c34637fac033d3e04c9e6a45e"/><file name="Form.php" hash="ac2155fe9ed943a258118dfb127ea30f"/><file name="Info.php" hash="aab0d56dbc869c0af8c213b5adb8885b"/><file name="Redirect.php" hash="b67600699025f99eaadb6cc7f27b42b1"/></dir><dir name="Helper"><file name="Data.php" hash="3ac20dd79b0d2e0cc1609f6b65d330c5"/></dir><dir name="Model"><file name="Dibspw.php" hash="f9c2e800f7a30c516e8661e4b68b7234"/><dir name="Mysql4"><file name="Setup.php" hash="1c135886bc8a0794310ec7cb70e04e64"/></dir><file name="Observer.php" hash="88c3eb72dfca23daf9605263480ca717"/><dir name="Sales"><dir name="Order"><file name="Fee.php" hash="81e7ffa06e95d77600948df8b9580be6"/><dir name="Total"><dir name="Creditmemo"><file name="Fee.php" hash="9843ad38862dcb0eb3c188f4b087bcdb"/></dir><dir name="Invoice"><file name="Fee.php" hash="d07f43c019739fcc60cdb41e4d778d08"/></dir><dir name="Order"><file name="Fee.php" hash="f7058003197c940c7092889f756f48ec"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Fee.php" hash="80faf1d3922ca905efeaacee82215af5"/></dir></dir></dir></dir><dir name="Service"><file name="Quote.php" hash="4c40330512775bded9a446c593118ee5"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Bundle.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Dibslogos.php" hash="d6cb9db1bd11f8cb40f79fc20fa9c44d"/><file name="Dibspaytypes.php" hash="7efbab315ad0cbdad7149f38c4a155d5"/><file name="Dibsyesno.php" hash="bd2708b2993a928f07215f09ba500094"/><file name="Lang.php" hash="0e3de6f18a689e3bfde21a90a9fa179e"/><file name="Orderstatusafter.php" hash="b2f27bddca028be1769051c5b191f1cc"/><file name="Orderstatusbefore.php" hash="e5ff243f2f310609465310c3719327d3"/><file name="PBBdistribution.php" hash="670ced20a731d657081ab720ad9bbc7a"/></dir></dir></dir><dir name="dibs_api"><dir name="pw"><file name="dibs_pw_api.php" hash="5777473b1167319b779ec400315d2479"/><file name="dibs_pw_helpers.php" hash="7a417fbb8a0fbfac504eb4ac240ecde4"/><file name="dibs_pw_helpers_cms.php" hash="be4358677106128378da793d65fb2362"/><file name="dibs_pw_helpers_interface.php" hash="17a79ee1e27fdd1c6590c07133ba8c04"/><dir name="tmpl"><file name="dibs_pw_error" hash="7f82ad3b9f30425d21cc8991d7c90bf5"/></dir></dir></dir></dir><dir name="controllers"><file name="DibspwController.php" hash="d0381ba20d885c30927471aa26a5e7db"/></dir><dir name="etc"><file name="config.xml" hash="b934a7373d96a56b3ce07483b9ff86fb"/><file name="system.xml" hash="56269fd456c10d6e491f935d86350707"/></dir><dir name="sql"><dir name="dibspw_setup"><file name="mysql4-install-4.2.5.php" hash="befcb176eb030b2a8e831c413e30c7b0"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Dibspw_Dibspw.xml" hash="7c82595e6638c292f71a0ad5be4ecaf0"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Mage_Dibspw.csv" hash="38c7e584e9d49ffe1a3313417b403971"/></dir><dir name="nb_NO"><file name="Mage_Dibspw.csv" hash="8e78376a0b6aa14f7f60ace5a3db126f"/><file name="Mage_Dibspw.csv" hash="8e78376a0b6aa14f7f60ace5a3db126f"/></dir><dir name="nn_NO"><file name="Mage_Dibspw.csv" hash="04e799b7c54e246ebd76fcf6e414343d"/></dir><dir name="sv_SE"><file name="Mage_Dibspw.csv" hash="ecce28ec24bd2b02967c3eee5c40e120"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="dibspw"><dir name="dibspw"><file name="failure.phtml" hash="f5a7ed44946651f7ad4b1beeca7499be"/><file name="form.phtml" hash="c101fa3c34271f92a8276e76310dd98f"/><dir name="order"><dir name="creditmemo"><file name="totals.phtml" hash="f0c4d178bc7f5b6d93d1a8c42833e0be"/></dir><dir name="invoice"><file name="totals.phtml" hash="8fd636f8685a44ed936daca2c7ff63aa"/></dir><file name="totals.phtml" hash="87db23cb809f5164cd898c1ffa5d36b4"/></dir><file name="redirect.phtml" hash="28e2ab33b1394bc721208a06deccb785"/></dir></dir></dir><dir name="layout"><file name="dibspw.xml" hash="53204bb9885269745c0fe234a629d429"/></dir></dir></dir></dir></target></contents>
102
  <compatible/>
103
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
104
  </package>