Debitway_Interac - Version 2.0.1

Version Notes

The Base currency of the magento should be same as the Currency with which merchant account is processing in Debitway.

Download this release

Release Info

Developer ramya
Extension Debitway_Interac
Version 2.0.1
Comparing to
See all releases


Code changes from version 2.0.0 to 2.0.1

app/code/local/Debitway/Interac/controllers/PaymentController.php CHANGED
@@ -171,7 +171,7 @@ class Debitway_Interac_PaymentController extends Mage_Core_Controller_Front_Acti
171
  $order = Mage::getModel('sales/order');
172
  $order->load($this->getCheckout()->getLastOrderId());
173
  $order->cancel();
174
- $order->addStatusToHistory($order->getStatus(), Mage::helper('debitway')->__('Cancelation of payment'));
175
  $order->save();
176
 
177
  //save the transaction id
171
  $order = Mage::getModel('sales/order');
172
  $order->load($this->getCheckout()->getLastOrderId());
173
  $order->cancel();
174
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('debitway')->__('Cancelation of payment:'.$error));
175
  $order->save();
176
 
177
  //save the transaction id
app/design/frontend/base/default/template/debitway/redirect.phtml CHANGED
@@ -8,6 +8,7 @@ $_order->loadByIncrementId($orderId);
8
  $items = $_order->getAllItems();
9
 
10
  $item_name_total ="";
 
11
  foreach($items as $item) {
12
  $qty = round($item->getData('qty_ordered'));
13
  $name = $item->getName();
@@ -15,11 +16,13 @@ foreach($items as $item) {
15
  if($item_name_total!=null){
16
  $item_name_total .='-';
17
  }
 
18
  $item_name_total .=$item_total;
19
 
20
  }
21
  $currency_code = $_order->getBaseCurrencyCode();
22
- $grandTotal1 = number_format($_order->getGrandTotal(),2);
 
23
 
24
  //$this->_order = Mage::getSingleton('sales/order')->loadByIncrementId();
25
 
@@ -72,7 +75,7 @@ $return_url .= 'debitway/payment/response';
72
  <input type="hidden" name="website_unique_id" value="<?php echo $website_unique_id; ?>">
73
  <input type="hidden" name="merchant_transaction_id" value="<?php echo $orderId; ?>">
74
  <input type="hidden" name="item_name" value="<?php echo $item_name_total; ?>">
75
- <input type="hidden" name="quantity" value="1">
76
  <input type="hidden" name="amount" value="<?php echo $grandTotal1; ?>">
77
  <input type="hidden" name="return_url" value="<?php echo $return_url; ?>">
78
  <input type="hidden" name="language" value="EN">
8
  $items = $_order->getAllItems();
9
 
10
  $item_name_total ="";
11
+ $item_quantity = 0;
12
  foreach($items as $item) {
13
  $qty = round($item->getData('qty_ordered'));
14
  $name = $item->getName();
16
  if($item_name_total!=null){
17
  $item_name_total .='-';
18
  }
19
+ $item_quantity += $qty;
20
  $item_name_total .=$item_total;
21
 
22
  }
23
  $currency_code = $_order->getBaseCurrencyCode();
24
+ $grandTotal1 = number_format($_order->getBaseGrandTotal(), 2, '.', '');
25
+
26
 
27
  //$this->_order = Mage::getSingleton('sales/order')->loadByIncrementId();
28
 
75
  <input type="hidden" name="website_unique_id" value="<?php echo $website_unique_id; ?>">
76
  <input type="hidden" name="merchant_transaction_id" value="<?php echo $orderId; ?>">
77
  <input type="hidden" name="item_name" value="<?php echo $item_name_total; ?>">
78
+ <input type="hidden" name="quantity" value="<?php echo $item_quantity; ?>">
79
  <input type="hidden" name="amount" value="<?php echo $grandTotal1; ?>">
80
  <input type="hidden" name="return_url" value="<?php echo $return_url; ?>">
81
  <input type="hidden" name="language" value="EN">
package.xml CHANGED
@@ -1,24 +1,41 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Debitway_Interac</name>
4
- <version>2.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>This extension incorporates the DebitWay Credit Card Module&#xD;
10
- </summary>
11
- <description>This extension is used for the Interac Payment (Direct Debit) for Debitway.&#xD;
12
- A redirection is done to Debitway page when user clicks on checkout and user can enter the information in that page. &#xD;
13
- &#xD;
14
- The return url brings the user back to magento store displaying the status of the transaction. &#xD;
 
 
 
 
 
 
 
 
 
 
 
15
  &#xD;
 
 
 
 
 
16
  </description>
17
- <notes>The Base currency of the magento should be same as the Currency with which merchant account is processing in Debitway</notes>
18
- <authors><author><name>ramya</name><user>tech4</user><email>tech@debitway.ca</email></author></authors>
19
- <date>2015-03-25</date>
20
- <time>21:10:16</time>
21
- <contents><target name="magelocal"><dir name="Debitway"><dir name="Interac"><dir name="Helper"><file name="Data.php" hash="b5b7b369a083dd0e306fedead9c839a3"/></dir><dir name="Model"><dir name="Service"><file name="Quote.php" hash="e05d162eaea3914482d608b6fc7fe1bd"/></dir><file name="Standard.php" hash="2e324fddaa9ad4030f5dc9350df54b89"/></dir><dir name="controllers"><file name="PaymentController.php" hash="031dcb89fcf30ee4827846da52a27dec"/></dir><dir name="etc"><file name="config.xml" hash="783501c2db9438652ffbe9a2b0204e59"/><file name="system.xml" hash="30bd020229230a807654c179e675611e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Debitway_Interac.xml" hash="485aad32d17a9a469deb969d5f27ba79"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="debitway"><file name="redirect.phtml" hash="5c13acb0a9960972ed3b79b0401a966b"/></dir></dir></dir></dir></dir></target></contents>
 
22
  <compatible/>
23
  <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.0</min><max>1.7</max></package><extension><name>gd</name><min>2.0.28</min><max>3.0</max></extension></required></dependencies>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Debitway_Interac</name>
4
+ <version>2.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>This is an extension which can be used for Interac Online Payment Method with DebitWay. It adds 'DebitWay Interac Online Payment Module' as a payment method during checkout.&#xD;
10
+ </summary>
11
+ <description>The plug-in integrates with DebitWay platform hence making easy for merchants to connect with DebitWay. Merchants have nothing else to do but install this extension, configure it and start processing transactions.&#xD;
12
+ &#xD;
13
+ Features:&#xD;
14
+ &#xB7; Payment Options provided are - Payment and Refund.&#xD;
15
+ &#xB7; Easy and flexible.&#xD;
16
+ &#xB7; Provide Secure, Trusted and Fast payment to your buyers.&#xD;
17
+ &#xB7; Fully open source and easy to use.&#xD;
18
+ &#xB7; Enable/disable payment method from admin panel.&#xD;
19
+ &#xB7; Proper error messages are displayed to guide your buyers.&#xD;
20
+ &#xB7; Independent of other plugins.&#xD;
21
+ &#xD;
22
+ &#xD;
23
+ How It works:&#xD;
24
+ &#xD;
25
+ In the checkout page, once buyers choose &#x2018;DebitWay Interac Online Payment&#x2019; option, they will be redirected to a page where they can choose their financial institution. Once at the financial institution website the buyers can login into their online baking solution and process the payment. Once the payment is completed, buyers are redirected back to the mechant's store. &#xD;
26
  &#xD;
27
+ The response from DebitWay is also displayed to the buyers. (E.g. : if the transaction succeeded, a success message is displayed with the Transaction ID. If the transaction failed, an error message is displayed back to buyer).&#xD;
28
+ &#xD;
29
+ Once the plug-in is installed the merchant needs to enter in the Magento panel the merchant account identifier, vericode and website unique id. Those are provided by DebitWay.&#xD;
30
+ &#xD;
31
+ This extension can be used only with the DebitWay platform for Interac Online.&#xD;
32
  </description>
33
+ <notes>The Base currency of the magento should be same as the Currency with which merchant account is processing in Debitway.&#xD;
34
+ </notes>
35
+ <authors><author><name>Ramya</name><user>tech4</user><email>tech@debitway.ca</email></author></authors>
36
+ <date>2015-05-22</date>
37
+ <time>17:37:40</time>
38
+ <contents><target name="magelocal"><dir name="Debitway"><dir name="Interac"><dir name="Helper"><file name="Data.php" hash="b5b7b369a083dd0e306fedead9c839a3"/></dir><dir name="Model"><dir name="Service"><file name="Quote.php" hash="e05d162eaea3914482d608b6fc7fe1bd"/></dir><file name="Standard.php" hash="2e324fddaa9ad4030f5dc9350df54b89"/></dir><dir name="controllers"><file name="PaymentController.php" hash="da846be78cb891a87a4c3d7bffb47339"/></dir><dir name="etc"><file name="config.xml" hash="783501c2db9438652ffbe9a2b0204e59"/><file name="system.xml" hash="30bd020229230a807654c179e675611e"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="debitway"><file name="redirect.phtml" hash="f078072049a72382ebc275eb317ec4cc"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Debitway_Interac.xml" hash="485aad32d17a9a469deb969d5f27ba79"/></dir></target></contents>
39
  <compatible/>
40
  <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.0</min><max>1.7</max></package><extension><name>gd</name><min>2.0.28</min><max>3.0</max></extension></required></dependencies>
41
  </package>