Version Notes
- Added DOB field to query
Download this release
Release Info
Developer | Magento Core Team |
Extension | Phoenix_Creditpass |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
app/code/community/Phoenix/Creditpass/Helper/Data.php
CHANGED
@@ -75,6 +75,13 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
75 |
$queryobj = $requestobj->addChild('QUERY');
|
76 |
$queryobj->addChild('FIRST_NAME', $helper->htmlEscape($helper->substr($address->getFirstname(), 0, 64)));
|
77 |
$queryobj->addChild('LAST_NAME', $helper->htmlEscape($helper->substr($address->getLastname(), 0, 64)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
$queryobj->addChild('ADDR_STREET_FULL', $helper->htmlEscape($helper->substr(implode(' ', $address->getStreet()), 0, 50)));
|
79 |
$queryobj->addChild('ADDR_ZIP', $helper->substr($address->getPostcode(), 0, 5));
|
80 |
$queryobj->addChild('ADDR_CITY', $helper->htmlEscape($helper->substr($address->getCity(), 0, 32)));
|
75 |
$queryobj = $requestobj->addChild('QUERY');
|
76 |
$queryobj->addChild('FIRST_NAME', $helper->htmlEscape($helper->substr($address->getFirstname(), 0, 64)));
|
77 |
$queryobj->addChild('LAST_NAME', $helper->htmlEscape($helper->substr($address->getLastname(), 0, 64)));
|
78 |
+
|
79 |
+
$customerDob = '';
|
80 |
+
if ($quote->getCustomerDob()) {
|
81 |
+
$customerDob = Mage::app()->getLocale()->date($quote->getCustomerDob(), null, null, false)->toString('yyyy-MM-dd');
|
82 |
+
}
|
83 |
+
$queryobj->addChild('DOB', $customerDob);
|
84 |
+
|
85 |
$queryobj->addChild('ADDR_STREET_FULL', $helper->htmlEscape($helper->substr(implode(' ', $address->getStreet()), 0, 50)));
|
86 |
$queryobj->addChild('ADDR_ZIP', $helper->substr($address->getPostcode(), 0, 5));
|
87 |
$queryobj->addChild('ADDR_CITY', $helper->htmlEscape($helper->substr($address->getCity(), 0, 32)));
|
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>
|
@@ -30,6 +30,17 @@
|
|
30 |
<class>Phoenix_Creditpass_Model</class>
|
31 |
</creditpass>
|
32 |
</models>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
<events>
|
34 |
<sales_convert_quote_to_order>
|
35 |
<observers>
|
@@ -77,17 +88,6 @@
|
|
77 |
</resources>
|
78 |
</global>
|
79 |
<frontend>
|
80 |
-
<blocks>
|
81 |
-
<creditpass>
|
82 |
-
<class>Phoenix_Creditpass_Block</class>
|
83 |
-
</creditpass>
|
84 |
-
<checkout>
|
85 |
-
<rewrite>
|
86 |
-
<onepage_payment_methods>Phoenix_Creditpass_Block_Payment_Methods</onepage_payment_methods>
|
87 |
-
<multishipping_billing>Phoenix_Creditpass_Block_Multishipping_Billing</multishipping_billing>
|
88 |
-
</rewrite>
|
89 |
-
</checkout>
|
90 |
-
</blocks>
|
91 |
<routers>
|
92 |
<creditpass>
|
93 |
<use>standard</use>
|
@@ -145,7 +145,7 @@
|
|
145 |
</acl>
|
146 |
</adminhtml>
|
147 |
<default>
|
148 |
-
<creditpass>
|
149 |
<settings>
|
150 |
<active>0</active>
|
151 |
<cp_url>https://secure.creditpass.de/atgw/authorize.cfm</cp_url>
|
21 |
<config>
|
22 |
<modules>
|
23 |
<Phoenix_Creditpass>
|
24 |
+
<version>1.0.4</version>
|
25 |
</Phoenix_Creditpass>
|
26 |
</modules>
|
27 |
<global>
|
30 |
<class>Phoenix_Creditpass_Model</class>
|
31 |
</creditpass>
|
32 |
</models>
|
33 |
+
<blocks>
|
34 |
+
<creditpass>
|
35 |
+
<class>Phoenix_Creditpass_Block</class>
|
36 |
+
</creditpass>
|
37 |
+
<checkout>
|
38 |
+
<rewrite>
|
39 |
+
<onepage_payment_methods>Phoenix_Creditpass_Block_Payment_Methods</onepage_payment_methods>
|
40 |
+
<multishipping_billing>Phoenix_Creditpass_Block_Multishipping_Billing</multishipping_billing>
|
41 |
+
</rewrite>
|
42 |
+
</checkout>
|
43 |
+
</blocks>
|
44 |
<events>
|
45 |
<sales_convert_quote_to_order>
|
46 |
<observers>
|
88 |
</resources>
|
89 |
</global>
|
90 |
<frontend>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
<routers>
|
92 |
<creditpass>
|
93 |
<use>standard</use>
|
145 |
</acl>
|
146 |
</adminhtml>
|
147 |
<default>
|
148 |
+
<creditpass>
|
149 |
<settings>
|
150 |
<active>0</active>
|
151 |
<cp_url>https://secure.creditpass.de/atgw/authorize.cfm</cp_url>
|
app/design/frontend/default/default/template/creditpass/processing.phtml
CHANGED
@@ -19,6 +19,34 @@
|
|
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)); ?>',
|
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)); ?>',
|
app/locale/de_DE/Phoenix_Creditpass.csv
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
"Manual check is needed.","Manuelle Überprüfung ist notwendig."
|
22 |
"Not autorized","Nicht autorisiert"
|
23 |
"Payment methods that are allways allowed to the customer even if creditPass returns a negative answer. Select the methods by clicking on them in the list while holding the CTRL button.","Zahlungsarten, die dem Kunden immer erlaubt werden sollten, sogar wenn creditPass eine negative Antwort zurückliefert. Wählen Sie die Zahlungsarten aus, indem Sie auf diese in der Liste klicken, während Sie die STRG-Taste gedrückt halten."
|
24 |
-
"Show XML Communication In creditPass Comment","XML-Kommunikation im creditPass-
|
25 |
"Test Mode","Test-Modus"
|
26 |
"The selected payment type is currently not available. Please select another one.","Die gewählte Zahlungsart steht derzeit leider nicht zur Verfügung. Bitte wählen Sie eine andere Zahlungsart."
|
27 |
"Trustful User Groups","Vertrauenswürdige Benutzergruppen"
|
21 |
"Manual check is needed.","Manuelle Überprüfung ist notwendig."
|
22 |
"Not autorized","Nicht autorisiert"
|
23 |
"Payment methods that are allways allowed to the customer even if creditPass returns a negative answer. Select the methods by clicking on them in the list while holding the CTRL button.","Zahlungsarten, die dem Kunden immer erlaubt werden sollten, sogar wenn creditPass eine negative Antwort zurückliefert. Wählen Sie die Zahlungsarten aus, indem Sie auf diese in der Liste klicken, während Sie die STRG-Taste gedrückt halten."
|
24 |
+
"Show XML Communication In creditPass Comment","XML-Kommunikation im creditPass-Kommentar anzeigen"
|
25 |
"Test Mode","Test-Modus"
|
26 |
"The selected payment type is currently not available. Please select another one.","Die gewählte Zahlungsart steht derzeit leider nicht zur Verfügung. Bitte wählen Sie eine andere Zahlungsart."
|
27 |
"Trustful User Groups","Vertrauenswürdige Benutzergruppen"
|
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,12 +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>- Added
|
16 |
-
- Added support for countries outside Germany</notes>
|
17 |
<authors><author><name>Phoenix Medien</name><user>auto-converted</user><email>info@phoenix-medien.de</email></author></authors>
|
18 |
-
<date>
|
19 |
-
<time>13:
|
20 |
-
<contents><target name="magelocale"><dir name="de_DE"><file name="Phoenix_Creditpass.csv" hash="
|
21 |
<compatible/>
|
22 |
<dependencies/>
|
23 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Phoenix_Creditpass</name>
|
4 |
+
<version>1.0.4</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>- Added DOB field to query</notes>
|
|
|
16 |
<authors><author><name>Phoenix Medien</name><user>auto-converted</user><email>info@phoenix-medien.de</email></author></authors>
|
17 |
+
<date>2011-03-29</date>
|
18 |
+
<time>13:50:13</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="bad62f14d38a0b5efac4c2f19aec547f"/></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="e899eacf398385f031e8f9d790330572"/><file name="system.xml" hash="c1e0f7be1537d2f06e7411815a009746"/></dir><dir name="Helper"><file name="Data.php" hash="c80639eff5988580808837ba0e14bf77"/></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>
|