DebitwayCC_Creditcard - 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 DebitwayCC_Creditcard
Version 2.0.1
Comparing to
See all releases


Code changes from version 2.0.0 to 2.0.1

app/code/community/DebitwayCC/Creditcard/Model/Pay.php CHANGED
@@ -229,6 +229,7 @@ class DebitwayCC_Creditcard_Model_Pay extends Mage_Payment_Model_Method_Cc {
229
  $items = $order->getAllItems();
230
 
231
  $item_name_total ="";
 
232
  foreach($items as $item) {
233
  $qty = round($item->getData('qty_ordered'));
234
  $name = $item->getName();
@@ -236,10 +237,11 @@ class DebitwayCC_Creditcard_Model_Pay extends Mage_Payment_Model_Method_Cc {
236
  if($item_name_total!=null){
237
  $item_name_total .='-';
238
  }
 
239
  $item_name_total .=$item_total;
240
 
241
  }
242
- $grandTotal1 = number_format($order->getBaseGrandTotal(),2);
243
 
244
  $currency_code = $order->getBaseCurrencyCode();
245
  $current_currency_code = $order->getDefaultCurrencyCode();
@@ -377,7 +379,7 @@ class DebitwayCC_Creditcard_Model_Pay extends Mage_Payment_Model_Method_Cc {
377
  'phone'=> $bphone,
378
  'amount'=> $grandTotal1,
379
  'language'=> 'en',
380
- 'quantity'=> '1',
381
  'cc_type'=> $cc_type,
382
  'cc_number'=> $cc_number,
383
  'cc_expdate'=> $cc_expdate,
@@ -445,7 +447,7 @@ class DebitwayCC_Creditcard_Model_Pay extends Mage_Payment_Model_Method_Cc {
445
  'phone'=> $bphone,
446
  'amount'=> $grandTotal1,
447
  'language'=> 'en',
448
- 'quantity'=> '1',
449
  'cc_type'=> $cc_type,
450
  'cc_number'=> $cc_number,
451
  'cc_expdate'=> $cc_expdate,
229
  $items = $order->getAllItems();
230
 
231
  $item_name_total ="";
232
+ $item_quantity=0;
233
  foreach($items as $item) {
234
  $qty = round($item->getData('qty_ordered'));
235
  $name = $item->getName();
237
  if($item_name_total!=null){
238
  $item_name_total .='-';
239
  }
240
+ $item_quantity +=$qty;
241
  $item_name_total .=$item_total;
242
 
243
  }
244
+ $grandTotal1 = number_format($_order->getBaseGrandTotal(), 2, '.', '');
245
 
246
  $currency_code = $order->getBaseCurrencyCode();
247
  $current_currency_code = $order->getDefaultCurrencyCode();
379
  'phone'=> $bphone,
380
  'amount'=> $grandTotal1,
381
  'language'=> 'en',
382
+ 'quantity'=> $item_quantity,
383
  'cc_type'=> $cc_type,
384
  'cc_number'=> $cc_number,
385
  'cc_expdate'=> $cc_expdate,
447
  'phone'=> $bphone,
448
  'amount'=> $grandTotal1,
449
  'language'=> 'en',
450
+ 'quantity'=> $item_quantity,
451
  'cc_type'=> $cc_type,
452
  'cc_number'=> $cc_number,
453
  'cc_expdate'=> $cc_expdate,
app/code/community/DebitwayCC/Creditcard/etc/system.xml CHANGED
@@ -66,6 +66,15 @@
66
  <show_in_store>1</show_in_store>
67
  </title>
68
 
 
 
 
 
 
 
 
 
 
69
  <vericode>
70
  <label>Vericode</label>
71
  <frontend_type>text</frontend_type>
66
  <show_in_store>1</show_in_store>
67
  </title>
68
 
69
+ <merchant_id>
70
+ <label>Merchant ID</label>
71
+ <frontend_type>text</frontend_type>
72
+ <sort_order>120</sort_order>
73
+ <show_in_default>1</show_in_default>
74
+ <show_in_website>1</show_in_website>
75
+ <show_in_store>0</show_in_store>
76
+ </merchant_id>
77
+
78
  <vericode>
79
  <label>Vericode</label>
80
  <frontend_type>text</frontend_type>
app/etc/modules/DebitwayCC_Creditcard.xml CHANGED
@@ -4,6 +4,9 @@
4
  <DebitwayCC_Creditcard>
5
  <active>true</active>
6
  <codePool>community</codePool>
 
 
 
7
  </DebitwayCC_Creditcard>
8
  </modules>
9
  </config>
4
  <DebitwayCC_Creditcard>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ <depends>
8
+ <Mage_Payment />
9
+ </depends>
10
  </DebitwayCC_Creditcard>
11
  </modules>
12
  </config>
package.xml CHANGED
@@ -1,21 +1,39 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DebitwayCC_Creditcard</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 plugin is used to support Debitway Credit card integration.</summary>
10
- <description>This plug in incorporates the DebitWay Credit Card Payment Processing.&#xD;
 
 
 
 
 
 
 
 
 
 
11
  &#xD;
12
- The information is collected by the user and details are send to Debitway. Based on the response from Debitway, the transaction is either saved or not saved. &#xD;
13
- </description>
14
- <notes>The Base currency of the magento should be same as the Currency with which merchant account is processing in Debitway</notes>
15
- <authors><author><name>ramya</name><user>tech4</user><email>tech@debitway.ca</email></author></authors>
16
- <date>2015-03-25</date>
17
- <time>19:52:56</time>
18
- <contents><target name="magecommunity"><dir name="DebitwayCC"><dir name="Creditcard"><dir name="Block"><dir name="Form"><file name="Pay.php" hash="d4f3ef8fab1defffee9fb2f5e925ad77"/></dir><dir name="Info"><file name="Pay.php" hash="38f5fd149883267bee345d98abedfb98"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fa1e42e8278b9a11dd4c3c86cbc62c2f"/></dir><dir name="Model"><file name="Pay.php" hash="dfce333207f24f27390b0a078c30beeb"/><dir name="Source"><file name="Action.php" hash="bf50491a440da1fb423f250c11e446ea"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="9a9b8a5bfbd60699499f73a1497c33f0"/></dir><dir name="etc"><file name="config.xml" hash="dfb34b49370888933ab399ec3d54a532"/><file name="system.xml" hash="56360152b744d2d72d5609f9af154a42"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DebitwayCC_Creditcard.xml" hash="81024901b4eda192c2adff48ea676740"/></dir></target></contents>
 
 
 
 
 
 
 
 
19
  <compatible/>
20
  <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>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DebitwayCC_Creditcard</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 Credit Card Payment Method with DebitWay. It adds 'DebitWay Credit Card Payment Module' as a payment method during checkout. </summary>
10
+ <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;
11
+ &#xD;
12
+ &#xD;
13
+ Features:&#xD;
14
+ &#xB7; Payment Options provided are - Payment, Authorized payment, Capture, Refund and Decline.&#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, if the buyer chooses DebitWay Credit Card Payment option, then the buyer will be asked to enter the credit card details and a a payment request will be sent to DebitWay. &#xD;
26
+ &#xD;
27
+ The response from DebitWay is shown to the buyer. (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 credit cards.</description>
32
+ <notes>The Base currency of the magento should be same as the Currency with which merchant account is processing in Debitway.</notes>
33
+ <authors><author><name>Ramya</name><user>tech4</user><email>tech@debitway.ca</email></author></authors>
34
+ <date>2015-05-25</date>
35
+ <time>17:31:19</time>
36
+ <contents><target name="magecommunity"><dir name="DebitwayCC"><dir name="Creditcard"><dir name="Block"><dir name="Form"><file name="Pay.php" hash="d4f3ef8fab1defffee9fb2f5e925ad77"/></dir><dir name="Info"><file name="Pay.php" hash="38f5fd149883267bee345d98abedfb98"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fa1e42e8278b9a11dd4c3c86cbc62c2f"/></dir><dir name="Model"><file name="Pay.php" hash="93a35e3b3bae1de44b1394acfa618ab5"/><dir name="Source"><file name="Action.php" hash="bf50491a440da1fb423f250c11e446ea"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="9a9b8a5bfbd60699499f73a1497c33f0"/></dir><dir name="etc"><file name="config.xml" hash="dfb34b49370888933ab399ec3d54a532"/><file name="system.xml" hash="ee77e408b718164063f4a810f93b1ce4"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DebitwayCC_Creditcard.xml" hash="d5495a591a2960d065138f202895f0bc"/></dir></target></contents>
37
  <compatible/>
38
  <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>
39
  </package>