Version Notes
- Support for IBAN bank accounts
Download this release
Release Info
Developer | Magento Core Team |
Extension | Phoenix_Creditpass |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
app/code/community/Phoenix/Creditpass/Helper/Data.php
CHANGED
@@ -95,12 +95,22 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
95 |
// add additional information for supported payment methods
|
96 |
switch ($payment->getMethod()) {
|
97 |
case 'debit':
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
break;
|
105 |
case 'ccsave':
|
106 |
$queryobj->addChild('PAN', $payment->getCcNumber());
|
@@ -284,4 +294,4 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
284 |
</RESPONSE>';
|
285 |
}
|
286 |
}
|
287 |
-
?>
|
95 |
// add additional information for supported payment methods
|
96 |
switch ($payment->getMethod()) {
|
97 |
case 'debit':
|
98 |
+
// fix decrypt but in extension
|
99 |
+
|
100 |
+
// IBAN fix
|
101 |
+
$ibanTemp = $paymentInfo->getAccountIban();
|
102 |
+
|
103 |
+
if(empty($ibanTemp)){
|
104 |
+
$blz = (strpos($paymentInfo->getAccountBLZ(), '=') !== false) ? $paymentInfo->decrypt($paymentInfo->decrypt($paymentInfo->getAccountBLZ())) : $paymentInfo->getAccountBLZ();
|
105 |
+
$konto = (strpos($paymentInfo->getAccountNumber(), '=') !== false) ? $paymentInfo->decrypt($paymentInfo->decrypt($paymentInfo->getAccountNumber())) : $paymentInfo->getAccountNumber();
|
106 |
+
|
107 |
+
$queryobj->addChild('BLZ', $blz);
|
108 |
+
$queryobj->addChild('KONTONR', $konto);
|
109 |
+
} else {
|
110 |
+
$iban = (strpos($paymentInfo->getAccountIban(), '=') !== false) ? $paymentInfo->decrypt($paymentInfo->decrypt($paymentInfo->getAccountIban())) : $paymentInfo->getAccountIban();
|
111 |
+
|
112 |
+
$queryobj->addChild('IBAN', $iban);
|
113 |
+
}
|
114 |
break;
|
115 |
case 'ccsave':
|
116 |
$queryobj->addChild('PAN', $payment->getCcNumber());
|
294 |
</RESPONSE>';
|
295 |
}
|
296 |
}
|
297 |
+
?>
|
app/code/community/Phoenix/Creditpass/etc/config.xml
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
<config>
|
22 |
<modules>
|
23 |
<Phoenix_Creditpass>
|
24 |
-
<version>1.0.
|
25 |
</Phoenix_Creditpass>
|
26 |
</modules>
|
27 |
<global>
|
@@ -156,4 +156,4 @@
|
|
156 |
</settings>
|
157 |
</creditpass>
|
158 |
</default>
|
159 |
-
</config>
|
21 |
<config>
|
22 |
<modules>
|
23 |
<Phoenix_Creditpass>
|
24 |
+
<version>1.0.5</version>
|
25 |
</Phoenix_Creditpass>
|
26 |
</modules>
|
27 |
<global>
|
156 |
</settings>
|
157 |
</creditpass>
|
158 |
</default>
|
159 |
+
</config>
|
app/design/frontend/default/default/template/creditpass/processing.phtml
CHANGED
@@ -19,34 +19,6 @@
|
|
19 |
<?php if (Mage::helper('creditpass')->moduleActive()): ?>
|
20 |
<script type="text/javascript">
|
21 |
payment.onSave = function(paymentTransport){
|
22 |
-
// handle error, taken from payment.nextStep
|
23 |
-
|
24 |
-
if (paymentTransport && paymentTransport.responseText){
|
25 |
-
try{
|
26 |
-
response = eval('(' + paymentTransport.responseText + ')');
|
27 |
-
}
|
28 |
-
catch (e) {
|
29 |
-
response = {};
|
30 |
-
}
|
31 |
-
}
|
32 |
-
/*
|
33 |
-
* if there is an error in payment, need to show error message
|
34 |
-
*/
|
35 |
-
if (response.error) {
|
36 |
-
if (response.fields) {
|
37 |
-
var fields = response.fields.split(',');
|
38 |
-
for (var i=0;i<fields.length;i++) {
|
39 |
-
var field = null;
|
40 |
-
if (field = $(fields[i])) {
|
41 |
-
Validation.ajaxError(field, response.error);
|
42 |
-
}
|
43 |
-
}
|
44 |
-
return;
|
45 |
-
}
|
46 |
-
alert(response.error);
|
47 |
-
return;
|
48 |
-
}
|
49 |
-
|
50 |
checkout.setLoadWaiting('payment');
|
51 |
new Ajax.Request(
|
52 |
'<?php echo Mage::getUrl('creditpass/checkpayment/process', array('_secure'=>true)); ?>',
|
19 |
<?php if (Mage::helper('creditpass')->moduleActive()): ?>
|
20 |
<script type="text/javascript">
|
21 |
payment.onSave = function(paymentTransport){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
checkout.setLoadWaiting('payment');
|
23 |
new Ajax.Request(
|
24 |
'<?php echo Mage::getUrl('creditpass/checkpayment/process', array('_secure'=>true)); ?>',
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Phoenix_Creditpass</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -12,11 +12,11 @@ Auskunfteien wie bspw. SCHUFA, Bürgel, infoscore, CEG Creditreform, accumio
|
|
12 |
Telekommunikation.
|
13 |
|
14 |
Dieses Modul wurde von <a href="http://www.phoenix-medien.de" target="_blank">Phoenix Medien</a>, <a href="http://www.phoenix-medien.de/magento.html" target="_blank">Magento Gold Partner</a> in Deutschland und Österreich entwickelt.</description>
|
15 |
-
<notes>-
|
16 |
<authors><author><name>Phoenix Medien</name><user>auto-converted</user><email>info@phoenix-medien.de</email></author></authors>
|
17 |
-
<date>
|
18 |
-
<time>
|
19 |
-
<contents><target name="magelocale"><dir name="de_DE"><file name="Phoenix_Creditpass.csv" hash="698a4f0d59565f5085f727dfec6991e6"/></dir><dir name="en_US"><file name="Phoenix_Creditpass.csv" hash="e9b8ecf70f0c7d9dd540b456c06ba1bc"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="creditpass.xml" hash="c42f52c729ef057ffaaf72362136917d"/></dir><dir name="template"><dir name="creditpass"><file name="processing.phtml" hash="
|
20 |
<compatible/>
|
21 |
<dependencies/>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Phoenix_Creditpass</name>
|
4 |
+
<version>1.0.5</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
12 |
Telekommunikation.
|
13 |
|
14 |
Dieses Modul wurde von <a href="http://www.phoenix-medien.de" target="_blank">Phoenix Medien</a>, <a href="http://www.phoenix-medien.de/magento.html" target="_blank">Magento Gold Partner</a> in Deutschland und Österreich entwickelt.</description>
|
15 |
+
<notes>- Support for IBAN bank accounts</notes>
|
16 |
<authors><author><name>Phoenix Medien</name><user>auto-converted</user><email>info@phoenix-medien.de</email></author></authors>
|
17 |
+
<date>2014-06-25</date>
|
18 |
+
<time>14:26:41</time>
|
19 |
+
<contents><target name="magelocale"><dir name="de_DE"><file name="Phoenix_Creditpass.csv" hash="698a4f0d59565f5085f727dfec6991e6"/></dir><dir name="en_US"><file name="Phoenix_Creditpass.csv" hash="e9b8ecf70f0c7d9dd540b456c06ba1bc"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="creditpass.xml" hash="c42f52c729ef057ffaaf72362136917d"/></dir><dir name="template"><dir name="creditpass"><file name="processing.phtml" hash="b2fad762db3d375e32b3d4bffa5cbc86"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Phoenix_Creditpass.xml" hash="075e618b58ec33a571e69d2beb4117c4"/></dir></target><target name="magecommunity"><dir name="Phoenix"><dir name="Creditpass"><dir name="Block"><dir name="Multishipping"><file name="Billing.php" hash="7b59120011a2c62182516848c378a60a"/></dir><dir name="Payment"><file name="Methods.php" hash="3c7a56f13d1d58ce49111ef3f199548a"/></dir></dir><dir name="controllers"><file name="CheckpaymentController.php" hash="274ded0f5bc473d1075b79466993db29"/></dir><dir name="etc"><file name="config.xml" hash="0d622053b5e79e4f947d9b1561dc352c"/><file name="system.xml" hash="c1e0f7be1537d2f06e7411815a009746"/></dir><dir name="Helper"><file name="Data.php" hash="4d435b27b26e554d024225a047a554aa"/></dir><dir name="Model"><dir name="Source"><dir name="Payment"><file name="Methods.php" hash="9bec505be838fe11bc5c3ac53ce419af"/></dir><file name="Customergroups.php" hash="9e6e5088ae21dfd2be8553337f1b84f6"/></dir><file name="SaveOrderObserver.php" hash="e14989af44c5ef8c38d88c0817801ade"/></dir></dir></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies/>
|
22 |
</package>
|