Version Notes
*support both HPP and silent post
*support for authorization then capture
*support refund
*fixed email send and order status in HPP
Download this release
Release Info
Developer | Udi |
Extension | Mahala_PaymentInt_CheckOut |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
app/code/community/Mahala/PaymentInt/Model/PaymentMethod.php
CHANGED
@@ -171,6 +171,7 @@ class Mahala_PaymentInt_Model_PaymentMethod extends Mage_Payment_Model_Method_Ab
|
|
171 |
$ReqStr .= "&CVV2=" . $payment->getCcCid();
|
172 |
}
|
173 |
$ReqStr .= "&Payments=1";
|
|
|
174 |
//echo $ReqStr; exit();
|
175 |
return $ReqStr;
|
176 |
}
|
@@ -278,10 +279,12 @@ class Mahala_PaymentInt_Model_PaymentMethod extends Mage_Payment_Model_Method_Ab
|
|
278 |
$params['disp_payFor'] = 'Payment for order #'.$order_id;
|
279 |
$params['trans_amount'] = trim(round($order->getGrandTotal(), 2));
|
280 |
$params['trans_currency'] = $order->getBaseCurrencyCode();
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
|
|
|
|
285 |
if (!empty($order)) {
|
286 |
$billing = $order->getBillingAddress();
|
287 |
if (!empty($billing)) {
|
171 |
$ReqStr .= "&CVV2=" . $payment->getCcCid();
|
172 |
}
|
173 |
$ReqStr .= "&Payments=1";
|
174 |
+
if ($this->getConfigData('UseCCStorage')) $ReqStr .= "&StoreCc=1";
|
175 |
//echo $ReqStr; exit();
|
176 |
return $ReqStr;
|
177 |
}
|
279 |
$params['disp_payFor'] = 'Payment for order #'.$order_id;
|
280 |
$params['trans_amount'] = trim(round($order->getGrandTotal(), 2));
|
281 |
$params['trans_currency'] = $order->getBaseCurrencyCode();
|
282 |
+
$params['trans_type'] = $nTransType;
|
283 |
+
if ($this->getConfigData('UseCCStorage')) $params['trans_storePm'] = "1";
|
284 |
+
$params['signature'] = $signature;
|
285 |
+
$params['disp_lng'] = $this->getConfigData('UILanguage');
|
286 |
+
$params['url_redirect'] = Mage::getUrl('Mahala_PaymentInt/Redirect/success');
|
287 |
+
|
288 |
if (!empty($order)) {
|
289 |
$billing = $order->getBillingAddress();
|
290 |
if (!empty($billing)) {
|
app/code/community/Mahala/PaymentInt/etc/config.xml
CHANGED
@@ -59,6 +59,7 @@
|
|
59 |
<order_status>pending_payment</order_status>
|
60 |
<title>Mahala</title>
|
61 |
<UseRedirect>1</UseRedirect>
|
|
|
62 |
<payment_action>authorize</payment_action>
|
63 |
<allowspecific>0</allowspecific>
|
64 |
</Mahala_PaymentInt>
|
59 |
<order_status>pending_payment</order_status>
|
60 |
<title>Mahala</title>
|
61 |
<UseRedirect>1</UseRedirect>
|
62 |
+
<UseCCStorage>0</UseCCStorage>
|
63 |
<payment_action>authorize</payment_action>
|
64 |
<allowspecific>0</allowspecific>
|
65 |
</Mahala_PaymentInt>
|
app/code/community/Mahala/PaymentInt/etc/system.xml
CHANGED
@@ -78,6 +78,15 @@
|
|
78 |
<show_in_website>1</show_in_website>
|
79 |
<show_in_store>0</show_in_store>
|
80 |
</ShowOwnerID>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
</fields>
|
82 |
</Mahala_PaymentInt>
|
83 |
|
78 |
<show_in_website>1</show_in_website>
|
79 |
<show_in_store>0</show_in_store>
|
80 |
</ShowOwnerID>
|
81 |
+
<UseCCStorage translate="label">
|
82 |
+
<label>Use Token System</label>
|
83 |
+
<frontend_type>select</frontend_type>
|
84 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
85 |
+
<sort_order>8</sort_order>
|
86 |
+
<show_in_default>1</show_in_default>
|
87 |
+
<show_in_website>1</show_in_website>
|
88 |
+
<show_in_store>0</show_in_store>
|
89 |
+
</UseCCStorage>
|
90 |
</fields>
|
91 |
</Mahala_PaymentInt>
|
92 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mahala_PaymentInt_CheckOut</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.mahala.us">Freeware</license>
|
7 |
<channel>community</channel>
|
@@ -14,9 +14,9 @@
|
|
14 |
*fixed email send and order status in HPP
|
15 |
</notes>
|
16 |
<authors><author><name>Udi</name><user>Udi</user><email>udi@ctrlz.co.il</email></author></authors>
|
17 |
-
<date>
|
18 |
-
<time>
|
19 |
-
<contents><target name="magecommunity"><dir name="Mahala"><dir name="PaymentInt"><dir name="Block"><dir name="Form"><file name="Cc.php" hash="b19166f60034b6beac02862909edb702"/></dir><dir name="Info"><file name="Cc.php" hash="3905100f4278632120b435d57663065d"/></dir><file name="Redirect.php" hash="362ed979eaaf27e4cd112c08f007b204"/></dir><dir name="Model"><file name="PaymentMethod.php" hash="
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.2.0</min><max>5.6.0</max></php></required></dependencies>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mahala_PaymentInt_CheckOut</name>
|
4 |
+
<version>1.0.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.mahala.us">Freeware</license>
|
7 |
<channel>community</channel>
|
14 |
*fixed email send and order status in HPP
|
15 |
</notes>
|
16 |
<authors><author><name>Udi</name><user>Udi</user><email>udi@ctrlz.co.il</email></author></authors>
|
17 |
+
<date>2014-02-27</date>
|
18 |
+
<time>10:56:08</time>
|
19 |
+
<contents><target name="magecommunity"><dir name="Mahala"><dir name="PaymentInt"><dir name="Block"><dir name="Form"><file name="Cc.php" hash="b19166f60034b6beac02862909edb702"/></dir><dir name="Info"><file name="Cc.php" hash="3905100f4278632120b435d57663065d"/></dir><file name="Redirect.php" hash="362ed979eaaf27e4cd112c08f007b204"/></dir><dir name="Model"><file name="PaymentMethod.php" hash="01f8ca7b08143c07352f2fc8a40c2279"/></dir><dir name="controllers"><file name="RedirectController.php" hash="22096d618a0733996a6a2b2876cc49fe"/></dir><dir name="etc"><file name="config.xml" hash="9d5a25c4084c6e634827c85da73c49c0"/><file name="system.xml" hash="e924fc7f962b540f9011eaf42db265b6"/></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Mahala_PaymentInt.xml" hash="d8f08f091ce9c9c51053a56e1bdd3437"/></dir></dir></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.2.0</min><max>5.6.0</max></php></required></dependencies>
|
22 |
</package>
|