Version Notes
- Added compatibility for Unirgy Gift Certificates module
- Added support for countries outside Germany
Download this release
Release Info
Developer | Magento Core Team |
Extension | Phoenix_Creditpass |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- app/code/community/Phoenix/Creditpass/Block/Multishipping/Billing.php +61 -0
- app/code/community/Phoenix/Creditpass/Block/Payment/Methods.php +61 -0
- app/code/community/Phoenix/Creditpass/Helper/Data.php +21 -18
- app/code/community/Phoenix/Creditpass/Helper/Payment.php +0 -60
- app/code/community/Phoenix/Creditpass/Model/Source/LiveMode.php +0 -30
- app/code/community/Phoenix/Creditpass/etc/config.xml +12 -6
- package.xml +10 -6
app/code/community/Phoenix/Creditpass/Block/Multishipping/Billing.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Phoenix
|
16 |
+
* @package Phoenix_Creditpass
|
17 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Phoenix_Creditpass_Block_Multishipping_Billing extends Mage_Checkout_Block_Multishipping_Billing
|
22 |
+
{
|
23 |
+
/**
|
24 |
+
* Overrides
|
25 |
+
* Performs additional checking for creditPass
|
26 |
+
*
|
27 |
+
* @return bool
|
28 |
+
*/
|
29 |
+
protected function _canUseMethod($method) {
|
30 |
+
$allowed = parent::_canUseMethod($method);
|
31 |
+
if ($allowed) {
|
32 |
+
$allowed = $this->_canUseForCreditRating($method, $this->getQuote());
|
33 |
+
}
|
34 |
+
return $allowed;
|
35 |
+
}
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Credit Rating
|
39 |
+
*
|
40 |
+
* @return bool
|
41 |
+
*/
|
42 |
+
protected function _canUseForCreditRating($method, $quote)
|
43 |
+
{
|
44 |
+
$helper = Mage::helper('creditpass');
|
45 |
+
if ($helper->moduleActive() && !$helper->inAdmin() && $helper->filterActive())
|
46 |
+
{
|
47 |
+
Mage::log('creditPass: Payment filtering active');
|
48 |
+
|
49 |
+
// only allow enabled methods
|
50 |
+
$allowed_methods = $helper->getAllowedPaymentMethods();
|
51 |
+
if (is_array($allowed_methods) && in_array($method->getCode(), $allowed_methods)) {
|
52 |
+
return true;
|
53 |
+
}
|
54 |
+
return false;
|
55 |
+
} else {
|
56 |
+
Mage::log('creditPass: Payment filtering NOT active. moduleActive:'.var_export($helper->moduleActive(),true).';inAdmin:'.var_export($helper->inAdmin(),true).';filterActive:'.var_export($helper->filterActive(),true));
|
57 |
+
}
|
58 |
+
|
59 |
+
return true;
|
60 |
+
}
|
61 |
+
}
|
app/code/community/Phoenix/Creditpass/Block/Payment/Methods.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Phoenix
|
16 |
+
* @package Phoenix_Creditpass
|
17 |
+
* @copyright Copyright (c) 2010 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Phoenix_Creditpass_Block_Payment_Methods extends Mage_Checkout_Block_Onepage_Payment_Methods
|
22 |
+
{
|
23 |
+
/**
|
24 |
+
* Overrides
|
25 |
+
* Performs additional checking for creditPass
|
26 |
+
*
|
27 |
+
* @return bool
|
28 |
+
*/
|
29 |
+
protected function _canUseMethod($method) {
|
30 |
+
$allowed = parent::_canUseMethod($method);
|
31 |
+
if ($allowed) {
|
32 |
+
$allowed = $this->_canUseForCreditRating($method, $this->getQuote());
|
33 |
+
}
|
34 |
+
return $allowed;
|
35 |
+
}
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Credit Rating
|
39 |
+
*
|
40 |
+
* @return bool
|
41 |
+
*/
|
42 |
+
protected function _canUseForCreditRating($method, $quote)
|
43 |
+
{
|
44 |
+
$helper = Mage::helper('creditpass');
|
45 |
+
if ($helper->moduleActive() && !$helper->inAdmin() && $helper->filterActive())
|
46 |
+
{
|
47 |
+
Mage::log('creditPass: Payment filtering active');
|
48 |
+
|
49 |
+
// only allow enabled methods
|
50 |
+
$allowed_methods = $helper->getAllowedPaymentMethods();
|
51 |
+
if (is_array($allowed_methods) && in_array($method->getCode(), $allowed_methods)) {
|
52 |
+
return true;
|
53 |
+
}
|
54 |
+
return false;
|
55 |
+
} else {
|
56 |
+
Mage::log('creditPass: Payment filtering NOT active. moduleActive:'.var_export($helper->moduleActive(),true).';inAdmin:'.var_export($helper->inAdmin(),true).';filterActive:'.var_export($helper->filterActive(),true));
|
57 |
+
}
|
58 |
+
|
59 |
+
return true;
|
60 |
+
}
|
61 |
+
}
|
app/code/community/Phoenix/Creditpass/Helper/Data.php
CHANGED
@@ -22,8 +22,9 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
22 |
public function checkPayment()
|
23 |
{
|
24 |
// if module is disabled
|
25 |
-
if (!$this->moduleActive())
|
26 |
return true;
|
|
|
27 |
|
28 |
$payment_array = $this->getPaymentArray();
|
29 |
$session = Mage::getSingleton('core/session');
|
@@ -36,7 +37,7 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
36 |
$session->setCreditPassTimestamp(sprintf('%s', Mage::helper('core')->formatDate(null, 'medium', true)));
|
37 |
$session->setCreditPassQuoteId($quote->getId());
|
38 |
|
39 |
-
if(!$guest && $this->getConfigFlag('exclude_groups_enable') && $this->_excludeCustomerGroup($quote->getCustomer()->getGroupId())) {
|
40 |
$session->setCreditPassAnswerCode(sprintf('%s', 0));
|
41 |
$session->setCreditPassAnswerText(sprintf('%s', $this->__('Customer has not been checked because he is member of a trusted group.')));
|
42 |
$session->setCreditPassResult('PASSED');
|
@@ -45,20 +46,20 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
45 |
|
46 |
Mage::log('creditPass: Checking for '.$payment->getMethod());
|
47 |
|
48 |
-
if (
|
49 |
// only check rating once
|
50 |
-
if ($session->getCreditPassResult() == 'FAILED')
|
51 |
return false;
|
|
|
52 |
|
53 |
if ($this->getConfigFlag('live_mode')) {
|
54 |
$ta_type = '27920';
|
55 |
$p_mode = '1';
|
56 |
-
}
|
57 |
-
else {
|
58 |
$ta_type = '27920';
|
59 |
$p_mode = '8';
|
60 |
}
|
61 |
-
|
62 |
$helper = Mage::helper('core/string');
|
63 |
|
64 |
$requesttxt = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<REQUEST></REQUEST>";
|
@@ -75,7 +76,7 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
75 |
$queryobj->addChild('FIRST_NAME', $helper->htmlEscape($helper->substr($address->getFirstname(), 0, 64)));
|
76 |
$queryobj->addChild('LAST_NAME', $helper->htmlEscape($helper->substr($address->getLastname(), 0, 64)));
|
77 |
$queryobj->addChild('ADDR_STREET_FULL', $helper->htmlEscape($helper->substr(implode(' ', $address->getStreet()), 0, 50)));
|
78 |
-
$queryobj->addChild('ADDR_ZIP', $helper->substr($address->getPostcode(), 0,
|
79 |
$queryobj->addChild('ADDR_CITY', $helper->htmlEscape($helper->substr($address->getCity(), 0, 32)));
|
80 |
$queryobj->addChild('ADDR_COUNTRY', $address->getCountryId());
|
81 |
$queryobj->addChild('CUSTOMERIP', ($quote->getRemoteIp() ? $quote->getRemoteIp() : '127.0.0.1'));
|
@@ -102,7 +103,7 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
102 |
$queryobj->addChild('KONTONR', $payment->getCcNumber());
|
103 |
break;
|
104 |
}
|
105 |
-
|
106 |
// add purchase type with appended group type
|
107 |
$gm = ($guest) ? '1' : '2';
|
108 |
$queryobj->addChild('PURCHASE_TYPE', $payment_array[$payment->getMethod()] . $gm);
|
@@ -112,8 +113,9 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
112 |
|
113 |
// process response
|
114 |
$responseobj = @simplexml_load_string($response);
|
115 |
-
if ($responseobj === FALSE)
|
116 |
Mage::throwException($this->__('creditPass API failure. Response parsing error.'));
|
|
|
117 |
|
118 |
$answer_code = $responseobj->PROCESS->ANSWER_CODE;
|
119 |
Mage::log('creditPass answer code: '.$answer_code);
|
@@ -137,7 +139,7 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
137 |
|
138 |
/**
|
139 |
* Return the config value for the passed key (current store)
|
140 |
-
*
|
141 |
* @param string $key
|
142 |
* @return string
|
143 |
*/
|
@@ -146,7 +148,7 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
146 |
$path = 'creditpass/settings/' . $key;
|
147 |
return Mage::getStoreConfig($path);
|
148 |
}
|
149 |
-
|
150 |
public function getConfigFlag($field)
|
151 |
{
|
152 |
$path = 'creditpass/settings/' . $field;
|
@@ -155,7 +157,7 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
155 |
|
156 |
/**
|
157 |
* Check if the extension has been disabled in the system configuration
|
158 |
-
*
|
159 |
* @return boolean
|
160 |
*/
|
161 |
public function moduleActive()
|
@@ -170,15 +172,16 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
170 |
*/
|
171 |
public function filterActive()
|
172 |
{
|
173 |
-
if (Mage::getSingleton('core/session')->getCreditPassResult() == 'FAILED')
|
174 |
return true;
|
|
|
175 |
|
176 |
return false;
|
177 |
}
|
178 |
|
179 |
/**
|
180 |
* Return the allowed payment method codes
|
181 |
-
*
|
182 |
*
|
183 |
* @return array()
|
184 |
*/
|
@@ -209,7 +212,7 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
209 |
if (strpos($key, 'purchase_type_') !== false) {
|
210 |
if (!empty($arr['payment_method']) && !empty($arr['purchase_type_code'])) {
|
211 |
$purchaseTypes[$arr['payment_method']] = $arr['purchase_type_code'];
|
212 |
-
}
|
213 |
}
|
214 |
}
|
215 |
return $purchaseTypes;
|
@@ -249,7 +252,7 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
249 |
|
250 |
/**
|
251 |
* Return the if group id is in the list of exclude groups
|
252 |
-
*
|
253 |
* @return bool
|
254 |
*/
|
255 |
private function _excludeCustomerGroup($group)
|
@@ -260,7 +263,7 @@ class Phoenix_Creditpass_Helper_Data extends Mage_Core_Helper_Abstract
|
|
260 |
|
261 |
/**
|
262 |
* Return error -1 XML
|
263 |
-
*
|
264 |
* @return string
|
265 |
*/
|
266 |
private function _returnErrorXml($error)
|
22 |
public function checkPayment()
|
23 |
{
|
24 |
// if module is disabled
|
25 |
+
if (!$this->moduleActive()) {
|
26 |
return true;
|
27 |
+
}
|
28 |
|
29 |
$payment_array = $this->getPaymentArray();
|
30 |
$session = Mage::getSingleton('core/session');
|
37 |
$session->setCreditPassTimestamp(sprintf('%s', Mage::helper('core')->formatDate(null, 'medium', true)));
|
38 |
$session->setCreditPassQuoteId($quote->getId());
|
39 |
|
40 |
+
if (!$guest && $this->getConfigFlag('exclude_groups_enable') && $this->_excludeCustomerGroup($quote->getCustomer()->getGroupId())) {
|
41 |
$session->setCreditPassAnswerCode(sprintf('%s', 0));
|
42 |
$session->setCreditPassAnswerText(sprintf('%s', $this->__('Customer has not been checked because he is member of a trusted group.')));
|
43 |
$session->setCreditPassResult('PASSED');
|
46 |
|
47 |
Mage::log('creditPass: Checking for '.$payment->getMethod());
|
48 |
|
49 |
+
if (array_key_exists($payment->getMethod(), $payment_array)) {
|
50 |
// only check rating once
|
51 |
+
if ($session->getCreditPassResult() == 'FAILED') {
|
52 |
return false;
|
53 |
+
}
|
54 |
|
55 |
if ($this->getConfigFlag('live_mode')) {
|
56 |
$ta_type = '27920';
|
57 |
$p_mode = '1';
|
58 |
+
} else {
|
|
|
59 |
$ta_type = '27920';
|
60 |
$p_mode = '8';
|
61 |
}
|
62 |
+
|
63 |
$helper = Mage::helper('core/string');
|
64 |
|
65 |
$requesttxt = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<REQUEST></REQUEST>";
|
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)));
|
81 |
$queryobj->addChild('ADDR_COUNTRY', $address->getCountryId());
|
82 |
$queryobj->addChild('CUSTOMERIP', ($quote->getRemoteIp() ? $quote->getRemoteIp() : '127.0.0.1'));
|
103 |
$queryobj->addChild('KONTONR', $payment->getCcNumber());
|
104 |
break;
|
105 |
}
|
106 |
+
|
107 |
// add purchase type with appended group type
|
108 |
$gm = ($guest) ? '1' : '2';
|
109 |
$queryobj->addChild('PURCHASE_TYPE', $payment_array[$payment->getMethod()] . $gm);
|
113 |
|
114 |
// process response
|
115 |
$responseobj = @simplexml_load_string($response);
|
116 |
+
if ($responseobj === FALSE) {
|
117 |
Mage::throwException($this->__('creditPass API failure. Response parsing error.'));
|
118 |
+
}
|
119 |
|
120 |
$answer_code = $responseobj->PROCESS->ANSWER_CODE;
|
121 |
Mage::log('creditPass answer code: '.$answer_code);
|
139 |
|
140 |
/**
|
141 |
* Return the config value for the passed key (current store)
|
142 |
+
*
|
143 |
* @param string $key
|
144 |
* @return string
|
145 |
*/
|
148 |
$path = 'creditpass/settings/' . $key;
|
149 |
return Mage::getStoreConfig($path);
|
150 |
}
|
151 |
+
|
152 |
public function getConfigFlag($field)
|
153 |
{
|
154 |
$path = 'creditpass/settings/' . $field;
|
157 |
|
158 |
/**
|
159 |
* Check if the extension has been disabled in the system configuration
|
160 |
+
*
|
161 |
* @return boolean
|
162 |
*/
|
163 |
public function moduleActive()
|
172 |
*/
|
173 |
public function filterActive()
|
174 |
{
|
175 |
+
if (Mage::getSingleton('core/session')->getCreditPassResult() == 'FAILED') {
|
176 |
return true;
|
177 |
+
}
|
178 |
|
179 |
return false;
|
180 |
}
|
181 |
|
182 |
/**
|
183 |
* Return the allowed payment method codes
|
184 |
+
*
|
185 |
*
|
186 |
* @return array()
|
187 |
*/
|
212 |
if (strpos($key, 'purchase_type_') !== false) {
|
213 |
if (!empty($arr['payment_method']) && !empty($arr['purchase_type_code'])) {
|
214 |
$purchaseTypes[$arr['payment_method']] = $arr['purchase_type_code'];
|
215 |
+
}
|
216 |
}
|
217 |
}
|
218 |
return $purchaseTypes;
|
252 |
|
253 |
/**
|
254 |
* Return the if group id is in the list of exclude groups
|
255 |
+
*
|
256 |
* @return bool
|
257 |
*/
|
258 |
private function _excludeCustomerGroup($group)
|
263 |
|
264 |
/**
|
265 |
* Return error -1 XML
|
266 |
+
*
|
267 |
* @return string
|
268 |
*/
|
269 |
private function _returnErrorXml($error)
|
app/code/community/Phoenix/Creditpass/Helper/Payment.php
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/osl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* @category Phoenix
|
16 |
-
* @package Phoenix_Creditpass
|
17 |
-
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
18 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
-
*/
|
20 |
-
class Phoenix_Creditpass_Helper_Payment extends Mage_Payment_Helper_Data
|
21 |
-
{
|
22 |
-
/**
|
23 |
-
* Retrieve available payment methods for store, taking conigured customer group payment methods into account.
|
24 |
-
*
|
25 |
-
* @param mixed $store
|
26 |
-
* @param boolean $quote
|
27 |
-
* @return array
|
28 |
-
* @see Mage_Payment_Helper_Data::getStoreMethods()
|
29 |
-
*/
|
30 |
-
public function getStoreMethods($store=null, $quote=null)
|
31 |
-
{
|
32 |
-
$methods = parent::getStoreMethods($store, $quote);
|
33 |
-
|
34 |
-
$helper = Mage::helper('creditpass');
|
35 |
-
if ($helper->moduleActive() && !$helper->inAdmin() && $helper->filterActive())
|
36 |
-
{
|
37 |
-
Mage::log('creditPass: Payment filtering active');
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Only allow enabled methods
|
41 |
-
*/
|
42 |
-
$res = array();
|
43 |
-
$allowed_methods = $helper->getAllowedPaymentMethods();
|
44 |
-
if (is_array($allowed_methods) && $allowed_methods) {
|
45 |
-
foreach ($methods as $method) {
|
46 |
-
if (in_array($method->getCode(), $allowed_methods))
|
47 |
-
$res[] = $method;
|
48 |
-
}
|
49 |
-
}
|
50 |
-
$methods = $res;
|
51 |
-
} else {
|
52 |
-
Mage::log('creditPass: Payment filtering NOT active. moduleActive:'.var_export($helper->moduleActive(),true).';inAdmin:'.var_export($helper->inAdmin(),true).';filterActive:'.var_export($helper->filterActive(),true));
|
53 |
-
}
|
54 |
-
|
55 |
-
// @TODO: add error message if no payment methods are available
|
56 |
-
|
57 |
-
return $methods;
|
58 |
-
}
|
59 |
-
}
|
60 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Phoenix/Creditpass/Model/Source/LiveMode.php
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/osl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* @category Phoenix
|
16 |
-
* @package Phoenix_Creditpass
|
17 |
-
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
18 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
-
*/
|
20 |
-
class Phoenix_Creditpass_Model_Source_LiveMode
|
21 |
-
{
|
22 |
-
public function toOptionArray()
|
23 |
-
{
|
24 |
-
return array(
|
25 |
-
array('value' => 'live', 'label' => Mage::helper('creditpass')->__('Live Mode')),
|
26 |
-
array('value' => 'test', 'label' => Mage::helper('creditpass')->__('Test Mode'))
|
27 |
-
);
|
28 |
-
}
|
29 |
-
}
|
30 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
@@ -54,11 +54,6 @@
|
|
54 |
<creditpass>
|
55 |
<class>Phoenix_Creditpass_Helper</class>
|
56 |
</creditpass>
|
57 |
-
<payment>
|
58 |
-
<rewrite>
|
59 |
-
<data>Phoenix_Creditpass_Helper_Payment</data>
|
60 |
-
</rewrite>
|
61 |
-
</payment>
|
62 |
</helpers>
|
63 |
<resources>
|
64 |
<creditpass_setup>
|
@@ -82,6 +77,17 @@
|
|
82 |
</resources>
|
83 |
</global>
|
84 |
<frontend>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
<routers>
|
86 |
<creditpass>
|
87 |
<use>standard</use>
|
21 |
<config>
|
22 |
<modules>
|
23 |
<Phoenix_Creditpass>
|
24 |
+
<version>1.0.3</version>
|
25 |
</Phoenix_Creditpass>
|
26 |
</modules>
|
27 |
<global>
|
54 |
<creditpass>
|
55 |
<class>Phoenix_Creditpass_Helper</class>
|
56 |
</creditpass>
|
|
|
|
|
|
|
|
|
|
|
57 |
</helpers>
|
58 |
<resources>
|
59 |
<creditpass_setup>
|
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>
|
package.xml
CHANGED
@@ -1,19 +1,23 @@
|
|
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>
|
8 |
<extends/>
|
9 |
<summary>Bonitätsprüfung über deutsche Auskunfteidienste / Risk Management</summary>
|
10 |
<description>creditPass® bietet in Deutschland den umfangreichsten Zugriff auf renommierte Auskunfteidienste für die Bonitätsprüfung. Auf nur einer Plattform stehen Auskünfte aller renommierten Anbieter zur Verfügung. Dieses beinhaltet u.a. folgende Auskunftsarten: Personenauskunft, Firmenauskunft, Kontenauskunft, Adressauskunft, Kartencheck bis hin zur Adressermittlung oder ComplianceCheck. Die Bonitätsabfragen erfolgen über eine internetbasierte Plattform mit Sofortantwort und können dabei einzeln ausgewählt oder kombiniert werden. Grundlage sind Datenbestände renommierter
|
11 |
-
Auskunfteien wie bspw. SCHUFA, Bürgel, infoscore, CEG Creditreform, accumio, D
|
12 |
-
|
|
|
|
|
|
|
|
|
13 |
<authors><author><name>Phoenix Medien</name><user>auto-converted</user><email>info@phoenix-medien.de</email></author></authors>
|
14 |
-
<date>
|
15 |
-
<time>13:
|
16 |
-
<contents><target name="magelocale"><dir name="de_DE"><file name="Phoenix_Creditpass.csv" hash="1277c69eb663a2d070989debcf76c456"/></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="
|
17 |
<compatible/>
|
18 |
<dependencies/>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Phoenix_Creditpass</name>
|
4 |
+
<version>1.0.3</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>
|
8 |
<extends/>
|
9 |
<summary>Bonitätsprüfung über deutsche Auskunfteidienste / Risk Management</summary>
|
10 |
<description>creditPass® bietet in Deutschland den umfangreichsten Zugriff auf renommierte Auskunfteidienste für die Bonitätsprüfung. Auf nur einer Plattform stehen Auskünfte aller renommierten Anbieter zur Verfügung. Dieses beinhaltet u.a. folgende Auskunftsarten: Personenauskunft, Firmenauskunft, Kontenauskunft, Adressauskunft, Kartencheck bis hin zur Adressermittlung oder ComplianceCheck. Die Bonitätsabfragen erfolgen über eine internetbasierte Plattform mit Sofortantwort und können dabei einzeln ausgewählt oder kombiniert werden. Grundlage sind Datenbestände renommierter
|
11 |
+
Auskunfteien wie bspw. SCHUFA, Bürgel, infoscore, CEG Creditreform, accumio, D&B, Deutsche Post uvm. Die Daten stammen dabei u.a. aus dem Versandhandel und Einzelhandel, Versicherungen, Immobilien, Inkasso und der
|
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 compatibility for Unirgy Gift Certificates module
|
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>2010-04-06</date>
|
19 |
+
<time>13:29:32</time>
|
20 |
+
<contents><target name="magelocale"><dir name="de_DE"><file name="Phoenix_Creditpass.csv" hash="1277c69eb663a2d070989debcf76c456"/></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="4b862ae392a672fab7232d61866cc37a"/><file name="system.xml" hash="c1e0f7be1537d2f06e7411815a009746"/></dir><dir name="Helper"><file name="Data.php" hash="de41424c93821037902234a427e366bd"/></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>
|
21 |
<compatible/>
|
22 |
<dependencies/>
|
23 |
</package>
|