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($
|
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'=>
|
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'=>
|
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.
|
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
|
10 |
-
<description>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |

|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
11 |
+

|
12 |
+

|
13 |
+
Features:
|
14 |
+
· Payment Options provided are - Payment, Authorized payment, Capture, Refund and Decline.
|
15 |
+
· Easy and flexible.
|
16 |
+
· Provide Secure, Trusted and Fast payment to your buyers.
|
17 |
+
· Fully open source and easy to use.
|
18 |
+
· Enable/disable payment method from admin panel.
|
19 |
+
· Proper error messages are displayed to guide your buyers.
|
20 |
+
· Independent of other plugins.
|
21 |

|
22 |
+

|
23 |
+
How It works:
|
24 |
+

|
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. 
|
26 |
+

|
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).
|
28 |
+

|
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.
|
30 |
+

|
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>
|