Version Notes
1.1.0.0
Download this release
Release Info
Developer | Magento Core Team |
Extension | Mage_Ogone_Official |
Version | 1.1.0.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.1.0.0
- app/code/core/Mage/Ogone/Block/Form.php +1 -1
- app/code/core/Mage/Ogone/Block/Info.php +1 -1
- app/code/core/Mage/Ogone/Block/Paypage.php +1 -1
- app/code/core/Mage/Ogone/Block/Placeform.php +1 -1
- app/code/core/Mage/Ogone/Helper/Data.php +12 -20
- app/code/core/Mage/Ogone/Model/Api.php +218 -9
- app/code/core/Mage/Ogone/Model/Api.php.lindy +0 -256
- app/code/core/Mage/Ogone/Model/Api/Debug.php +1 -1
- app/code/core/Mage/Ogone/Model/Config.php +7 -7
- app/code/core/Mage/Ogone/Model/Mysql4/Api/Debug.php +1 -1
- app/code/core/Mage/Ogone/Model/Source/PaymentAction.php +2 -2
- app/code/core/Mage/Ogone/Model/Source/Pmlist.php +1 -1
- app/code/core/Mage/Ogone/Model/Source/Template.php +1 -1
- app/code/core/Mage/Ogone/controllers/ApiController.php +36 -50
- app/code/core/Mage/Ogone/etc/config.xml +14 -13
- app/code/core/Mage/Ogone/etc/system.xml +56 -43
- app/code/core/Mage/Ogone/sql/ogone_setup/mysql4-install-0.0.1.php +1 -1
- app/design/adminhtml/default/default/template/ogone/info.phtml +1 -1
- app/design/frontend/default/default/layout/ogone.xml +0 -59
- app/design/frontend/default/default/template/ogone/form.phtml +0 -33
- app/design/frontend/default/default/template/ogone/info.phtml +0 -27
- app/design/frontend/default/default/template/ogone/paypage.phtml +0 -28
- app/design/frontend/default/default/template/ogone/placeform.phtml +0 -45
- app/etc/modules/Mage_Ogone.xml +1 -1
- app/locale/en_US/Mage_Ogone.csv +25 -28
- package.xml +7 -7
app/code/core/Mage/Ogone/Block/Form.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
app/code/core/Mage/Ogone/Block/Info.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
app/code/core/Mage/Ogone/Block/Paypage.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
app/code/core/Mage/Ogone/Block/Placeform.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
app/code/core/Mage/Ogone/Helper/Data.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
@@ -29,29 +29,27 @@
|
|
29 |
*/
|
30 |
class Mage_Ogone_Helper_Data extends Mage_Core_Helper_Abstract
|
31 |
{
|
|
|
|
|
|
|
|
|
32 |
const HASH_ALGO = 'sha1';
|
33 |
|
34 |
/**
|
35 |
-
*
|
36 |
-
*
|
37 |
* @param array $data
|
38 |
* @param string $key
|
39 |
-
* @return
|
40 |
*/
|
41 |
public function shaCrypt($data, $key = '')
|
42 |
{
|
43 |
-
|
44 |
-
return hash(self::HASH_ALGO, implode("", $data));
|
45 |
-
}if (is_string($data)) {
|
46 |
-
return hash(self::HASH_ALGO, $data);
|
47 |
-
} else {
|
48 |
-
return "";
|
49 |
-
}
|
50 |
}
|
51 |
|
52 |
/**
|
53 |
-
*
|
54 |
-
*
|
55 |
* @param array $data
|
56 |
* @param string $hash
|
57 |
* @param string $key
|
@@ -59,12 +57,6 @@ class Mage_Ogone_Helper_Data extends Mage_Core_Helper_Abstract
|
|
59 |
*/
|
60 |
public function shaCryptValidation($data, $hash, $key='')
|
61 |
{
|
62 |
-
|
63 |
-
return (bool)(strtoupper(hash(self::HASH_ALGO, implode("", $data)))== $hash);
|
64 |
-
} elseif (is_string($data)) {
|
65 |
-
return (bool)(strtoupper(hash(self::HASH_ALGO, $data))== $hash);
|
66 |
-
} else {
|
67 |
-
return false;
|
68 |
-
}
|
69 |
}
|
70 |
}
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
29 |
*/
|
30 |
class Mage_Ogone_Helper_Data extends Mage_Core_Helper_Abstract
|
31 |
{
|
32 |
+
/**
|
33 |
+
* @deprecated after 1.4.2.0-beta1
|
34 |
+
* @see Mage_Ogone_Model_Api::HASH_ALGO_SHA1
|
35 |
+
*/
|
36 |
const HASH_ALGO = 'sha1';
|
37 |
|
38 |
/**
|
39 |
+
* @deprecated after 1.4.2.0-beta1
|
40 |
+
* @see Mage_Ogone_Model_Api::getHash()
|
41 |
* @param array $data
|
42 |
* @param string $key
|
43 |
+
* @return string
|
44 |
*/
|
45 |
public function shaCrypt($data, $key = '')
|
46 |
{
|
47 |
+
return '';
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
|
50 |
/**
|
51 |
+
* @deprecated after 1.4.2.0-beta1
|
52 |
+
* @see Mage_Ogone_Model_Api::getHash()
|
53 |
* @param array $data
|
54 |
* @param string $hash
|
55 |
* @param string $key
|
57 |
*/
|
58 |
public function shaCryptValidation($data, $hash, $key='')
|
59 |
{
|
60 |
+
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
}
|
app/code/core/Mage/Ogone/Model/Api.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
@@ -47,6 +47,84 @@ class Mage_Ogone_Model_Api extends Mage_Payment_Model_Method_Abstract
|
|
47 |
protected $_canUseCheckout = true;
|
48 |
protected $_canUseForMultishipping = false;
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
/* Ogone template modes */
|
51 |
const TEMPLATE_OGONE = 'ogone';
|
52 |
const TEMPLATE_MAGENTO = 'magento';
|
@@ -79,6 +157,21 @@ class Mage_Ogone_Model_Api extends Mage_Payment_Model_Method_Abstract
|
|
79 |
const OGONE_AUTHORIZE_ACTION = 'RES';
|
80 |
const OGONE_AUTHORIZE_CAPTURE_ACTION = 'SAL';
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
/**
|
83 |
* Init Ogone Api instance, detup default values
|
84 |
*
|
@@ -101,14 +194,14 @@ class Mage_Ogone_Model_Api extends Mage_Payment_Model_Method_Abstract
|
|
101 |
}
|
102 |
|
103 |
/**
|
104 |
-
*
|
105 |
*
|
106 |
* @param int storeId
|
107 |
* @return bool
|
108 |
*/
|
109 |
public function getDebug($storeId=null)
|
110 |
{
|
111 |
-
return $this->
|
112 |
}
|
113 |
|
114 |
/**
|
@@ -176,12 +269,6 @@ class Mage_Ogone_Model_Api extends Mage_Payment_Model_Method_Abstract
|
|
176 |
$formFields['operation'] = $paymentAction;
|
177 |
}
|
178 |
|
179 |
-
$secretCode = $this->getConfig()->getShaOutCode();
|
180 |
-
$secretSet = $formFields['orderID'] . $formFields['amount'] . $formFields['currency'] .
|
181 |
-
$formFields['PSPID'] . $paymentAction . $secretCode;
|
182 |
-
|
183 |
-
$formFields['SHASign'] = Mage::helper('ogone')->shaCrypt($secretSet);
|
184 |
-
|
185 |
$formFields['homeurl'] = $this->getConfig()->getHomeUrl();
|
186 |
$formFields['catalogurl'] = $this->getConfig()->getHomeUrl();
|
187 |
$formFields['accepturl'] = $this->getConfig()->getAcceptUrl();
|
@@ -204,9 +291,86 @@ class Mage_Ogone_Model_Api extends Mage_Payment_Model_Method_Abstract
|
|
204 |
$formFields['BUTTONTXTCOLOR'] = $this->getConfig()->getConfigData('buttontxtcolor');
|
205 |
$formFields['FONTTYPE'] = $this->getConfig()->getConfigData('fonttype');
|
206 |
$formFields['LOGO'] = $this->getConfig()->getConfigData('logo');
|
|
|
|
|
|
|
|
|
|
|
207 |
return $formFields;
|
208 |
}
|
209 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
/**
|
211 |
* to translate UTF 8 to ISO 8859-1
|
212 |
* Ogone system is only compatible with iso-8859-1 and does not (yet) fully support the utf-8
|
@@ -255,4 +419,49 @@ class Mage_Ogone_Model_Api extends Mage_Payment_Model_Method_Abstract
|
|
255 |
}
|
256 |
return Mage::helper('core/string')->substr($invoiceDesc, 0, -2);
|
257 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
}
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
47 |
protected $_canUseCheckout = true;
|
48 |
protected $_canUseForMultishipping = false;
|
49 |
|
50 |
+
/**
|
51 |
+
* "OUT" hash string components, correspond to the "IN" signature in Ogone.
|
52 |
+
* "Out" relative to Magento, "in" relative to Ogone.
|
53 |
+
*
|
54 |
+
* @see Ogone eCommerce Advanced Technical Integration Guide v.5.0
|
55 |
+
* @var array
|
56 |
+
*/
|
57 |
+
protected static $_outAllMap = array(
|
58 |
+
'ACCEPTURL', 'ADDMATCH', 'ADDRMATCH',
|
59 |
+
// airline tickets - not implemented
|
60 |
+
// 'AIAIRNAME', 'AIAIRTAX', /*'AIBOOKIND*XX*', 'AICARRIER*XX*',*/ 'AICHDET', /*'AICLASS*XX*',*/ 'AICONJTI',
|
61 |
+
// /*'AIDESTCITY*XX*', 'AIDESTCITYL*XX*', 'AIEXTRAPASNAME*XX*',*/ 'AIEYCD', /*'AIFLDATE*XX*', 'AIFLNUM*XX*',*/
|
62 |
+
// 'AIIRST', /*'AIORCITY*XX*', 'AIORCITYL*XX*',*/ 'AIPASNAME', /*'AISTOPOV*XX*',*/ 'AITIDATE', 'AITINUM',
|
63 |
+
// 'AITYPCH', 'AIVATAMNT', 'AIVATAPPL',
|
64 |
+
'ALIAS','ALIASOPERATION', 'ALIASUSAGE',
|
65 |
+
'ALLOWCORRECTION', 'AMOUNT', /*'AMOUNT*XX*',*/ 'AMOUNTHTVA', 'AMOUNTTVA', 'BACKURL', 'BGCOLOR', 'BRAND',
|
66 |
+
'BRANDVISUAL', 'BUTTONBGCOLOR', 'BUTTONTXTCOLOR', 'CANCELURL', 'CARDNO', 'CATALOGURL', 'CAVV_3D',
|
67 |
+
'CAVVALGORITHM_3D', 'CERTID', 'CHECK_AAV', 'CIVILITY', 'CN', 'COM', 'COMPLUS', 'COSTCENTER', 'COSTCODE',
|
68 |
+
'CREDITCODE', 'CUID', 'CURRENCY', 'CVC', 'DATA', 'DATATYPE', 'DATEIN', 'DATEOUT', 'DECLINEURL', 'DEVICE',
|
69 |
+
'DISCOUNTRATE', 'ECI',
|
70 |
+
'ECOM_BILLTO_POSTAL_CITY', 'ECOM_BILLTO_POSTAL_COUNTRYCODE', 'ECOM_BILLTO_POSTAL_NAME_FIRST',
|
71 |
+
'ECOM_BILLTO_POSTAL_NAME_LAST', 'ECOM_BILLTO_POSTAL_POSTALCODE', 'ECOM_BILLTO_POSTAL_STREET_LINE1',
|
72 |
+
'ECOM_BILLTO_POSTAL_STREET_LINE2', 'ECOM_BILLTO_POSTAL_STREET_NUMBER', 'ECOM_CONSUMERID',
|
73 |
+
'ECOM_CONSUMERORDERID', 'ECOM_CONSUMERUSERALIAS', 'ECOM_PAYMENT_CARD_EXPDATE_MONTH',
|
74 |
+
'ECOM_PAYMENT_CARD_EXPDATE_YEAR', 'ECOM_PAYMENT_CARD_NAME', 'ECOM_PAYMENT_CARD_VERIFICATION',
|
75 |
+
'ECOM_SHIPTO_COMPANY', 'ECOM_SHIPTO_DOB', 'ECOM_SHIPTO_ONLINE_EMAIL', 'ECOM_SHIPTO_POSTAL_CITY',
|
76 |
+
'ECOM_SHIPTO_POSTAL_COUNTRYCODE', 'ECOM_SHIPTO_POSTAL_NAME_FIRST', 'ECOM_SHIPTO_POSTAL_NAME_LAST',
|
77 |
+
'ECOM_SHIPTO_POSTAL_NAME_PREFIX', 'ECOM_SHIPTO_POSTAL_POSTALCODE', 'ECOM_SHIPTO_POSTAL_STREET_LINE1',
|
78 |
+
'ECOM_SHIPTO_POSTAL_STREET_LINE2', 'ECOM_SHIPTO_POSTAL_STREET_NUMBER', 'ECOM_SHIPTO_TELECOM_FAX_NUMBER',
|
79 |
+
'ECOM_SHIPTO_TELECOM_PHONE_NUMBER', 'ECOM_SHIPTO_TVA',
|
80 |
+
'ED', 'EMAIL', 'EXCEPTIONURL', 'EXCLPMLIST', /*'EXECUTIONDATE*XX*',*/ 'FIRSTCALL', 'FLAG3D', 'FONTTYPE',
|
81 |
+
'FORCECODE1', 'FORCECODE2', 'FORCECODEHASH', 'FORCEPROCESS', 'FORCETP', 'GENERIC_BL', 'GIROPAY_BL',
|
82 |
+
'GIROPAY_ACCOUNT_NUMBER', 'GIROPAY_BLZ', 'GIROPAY_OWNER_NAME', 'GLOBORDERID', 'GUID', 'HDFONTTYPE',
|
83 |
+
'HDTBLBGCOLOR', 'HDTBLTXTCOLOR', 'HEIGHTFRAME', 'HOMEURL', 'HTTP_ACCEPT', 'HTTP_USER_AGENT', 'INCLUDE_BIN',
|
84 |
+
'INCLUDE_COUNTRIES', 'INVDATE', 'INVDISCOUNT', 'INVLEVEL', 'INVORDERID', 'ISSUERID',
|
85 |
+
// cart items - not implemented
|
86 |
+
// 'ITEMCATEGORY*XX*', 'ITEMDISCOUNT*XX*', 'ITEMID*XX*', 'ITEMNAME*XX*', 'ITEMPRICE*XX*', 'ITEMQUANT*XX*',
|
87 |
+
// 'ITEMUNITOFMEASURE*XX*', 'ITEMVAT*XX*', 'ITEMVATCODE*XX*',
|
88 |
+
'LANGUAGE', 'LEVEL1AUTHCPC', /*'LIDEXCL*XX*',*/ 'LIMITCLIENTSCRIPTUSAGE', 'LINE_REF',
|
89 |
+
'LIST_BIN', 'LIST_COUNTRIES', 'LOGO', 'MERCHANTID', 'MODE', 'MTIME', 'MVER', 'NETAMOUNT', 'OPERATION',
|
90 |
+
'ORDERID', 'ORDERSHIPCOST', 'ORDERSHIPTAX', 'ORDERSHIPTAXCODE',
|
91 |
+
'ORIG', 'OR_INVORDERID', 'OR_ORDERID', 'OWNERADDRESS', 'OWNERADDRESS2', 'OWNERCTY', 'OWNERTELNO',
|
92 |
+
'OWNERTOWN', 'OWNERZIP', 'PAIDAMOUNT', 'PARAMPLUS', 'PARAMVAR', 'PAYID', 'PAYMETHOD', 'PM', 'PMLIST',
|
93 |
+
'PMLISTPMLISTTYPE', 'PMLISTTYPE', 'PMLISTTYPEPMLIST', 'PMTYPE', 'POPUP', 'POST', 'PSPID', 'PSWD', 'REF',
|
94 |
+
'REFER', 'REFID', 'REFKIND', 'REF_CUSTOMERID', 'REF_CUSTOMERREF', 'REMOTE_ADDR', 'REQGENFIELDS','RTIMEOUT',
|
95 |
+
'RTIMEOUTREQUESTEDTIMEOUT', 'SCORINGCLIENT', 'SETT_BATCH', 'SID', 'STATUS_3D', 'SUBSCRIPTION_ID', 'SUB_AM',
|
96 |
+
'SUB_AMOUNT', 'SUB_COM', 'SUB_COMMENT', 'SUB_CUR', 'SUB_ENDDATE', 'SUB_ORDERID', 'SUB_PERIOD_MOMENT',
|
97 |
+
'SUB_PERIOD_MOMENT_M', 'SUB_PERIOD_MOMENT_WW', 'SUB_PERIOD_NUMBER', 'SUB_PERIOD_NUMBER_D',
|
98 |
+
'SUB_PERIOD_NUMBER_M', 'SUB_PERIOD_NUMBER_WW', 'SUB_PERIOD_UNIT', 'SUB_STARTDATE', 'SUB_STATUS', 'TAAL',
|
99 |
+
/*'TAXINCLUDED*XX*',*/ 'TBLBGCOLOR', 'TBLTXTCOLOR', 'TID', 'TITLE', 'TOTALAMOUNT', 'TP', 'TRACK2', 'TXTBADDR2',
|
100 |
+
'TXTCOLOR', 'TXTOKEN', 'TXTOKENTXTOKENPAYPAL', 'TYPE_COUNTRY', 'UCAF_AUTHENTICATION_DATA',
|
101 |
+
'UCAF_PAYMENT_CARD_CVC2', 'UCAF_PAYMENT_CARD_EXPDATE_MONTH', 'UCAF_PAYMENT_CARD_EXPDATE_YEAR',
|
102 |
+
'UCAF_PAYMENT_CARD_NUMBER', 'USERID', 'USERTYPE', 'VERSION', 'WBTU_MSISDN', 'WBTU_ORDERID', 'WEIGHTUNIT',
|
103 |
+
'WIN3DS', 'WITHROOT',
|
104 |
+
);
|
105 |
+
protected static $_outShortMap = array('ORDERID', 'AMOUNT', 'CURRENCY', 'PSPID', 'OPERATION',);
|
106 |
+
|
107 |
+
/**
|
108 |
+
* "IN" hash string components, correspond to the "OUT" signature in Ogone.
|
109 |
+
* "In" relative to Magento, "out" relative to Ogone.
|
110 |
+
*
|
111 |
+
* @see Ogone eCommerce Advanced Technical Integration Guide v.5.0
|
112 |
+
* @var array
|
113 |
+
*/
|
114 |
+
protected static $_inAllMap = array(
|
115 |
+
'AAVADDRESS', 'AAVCHECK', 'AAVZIP', 'ACCEPTANCE', 'ALIAS', 'AMOUNT', 'BRAND', 'CARDNO', 'CCCTY', 'CN',
|
116 |
+
'COMPLUS', 'CREATION_STATUS', 'CURRENCY', 'CVCCHECK', 'DCC_COMMPERCENTAGE', 'DCC_CONVAMOUNT', 'DCC_CONVCCY',
|
117 |
+
'DCC_EXCHRATE', 'DCC_EXCHRATESOURCE', 'DCC_EXCHRATETS', 'DCC_INDICATOR', 'DCC_MARGINPERCENTAGE',
|
118 |
+
'DCC_VALIDHOURS', 'DIGESTCARDNO', 'ECI', 'ED', 'ENCCARDNO', 'IP', 'IPCTY', 'NBREMAILUSAGE', 'NBRIPUSAGE',
|
119 |
+
'NBRIPUSAGE_ALLTX', 'NBRUSAGE', 'NCERROR', 'ORDERID', 'PAYID', 'PM', 'SCO_CATEGORY', 'SCORING','STATUS',
|
120 |
+
'SUBSCRIPTION_ID', 'TRXDATE', 'VC',
|
121 |
+
);
|
122 |
+
protected static $_inShortMap = array(
|
123 |
+
'ORDERID', 'CURRENCY', 'AMOUNT', 'PM', 'ACCEPTANCE', 'STATUS', 'CARDNO', 'PAYID', 'NCERROR', 'BRAND',
|
124 |
+
'DCC_INDICATOR', 'DCC_EXCHRATE', 'DCC_EXCHRATETS', 'DCC_CONVCCY', 'DCC_CONVAMOUNT', 'DCC_VALIDHOURS',
|
125 |
+
'DCC_EXCHRATESOURCE', 'DCC_MARGINPERCENTAGE', 'DCC_COMMPERCENTAGE',
|
126 |
+
);
|
127 |
+
|
128 |
/* Ogone template modes */
|
129 |
const TEMPLATE_OGONE = 'ogone';
|
130 |
const TEMPLATE_MAGENTO = 'magento';
|
157 |
const OGONE_AUTHORIZE_ACTION = 'RES';
|
158 |
const OGONE_AUTHORIZE_CAPTURE_ACTION = 'SAL';
|
159 |
|
160 |
+
/**
|
161 |
+
* Parameters hashing context
|
162 |
+
* @var string
|
163 |
+
*/
|
164 |
+
const HASH_DIR_OUT = 'out';
|
165 |
+
const HASH_DIR_IN = 'in';
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Supported hashing algorithms
|
169 |
+
* @var string
|
170 |
+
*/
|
171 |
+
const HASH_SHA1 = 'sha1';
|
172 |
+
const HASH_SHA256 = 'sha256';
|
173 |
+
const HASH_SHA512 = 'sha512';
|
174 |
+
|
175 |
/**
|
176 |
* Init Ogone Api instance, detup default values
|
177 |
*
|
194 |
}
|
195 |
|
196 |
/**
|
197 |
+
* @deprecated after 1.4.1.0
|
198 |
*
|
199 |
* @param int storeId
|
200 |
* @return bool
|
201 |
*/
|
202 |
public function getDebug($storeId=null)
|
203 |
{
|
204 |
+
return $this->getDebugFlag();
|
205 |
}
|
206 |
|
207 |
/**
|
269 |
$formFields['operation'] = $paymentAction;
|
270 |
}
|
271 |
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
$formFields['homeurl'] = $this->getConfig()->getHomeUrl();
|
273 |
$formFields['catalogurl'] = $this->getConfig()->getHomeUrl();
|
274 |
$formFields['accepturl'] = $this->getConfig()->getAcceptUrl();
|
291 |
$formFields['BUTTONTXTCOLOR'] = $this->getConfig()->getConfigData('buttontxtcolor');
|
292 |
$formFields['FONTTYPE'] = $this->getConfig()->getConfigData('fonttype');
|
293 |
$formFields['LOGO'] = $this->getConfig()->getConfigData('logo');
|
294 |
+
|
295 |
+
$formFields['SHASign'] = $this->getHash($formFields, $this->getConfig()->getShaOutCode(), self::HASH_DIR_OUT,
|
296 |
+
(int)$this->getConfig()->getConfigData('shamode'), $this->getConfig()->getConfigData('hashing_algorithm')
|
297 |
+
);
|
298 |
+
|
299 |
return $formFields;
|
300 |
}
|
301 |
|
302 |
+
/**
|
303 |
+
* Debug specified order fields if needed
|
304 |
+
*
|
305 |
+
* @param Mage_Sales_Model_Order $order
|
306 |
+
*/
|
307 |
+
public function debugOrder(Mage_Sales_Model_Order $order)
|
308 |
+
{
|
309 |
+
if ($this->getDebugFlag()) {
|
310 |
+
$this->debugData(array('request' => $this->getFormFields($order)));
|
311 |
+
}
|
312 |
+
}
|
313 |
+
|
314 |
+
/**
|
315 |
+
* Create hash from provided data
|
316 |
+
*
|
317 |
+
* @param array $data
|
318 |
+
* @param string $passPhrase
|
319 |
+
* @param string $direction
|
320 |
+
* @param bool|int $mapAllParams
|
321 |
+
* @param string $algorithm
|
322 |
+
* @return string
|
323 |
+
* @throws Exception
|
324 |
+
*/
|
325 |
+
public function getHash($data, $passPhrase, $direction, $mapAllParams = false, $algorithm = null)
|
326 |
+
{
|
327 |
+
// pick the right keys map depending on context
|
328 |
+
if (self::HASH_DIR_OUT === $direction) {
|
329 |
+
$hashMap = $mapAllParams ? '_outAllMap' : '_outShortMap';
|
330 |
+
} elseif (self::HASH_DIR_IN === $direction) {
|
331 |
+
$hashMap = $mapAllParams ? '_inAllMap' : '_inShortMap';
|
332 |
+
} else {
|
333 |
+
throw new Exception(sprintf('Unknown hashing context "%s".', $direction));
|
334 |
+
}
|
335 |
+
|
336 |
+
// collect non-empty data that maps and sort it alphabetically by key (uppercase)
|
337 |
+
$collected = array();
|
338 |
+
foreach ($data as $key => $value) {
|
339 |
+
if (null !== $value && '' != $value) {
|
340 |
+
$key = strtoupper($key);
|
341 |
+
if (in_array($key, self::$$hashMap)) {
|
342 |
+
$collected[$key] = $value;
|
343 |
+
}
|
344 |
+
}
|
345 |
+
}
|
346 |
+
ksort($collected);
|
347 |
+
|
348 |
+
if ($mapAllParams) {
|
349 |
+
$nonHashed = $this->_concatenateAdvanced($collected, $passPhrase);
|
350 |
+
if (empty($algorithm) || !in_array($algorithm, $this->getHashingAlgorithms(false))) {
|
351 |
+
$algorithm = self::HASH_SHA256;
|
352 |
+
}
|
353 |
+
} else {
|
354 |
+
$nonHashed = $this->_concatenateBasic($collected, $passPhrase, $hashMap);
|
355 |
+
$algorithm = self::HASH_SHA1;
|
356 |
+
}
|
357 |
+
return strtoupper(hash($algorithm, $nonHashed));
|
358 |
+
}
|
359 |
+
|
360 |
+
/**
|
361 |
+
* Get supported hashing algorithms as array
|
362 |
+
*
|
363 |
+
* @param bool $withLabels
|
364 |
+
* @return array
|
365 |
+
*/
|
366 |
+
public function getHashingAlgorithms($withLabels = true)
|
367 |
+
{
|
368 |
+
if ($withLabels) {
|
369 |
+
return array(self::HASH_SHA1 => 'SHA-1', self::HASH_SHA256 => 'SHA-256', self::HASH_SHA512 => 'SHA-512');
|
370 |
+
}
|
371 |
+
return array(self::HASH_SHA1, self::HASH_SHA256, self::HASH_SHA512);
|
372 |
+
}
|
373 |
+
|
374 |
/**
|
375 |
* to translate UTF 8 to ISO 8859-1
|
376 |
* Ogone system is only compatible with iso-8859-1 and does not (yet) fully support the utf-8
|
419 |
}
|
420 |
return Mage::helper('core/string')->substr($invoiceDesc, 0, -2);
|
421 |
}
|
422 |
+
|
423 |
+
/**
|
424 |
+
* Define if debugging is enabled
|
425 |
+
*
|
426 |
+
* @return bool
|
427 |
+
*/
|
428 |
+
public function getDebugFlag()
|
429 |
+
{
|
430 |
+
return $this->getConfigData('debug_flag');
|
431 |
+
}
|
432 |
+
|
433 |
+
/**
|
434 |
+
* Transform collected data array to <value1><value2><...><passPhrase> according to the provided map
|
435 |
+
*
|
436 |
+
* @param array $data
|
437 |
+
* @param string $passPhrase
|
438 |
+
* @param string $hashMap
|
439 |
+
* @return string
|
440 |
+
*/
|
441 |
+
protected function _concatenateBasic($data, $passPhrase, $hashMap)
|
442 |
+
{
|
443 |
+
$result = '';
|
444 |
+
foreach (self::$$hashMap as $key) {
|
445 |
+
if (isset($data[$key])) {
|
446 |
+
$result .= $data[$key];
|
447 |
+
}
|
448 |
+
}
|
449 |
+
return $result . $passPhrase;
|
450 |
+
}
|
451 |
+
|
452 |
+
/**
|
453 |
+
* Transform collected data array to <KEY>=<value><passPhrase>
|
454 |
+
*
|
455 |
+
* @param array $data
|
456 |
+
* @param string $passPhrase
|
457 |
+
* @return string
|
458 |
+
*/
|
459 |
+
protected function _concatenateAdvanced($data, $passPhrase)
|
460 |
+
{
|
461 |
+
$result = '';
|
462 |
+
foreach ($data as $key => $value) {
|
463 |
+
$result .= "{$key}={$value}{$passPhrase}";
|
464 |
+
}
|
465 |
+
return $result;
|
466 |
+
}
|
467 |
}
|
app/code/core/Mage/Ogone/Model/Api.php.lindy
DELETED
@@ -1,256 +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 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
-
*/
|
26 |
-
|
27 |
-
/**
|
28 |
-
* Ogone payment method model
|
29 |
-
*/
|
30 |
-
class Mage_Ogone_Model_Api extends Mage_Payment_Model_Method_Abstract
|
31 |
-
{
|
32 |
-
protected $_code = 'ogone';
|
33 |
-
protected $_formBlockType = 'ogone/form';
|
34 |
-
protected $_infoBlockType = 'ogone/info';
|
35 |
-
protected $_config = null;
|
36 |
-
|
37 |
-
/**
|
38 |
-
* Availability options
|
39 |
-
*/
|
40 |
-
protected $_isGateway = false;
|
41 |
-
protected $_canAuthorize = true;
|
42 |
-
protected $_canCapture = true;
|
43 |
-
protected $_canCapturePartial = false;
|
44 |
-
protected $_canRefund = false;
|
45 |
-
protected $_canVoid = false;
|
46 |
-
protected $_canUseInternal = false;
|
47 |
-
protected $_canUseCheckout = true;
|
48 |
-
protected $_canUseForMultishipping = false;
|
49 |
-
|
50 |
-
/* Ogone template modes */
|
51 |
-
const TEMPLATE_OGONE = 'ogone';
|
52 |
-
const TEMPLATE_MAGENTO = 'magento';
|
53 |
-
|
54 |
-
/* Ogone payment process statuses */
|
55 |
-
const PENDING_OGONE_STATUS = 'pending_ogone';
|
56 |
-
const CANCEL_OGONE_STATUS = 'cancel_ogone';
|
57 |
-
const DECLINE_OGONE_STATUS = 'decline_ogone';
|
58 |
-
const PROCESSING_OGONE_STATUS = 'processing_ogone';
|
59 |
-
const PROCESSED_OGONE_STATUS = 'processed_ogone';
|
60 |
-
|
61 |
-
/* Ogone responce statuses */
|
62 |
-
const OGONE_PAYMENT_REQUESTED_STATUS = 9;
|
63 |
-
const OGONE_PAYMENT_PROCESSING_STATUS = 91;
|
64 |
-
const OGONE_AUTH_UKNKOWN_STATUS = 52;
|
65 |
-
const OGONE_PAYMENT_UNCERTAIN_STATUS = 92;
|
66 |
-
const OGONE_PAYMENT_INCOMPLETE = 1;
|
67 |
-
const OGONE_AUTH_REFUZED = 2;
|
68 |
-
const OGONE_AUTH_PROCESSING = 51;
|
69 |
-
const OGONE_TECH_PROBLEM = 93;
|
70 |
-
|
71 |
-
/* Layout of the payment method */
|
72 |
-
const PMLIST_HORISONTAL_LEFT = 0;
|
73 |
-
const PMLIST_HORISONTAL = 1;
|
74 |
-
const PMLIST_VERTICAL = 2;
|
75 |
-
|
76 |
-
/* ogone paymen action constant*/
|
77 |
-
const OGONE_AUTHORIZE_ACTION = 'RES';
|
78 |
-
const OGONE_AUTHORIZE_CAPTURE_ACTION = 'SAL';
|
79 |
-
|
80 |
-
/**
|
81 |
-
* Init Ogone Api instance, detup default values
|
82 |
-
*
|
83 |
-
* @return Mage_Ogone_Model_Api
|
84 |
-
*/
|
85 |
-
public function __construct()
|
86 |
-
{
|
87 |
-
$this->_config = Mage::getSingleton('ogone/config');
|
88 |
-
return $this;
|
89 |
-
}
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Return ogone config instance
|
93 |
-
*
|
94 |
-
* @return Mage_Ogone_Model_Config
|
95 |
-
*/
|
96 |
-
public function getConfig()
|
97 |
-
{
|
98 |
-
return $this->_config;
|
99 |
-
}
|
100 |
-
|
101 |
-
/**
|
102 |
-
* Return debug flag by storeConfig
|
103 |
-
*
|
104 |
-
* @param int storeId
|
105 |
-
* @return bool
|
106 |
-
*/
|
107 |
-
public function getDebug($storeId=null)
|
108 |
-
{
|
109 |
-
return $this->getConfig()->getConfigData('debug_flag', $storeId);
|
110 |
-
}
|
111 |
-
|
112 |
-
/**
|
113 |
-
* Flag witch prevent automatic invoice creation
|
114 |
-
*
|
115 |
-
* @return bool
|
116 |
-
*/
|
117 |
-
public function isInitializeNeeded()
|
118 |
-
{
|
119 |
-
return true;
|
120 |
-
}
|
121 |
-
|
122 |
-
/**
|
123 |
-
* Redirect url to ogone submit form
|
124 |
-
*
|
125 |
-
* @return string
|
126 |
-
*/
|
127 |
-
public function getOrderPlaceRedirectUrl()
|
128 |
-
{
|
129 |
-
return Mage::getUrl('ogone/api/placeform', array('_secure' => true));
|
130 |
-
}
|
131 |
-
|
132 |
-
/**
|
133 |
-
* Return payment_action value from config area
|
134 |
-
*
|
135 |
-
* @return string
|
136 |
-
*/
|
137 |
-
public function getPaymentAction()
|
138 |
-
{
|
139 |
-
return $this->getConfig()->getConfigData('payment_action');
|
140 |
-
}
|
141 |
-
|
142 |
-
/**
|
143 |
-
* Rrepare params array to send it to gateway page via POST
|
144 |
-
*
|
145 |
-
* @param Mage_Sales_Model_Order
|
146 |
-
* @return array
|
147 |
-
*/
|
148 |
-
public function getFormFields($order)
|
149 |
-
{
|
150 |
-
if (empty($order)) {
|
151 |
-
if (!($order = $this->getOrder())) {
|
152 |
-
return array();
|
153 |
-
}
|
154 |
-
}
|
155 |
-
$billingAddress = $order->getBillingAddress();
|
156 |
-
$formFields = array();
|
157 |
-
$formFields['PSPID'] = $this->getConfig()->getPSPID();
|
158 |
-
$formFields['orderID'] = $order->getIncrementId();
|
159 |
-
$formFields['amount'] = round($order->getBaseGrandTotal()*100);
|
160 |
-
$formFields['currency'] = Mage::app()->getStore()->getBaseCurrencyCode();
|
161 |
-
$formFields['language'] = Mage::app()->getLocale()->getLocaleCode();
|
162 |
-
|
163 |
-
$formFields['CN'] = $this->_translate($billingAddress->getFirstname().' '.$billingAddress->getLastname());
|
164 |
-
$formFields['EMAIL'] = $order->getCustomerEmail();
|
165 |
-
$formFields['ownerZIP'] = $billingAddress->getPostcode();
|
166 |
-
$formFields['ownercty'] = $billingAddress->getCountry();
|
167 |
-
$formFields['ownertown']= $this->_translate($billingAddress->getCity());
|
168 |
-
$formFields['COM'] = $this->_translate($this->_getOrderDescription($order));
|
169 |
-
$formFields['ownertelno'] = $billingAddress->getTelephone();
|
170 |
-
$formFields['owneraddress'] = $this->_translate(str_replace("\n", ' ',$billingAddress->getStreet(-1)));
|
171 |
-
|
172 |
-
$paymentAction = $this->_getOgonePaymentOperation();
|
173 |
-
if ($paymentAction ) {
|
174 |
-
$formFields['operation'] = $paymentAction;
|
175 |
-
}
|
176 |
-
|
177 |
-
$secretCode = $this->getConfig()->getShaOutCode();
|
178 |
-
$secretSet = $formFields['orderID'] . $formFields['amount'] . $formFields['currency'] .
|
179 |
-
$formFields['PSPID'] . $paymentAction . $secretCode;
|
180 |
-
|
181 |
-
$formFields['SHASign'] = Mage::helper('ogone')->shaCrypt($secretSet);
|
182 |
-
|
183 |
-
$formFields['homeurl'] = $this->getConfig()->getHomeUrl();
|
184 |
-
$formFields['catalogurl'] = $this->getConfig()->getHomeUrl();
|
185 |
-
$formFields['accepturl'] = $this->getConfig()->getAcceptUrl();
|
186 |
-
$formFields['declineurl'] = $this->getConfig()->getDeclineUrl();
|
187 |
-
$formFields['excteptionurl'] = $this->getConfig()->getExceptionUrl();
|
188 |
-
$formFields['cancelurl'] = $this->getConfig()->getCancelUrl();
|
189 |
-
|
190 |
-
if ($this->getConfig()->getConfigData('template')=='ogone') {
|
191 |
-
$formFields['TP']= '';
|
192 |
-
$formFields['PMListType'] = $this->getConfig()->getConfigData('pmlist');
|
193 |
-
} else {
|
194 |
-
$formFields['TP']= $this->getConfig()->getPayPageTemplate();
|
195 |
-
}
|
196 |
-
$formFields['TITLE'] = $this->_translate($this->getConfig()->getConfigData('html_title'));
|
197 |
-
$formFields['BGCOLOR'] = $this->getConfig()->getConfigData('bgcolor');
|
198 |
-
$formFields['TXTCOLOR'] = $this->getConfig()->getConfigData('txtcolor');
|
199 |
-
$formFields['TBLBGCOLOR'] = $this->getConfig()->getConfigData('tblbgcolor');
|
200 |
-
$formFields['TBLTXTCOLOR'] = $this->getConfig()->getConfigData('tbltxtcolor');
|
201 |
-
$formFields['BUTTONBGCOLOR'] = $this->getConfig()->getConfigData('buttonbgcolor');
|
202 |
-
$formFields['BUTTONTXTCOLOR'] = $this->getConfig()->getConfigData('buttontxtcolor');
|
203 |
-
$formFields['FONTTYPE'] = $this->getConfig()->getConfigData('fonttype');
|
204 |
-
$formFields['LOGO'] = $this->getConfig()->getConfigData('logo');
|
205 |
-
|
206 |
-
return $formFields;
|
207 |
-
}
|
208 |
-
|
209 |
-
/**
|
210 |
-
* to translate UTF 8 to ISO 8859-1
|
211 |
-
* Ogone system is only compatible with iso-8859-1 and does not (yet) fully support the utf-8
|
212 |
-
*/
|
213 |
-
protected function _translate($text)
|
214 |
-
{
|
215 |
-
return iconv("UTF-8", "ISO-8859-1", $text);
|
216 |
-
}
|
217 |
-
|
218 |
-
/**
|
219 |
-
* Get Ogone Payment Action value
|
220 |
-
*
|
221 |
-
* @param string
|
222 |
-
* @return string
|
223 |
-
*/
|
224 |
-
protected function _getOgonePaymentOperation()
|
225 |
-
{
|
226 |
-
$value = $this->getPaymentAction();
|
227 |
-
if ($value==Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE) {
|
228 |
-
$value = Mage_Ogone_Model_Api::OGONE_AUTHORIZE_ACTION;
|
229 |
-
} elseif ($value==Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE) {
|
230 |
-
$value = Mage_Ogone_Model_Api::OGONE_AUTHORIZE_CAPTURE_ACTION;
|
231 |
-
}
|
232 |
-
return $value;
|
233 |
-
}
|
234 |
-
|
235 |
-
/**
|
236 |
-
* get formated order description
|
237 |
-
*
|
238 |
-
* @param Mage_Sales_Model_Order
|
239 |
-
* @return string
|
240 |
-
*/
|
241 |
-
protected function _getOrderDescription($order)
|
242 |
-
{
|
243 |
-
$invoiceDesc = '';
|
244 |
-
$lengs = 0;
|
245 |
-
foreach ($order->getAllItems() as $item) {
|
246 |
-
if ($item->getParentItem()) {
|
247 |
-
continue;
|
248 |
-
}
|
249 |
-
if (Mage::helper('core/string')->strlen($invoiceDesc.$item->getName()) > 10000) {
|
250 |
-
break;
|
251 |
-
}
|
252 |
-
$invoiceDesc .= $item->getName() . ', ';
|
253 |
-
}
|
254 |
-
return Mage::helper('core/string')->substr($invoiceDesc, 0, -2);
|
255 |
-
}
|
256 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/core/Mage/Ogone/Model/Api/Debug.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
app/code/core/Mage/Ogone/Model/Config.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
@@ -96,7 +96,7 @@ class Mage_Ogone_Model_Config extends Mage_Payment_Model_Config
|
|
96 |
*/
|
97 |
public function getPayPageTemplate()
|
98 |
{
|
99 |
-
return Mage::getUrl('ogone/api/paypage');
|
100 |
}
|
101 |
|
102 |
/**
|
@@ -106,7 +106,7 @@ class Mage_Ogone_Model_Config extends Mage_Payment_Model_Config
|
|
106 |
*/
|
107 |
public function getAcceptUrl()
|
108 |
{
|
109 |
-
return Mage::getUrl('ogone/api/accept');
|
110 |
}
|
111 |
|
112 |
/**
|
@@ -116,7 +116,7 @@ class Mage_Ogone_Model_Config extends Mage_Payment_Model_Config
|
|
116 |
*/
|
117 |
public function getDeclineUrl()
|
118 |
{
|
119 |
-
return Mage::getUrl('ogone/api/decline');
|
120 |
}
|
121 |
|
122 |
/**
|
@@ -126,7 +126,7 @@ class Mage_Ogone_Model_Config extends Mage_Payment_Model_Config
|
|
126 |
*/
|
127 |
public function getExceptionUrl()
|
128 |
{
|
129 |
-
return Mage::getUrl('ogone/api/exception');
|
130 |
}
|
131 |
|
132 |
/**
|
@@ -136,7 +136,7 @@ class Mage_Ogone_Model_Config extends Mage_Payment_Model_Config
|
|
136 |
*/
|
137 |
public function getCancelUrl()
|
138 |
{
|
139 |
-
return Mage::getUrl('ogone/api/cancel');
|
140 |
}
|
141 |
|
142 |
/**
|
@@ -146,6 +146,6 @@ class Mage_Ogone_Model_Config extends Mage_Payment_Model_Config
|
|
146 |
*/
|
147 |
public function getHomeUrl()
|
148 |
{
|
149 |
-
return Mage::getUrl('checkout/cart');
|
150 |
}
|
151 |
}
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
96 |
*/
|
97 |
public function getPayPageTemplate()
|
98 |
{
|
99 |
+
return Mage::getUrl('ogone/api/paypage', array('_nosid' => true));
|
100 |
}
|
101 |
|
102 |
/**
|
106 |
*/
|
107 |
public function getAcceptUrl()
|
108 |
{
|
109 |
+
return Mage::getUrl('ogone/api/accept', array('_nosid' => true));
|
110 |
}
|
111 |
|
112 |
/**
|
116 |
*/
|
117 |
public function getDeclineUrl()
|
118 |
{
|
119 |
+
return Mage::getUrl('ogone/api/decline', array('_nosid' => true));
|
120 |
}
|
121 |
|
122 |
/**
|
126 |
*/
|
127 |
public function getExceptionUrl()
|
128 |
{
|
129 |
+
return Mage::getUrl('ogone/api/exception', array('_nosid' => true));
|
130 |
}
|
131 |
|
132 |
/**
|
136 |
*/
|
137 |
public function getCancelUrl()
|
138 |
{
|
139 |
+
return Mage::getUrl('ogone/api/cancel', array('_nosid' => true));
|
140 |
}
|
141 |
|
142 |
/**
|
146 |
*/
|
147 |
public function getHomeUrl()
|
148 |
{
|
149 |
+
return Mage::getUrl('checkout/cart', array('_nosid' => true));
|
150 |
}
|
151 |
}
|
app/code/core/Mage/Ogone/Model/Mysql4/Api/Debug.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
app/code/core/Mage/Ogone/Model/Source/PaymentAction.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
@@ -37,7 +37,7 @@ class Mage_Ogone_Model_Source_PaymentAction
|
|
37 |
public function toOptionArray()
|
38 |
{
|
39 |
return array(
|
40 |
-
array('value' => '', 'label' => Mage::helper('ogone')->__('Ogone
|
41 |
array('value' => Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE, 'label' => Mage::helper('ogone')->__('Authorization')),
|
42 |
array('value' => Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE, 'label' => Mage::helper('ogone')->__('Direct Sale')),
|
43 |
);
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
37 |
public function toOptionArray()
|
38 |
{
|
39 |
return array(
|
40 |
+
array('value' => '', 'label' => Mage::helper('ogone')->__('Ogone Default Operation')),
|
41 |
array('value' => Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE, 'label' => Mage::helper('ogone')->__('Authorization')),
|
42 |
array('value' => Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE, 'label' => Mage::helper('ogone')->__('Direct Sale')),
|
43 |
);
|
app/code/core/Mage/Ogone/Model/Source/Pmlist.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
app/code/core/Mage/Ogone/Model/Source/Template.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
app/code/core/Mage/Ogone/controllers/ApiController.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
@@ -76,26 +76,22 @@ class Mage_Ogone_ApiController extends Mage_Core_Controller_Front_Action
|
|
76 |
*/
|
77 |
protected function _validateOgoneData()
|
78 |
{
|
79 |
-
if ($this->_getApi()->getDebug()) {
|
80 |
-
$debug = Mage::getModel('ogone/api_debug')
|
81 |
-
->setDir('in')
|
82 |
-
->setUrl($this->getRequest()->getPathInfo())
|
83 |
-
->setData('data',http_build_query($this->getRequest()->getParams()))
|
84 |
-
->save();
|
85 |
-
}
|
86 |
-
|
87 |
$params = $this->getRequest()->getParams();
|
88 |
-
$
|
89 |
-
$
|
90 |
|
91 |
-
|
92 |
-
$
|
|
|
|
|
|
|
|
|
93 |
return false;
|
94 |
}
|
95 |
|
96 |
$order = $this->_getOrder();
|
97 |
if (!$order->getId()){
|
98 |
-
$this->_getCheckout()->addError($this->__('
|
99 |
return false;
|
100 |
}
|
101 |
|
@@ -112,16 +108,10 @@ class Mage_Ogone_ApiController extends Mage_Core_Controller_Front_Action
|
|
112 |
$order = Mage::getModel('sales/order');
|
113 |
$order->loadByIncrementId($lastIncrementId);
|
114 |
if ($order->getId()) {
|
115 |
-
$order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage_Ogone_Model_Api::PENDING_OGONE_STATUS, Mage::helper('ogone')->__('Start
|
116 |
$order->save();
|
117 |
|
118 |
-
|
119 |
-
$debug = Mage::getModel('ogone/api_debug')
|
120 |
-
->setDir('out')
|
121 |
-
->setUrl($this->getRequest()->getPathInfo())
|
122 |
-
->setData('data', http_build_query($this->_getApi()->getFormFields($order)))
|
123 |
-
->save();
|
124 |
-
}
|
125 |
}
|
126 |
}
|
127 |
|
@@ -135,7 +125,7 @@ class Mage_Ogone_ApiController extends Mage_Core_Controller_Front_Action
|
|
135 |
}
|
136 |
|
137 |
/**
|
138 |
-
* Display our pay page, need to ogone payment with external pay page mode
|
139 |
*/
|
140 |
public function paypageAction()
|
141 |
{
|
@@ -224,15 +214,23 @@ class Mage_Ogone_ApiController extends Mage_Core_Controller_Front_Action
|
|
224 |
|
225 |
$this->_prepareCCInfo($order, $params);
|
226 |
$order->getPayment()->setTransactionId($params['PAYID']);
|
|
|
227 |
|
228 |
-
try{
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
$this->_redirect('checkout/cart');
|
237 |
return;
|
238 |
}
|
@@ -380,7 +378,7 @@ class Mage_Ogone_ApiController extends Mage_Core_Controller_Front_Action
|
|
380 |
}
|
381 |
$order->save();
|
382 |
}catch(Exception $e) {
|
383 |
-
$this->_getCheckout()->addError(Mage::helper('ogone')->__('
|
384 |
}
|
385 |
} else {
|
386 |
$this->_getCheckout()->addError(Mage::helper('ogone')->__('Exception not defined'));
|
@@ -412,7 +410,7 @@ class Mage_Ogone_ApiController extends Mage_Core_Controller_Front_Action
|
|
412 |
protected function _declineProcess()
|
413 |
{
|
414 |
$status = Mage_Ogone_Model_Api::DECLINE_OGONE_STATUS;
|
415 |
-
$comment = Mage::helper('ogone')->__('Declined Order on
|
416 |
$this->_getCheckout()->addError(Mage::helper('ogone')->__('Payment transaction has been declined.'));
|
417 |
$this->_cancelOrder($status, $comment);
|
418 |
}
|
@@ -443,7 +441,7 @@ class Mage_Ogone_ApiController extends Mage_Core_Controller_Front_Action
|
|
443 |
public function _cancelProcess()
|
444 |
{
|
445 |
$status = Mage_Ogone_Model_Api::CANCEL_OGONE_STATUS;
|
446 |
-
$comment = Mage::helper('ogone')->__('
|
447 |
$this->_cancelOrder($status, $comment);
|
448 |
return $this;
|
449 |
}
|
@@ -461,7 +459,7 @@ class Mage_Ogone_ApiController extends Mage_Core_Controller_Front_Action
|
|
461 |
$order->setState(Mage_Sales_Model_Order::STATE_CANCELED, $status, $comment);
|
462 |
$order->save();
|
463 |
}catch(Exception $e) {
|
464 |
-
$this->_getCheckout()->addError(Mage::helper('ogone')->__('
|
465 |
}
|
466 |
|
467 |
$this->_redirect('checkout/cart');
|
@@ -469,24 +467,12 @@ class Mage_Ogone_ApiController extends Mage_Core_Controller_Front_Action
|
|
469 |
}
|
470 |
|
471 |
/**
|
472 |
-
*
|
473 |
-
*
|
474 |
-
* @param array $data
|
475 |
-
* @param string $key
|
476 |
-
*
|
477 |
* @return string
|
478 |
*/
|
479 |
protected function _getSHAInSet($params, $key)
|
480 |
{
|
481 |
-
return
|
482 |
-
$this->getRequest()->getParam('currency') .
|
483 |
-
$this->getRequest()->getParam('amount') .
|
484 |
-
$this->getRequest()->getParam('PM') .
|
485 |
-
$this->getRequest()->getParam('ACCEPTANCE') .
|
486 |
-
$this->getRequest()->getParam('STATUS') .
|
487 |
-
$this->getRequest()->getParam('CARDNO') .
|
488 |
-
$this->getRequest()->getParam('PAYID') .
|
489 |
-
$this->getRequest()->getParam('NCERROR') .
|
490 |
-
$this->getRequest()->getParam('BRAND') . $key;
|
491 |
}
|
492 |
}
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
76 |
*/
|
77 |
protected function _validateOgoneData()
|
78 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
$params = $this->getRequest()->getParams();
|
80 |
+
$api = $this->_getApi();
|
81 |
+
$api->debugData(array('result' => $params));
|
82 |
|
83 |
+
$referenceHash = $api->getHash($params, $api->getConfig()->getShaInCode(), Mage_Ogone_Model_Api::HASH_DIR_IN,
|
84 |
+
(int)$api->getConfig()->getConfigData('shamode'), $api->getConfig()->getConfigData('hashing_algorithm')
|
85 |
+
);
|
86 |
+
|
87 |
+
if ($params['SHASIGN'] != $referenceHash) {
|
88 |
+
$this->_getCheckout()->addError($this->__('The hash is not valid'));
|
89 |
return false;
|
90 |
}
|
91 |
|
92 |
$order = $this->_getOrder();
|
93 |
if (!$order->getId()){
|
94 |
+
$this->_getCheckout()->addError($this->__('The order is not valid'));
|
95 |
return false;
|
96 |
}
|
97 |
|
108 |
$order = Mage::getModel('sales/order');
|
109 |
$order->loadByIncrementId($lastIncrementId);
|
110 |
if ($order->getId()) {
|
111 |
+
$order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage_Ogone_Model_Api::PENDING_OGONE_STATUS, Mage::helper('ogone')->__('Start Ogone Processing'));
|
112 |
$order->save();
|
113 |
|
114 |
+
$this->_getApi()->debugOrder($order);
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|
116 |
}
|
117 |
|
125 |
}
|
126 |
|
127 |
/**
|
128 |
+
* Display our pay page, need to ogone payment with external pay page mode
|
129 |
*/
|
130 |
public function paypageAction()
|
131 |
{
|
214 |
|
215 |
$this->_prepareCCInfo($order, $params);
|
216 |
$order->getPayment()->setTransactionId($params['PAYID']);
|
217 |
+
$order->getPayment()->setLastTransId($params['PAYID']);
|
218 |
|
219 |
+
try {
|
220 |
+
$status = $this->getRequest()->getParam('STATUS');
|
221 |
+
switch ($status) {
|
222 |
+
case Mage_Ogone_Model_Api::OGONE_AUTHORIZED:
|
223 |
+
case Mage_Ogone_Model_Api::OGONE_AUTH_PROCESSING:
|
224 |
+
$this->_processAuthorize();
|
225 |
+
break;
|
226 |
+
case Mage_Ogone_Model_Api::OGONE_PAYMENT_REQUESTED_STATUS:
|
227 |
+
$this->_processDirectSale();
|
228 |
+
break;
|
229 |
+
default:
|
230 |
+
throw new Exception (Mage::helper('ogone')->__('Can\'t detect Ogone payment action'));
|
231 |
+
}
|
232 |
+
} catch(Exception $e) {
|
233 |
+
$this->_getCheckout()->addError(Mage::helper('ogone')->__('The order cannot be saved.'));
|
234 |
$this->_redirect('checkout/cart');
|
235 |
return;
|
236 |
}
|
378 |
}
|
379 |
$order->save();
|
380 |
}catch(Exception $e) {
|
381 |
+
$this->_getCheckout()->addError(Mage::helper('ogone')->__('The order cannot be saved for a system reason.'));
|
382 |
}
|
383 |
} else {
|
384 |
$this->_getCheckout()->addError(Mage::helper('ogone')->__('Exception not defined'));
|
410 |
protected function _declineProcess()
|
411 |
{
|
412 |
$status = Mage_Ogone_Model_Api::DECLINE_OGONE_STATUS;
|
413 |
+
$comment = Mage::helper('ogone')->__('Declined Order on Ogone side.');
|
414 |
$this->_getCheckout()->addError(Mage::helper('ogone')->__('Payment transaction has been declined.'));
|
415 |
$this->_cancelOrder($status, $comment);
|
416 |
}
|
441 |
public function _cancelProcess()
|
442 |
{
|
443 |
$status = Mage_Ogone_Model_Api::CANCEL_OGONE_STATUS;
|
444 |
+
$comment = Mage::helper('ogone')->__('The order was canceled on ogone side.');
|
445 |
$this->_cancelOrder($status, $comment);
|
446 |
return $this;
|
447 |
}
|
459 |
$order->setState(Mage_Sales_Model_Order::STATE_CANCELED, $status, $comment);
|
460 |
$order->save();
|
461 |
}catch(Exception $e) {
|
462 |
+
$this->_getCheckout()->addError(Mage::helper('ogone')->__('The order cannot be canceled for a system reason.'));
|
463 |
}
|
464 |
|
465 |
$this->_redirect('checkout/cart');
|
467 |
}
|
468 |
|
469 |
/**
|
470 |
+
* @deprecated after 1.4.2.0-beta1
|
471 |
+
* @see Mage_Ogone_Model_Api::$_inShortMap
|
|
|
|
|
|
|
472 |
* @return string
|
473 |
*/
|
474 |
protected function _getSHAInSet($params, $key)
|
475 |
{
|
476 |
+
return '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
477 |
}
|
478 |
}
|
app/code/core/Mage/Ogone/etc/config.xml
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
*
|
22 |
* @category Mage
|
23 |
* @package Mage_Ogone
|
24 |
-
* @copyright Copyright (c)
|
25 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
*/
|
27 |
-->
|
@@ -119,18 +119,19 @@
|
|
119 |
<default>
|
120 |
<payment>
|
121 |
<ogone>
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
|
|
134 |
</ogone>
|
135 |
</payment>
|
136 |
</default>
|
21 |
*
|
22 |
* @category Mage
|
23 |
* @package Mage_Ogone
|
24 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
25 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
*/
|
27 |
-->
|
119 |
<default>
|
120 |
<payment>
|
121 |
<ogone>
|
122 |
+
<model>ogone/api</model>
|
123 |
+
<title>Ogone</title>
|
124 |
+
<secret_key backend_model="adminhtml/system_config_backend_encrypted"/>
|
125 |
+
<payment_action>authorize</payment_action>
|
126 |
+
<hashing_algorithm>sha256</hashing_algorithm>
|
127 |
+
<template>ogone</template>
|
128 |
+
<ogone_gateway>https://secure.ogone.com/ncol/test/orderstandard.asp</ogone_gateway>
|
129 |
+
<pending_ogone>pending_ogone</pending_ogone>
|
130 |
+
<cancel_ogone>cancel_ogone</cancel_ogone>
|
131 |
+
<decline_ogone>decline_ogone</decline_ogone>
|
132 |
+
<processing_ogone>processing_ogone</processing_ogone>
|
133 |
+
<processed_ogone>processed_ogone</processed_ogone>
|
134 |
+
<waiting_authorozation>waiting_authorozation</waiting_authorozation>
|
135 |
</ogone>
|
136 |
</payment>
|
137 |
</default>
|
app/code/core/Mage/Ogone/etc/system.xml
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
*
|
22 |
* @category Mage
|
23 |
* @package Mage_Ogone
|
24 |
-
* @copyright Copyright (c)
|
25 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
*/
|
27 |
-->
|
@@ -51,7 +51,7 @@
|
|
51 |
<label>Enabled</label>
|
52 |
<frontend_type>select</frontend_type>
|
53 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
54 |
-
<sort_order>
|
55 |
<show_in_default>1</show_in_default>
|
56 |
<show_in_website>1</show_in_website>
|
57 |
<show_in_store>0</show_in_store>
|
@@ -60,7 +60,7 @@
|
|
60 |
<label>Debug</label>
|
61 |
<frontend_type>select</frontend_type>
|
62 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
63 |
-
<sort_order>
|
64 |
<show_in_default>1</show_in_default>
|
65 |
<show_in_website>1</show_in_website>
|
66 |
<show_in_store>0</show_in_store>
|
@@ -68,7 +68,7 @@
|
|
68 |
<title translate="label">
|
69 |
<label>Title</label>
|
70 |
<frontend_type>text</frontend_type>
|
71 |
-
<sort_order>
|
72 |
<show_in_default>1</show_in_default>
|
73 |
<show_in_website>1</show_in_website>
|
74 |
<show_in_store>1</show_in_store>
|
@@ -76,43 +76,58 @@
|
|
76 |
<pspid translate="label">
|
77 |
<label>PSPID</label>
|
78 |
<frontend_type>text</frontend_type>
|
79 |
-
<comment> PSPID is a case sensitive field
|
80 |
-
<sort_order>
|
81 |
<show_in_default>1</show_in_default>
|
82 |
<show_in_website>1</show_in_website>
|
83 |
<show_in_store>0</show_in_store>
|
84 |
</pspid>
|
85 |
<secret_key_out translate="label comment">
|
86 |
-
<label>SHA-
|
87 |
-
<comment><![CDATA[
|
88 |
-
Use in posting data from Magento to Ogone. <br/>
|
89 |
-
Use in data checking by Ogone before the payment.
|
90 |
-
]]></comment>
|
91 |
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
92 |
<frontend_type>obscure</frontend_type>
|
93 |
-
<sort_order>
|
94 |
<show_in_default>1</show_in_default>
|
95 |
<show_in_website>1</show_in_website>
|
96 |
<show_in_store>0</show_in_store>
|
97 |
</secret_key_out>
|
98 |
<secret_key_in translate="label comment">
|
99 |
-
<label>SHA-
|
100 |
-
<comment><![CDATA[
|
101 |
-
Use in posting data from Ogone to Magento. <br/>
|
102 |
-
Use in Feedback data checking by Magento
|
103 |
-
]]></comment>
|
104 |
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
105 |
<frontend_type>obscure</frontend_type>
|
106 |
-
<sort_order>
|
107 |
<show_in_default>1</show_in_default>
|
108 |
<show_in_website>1</show_in_website>
|
109 |
<show_in_store>0</show_in_store>
|
110 |
</secret_key_in>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
<ogone_gateway translate="label comment">
|
112 |
<label>Gateway URL</label>
|
113 |
<frontend_type>text</frontend_type>
|
114 |
-
<comment>For production, replace "test" with "prod" Example: https://secure.ogone.com/ncol/prod/orderstandard.asp</comment>
|
115 |
-
<sort_order>
|
116 |
<show_in_default>1</show_in_default>
|
117 |
<show_in_website>1</show_in_website>
|
118 |
<show_in_store>0</show_in_store>
|
@@ -121,8 +136,8 @@
|
|
121 |
<label>Payment Action</label>
|
122 |
<frontend_type>select</frontend_type>
|
123 |
<source_model>ogone/source_paymentAction</source_model>
|
124 |
-
<comment>If you choose "No Operation", Ogone will use default
|
125 |
-
<sort_order>
|
126 |
<show_in_default>1</show_in_default>
|
127 |
<show_in_website>1</show_in_website>
|
128 |
<show_in_store>0</show_in_store>
|
@@ -132,7 +147,7 @@
|
|
132 |
<frontend_type>select</frontend_type>
|
133 |
<source_model>ogone/source_template</source_model>
|
134 |
<comment>If you choose "Ogone Template", you will need to fill in all the following fields.</comment>
|
135 |
-
<sort_order>
|
136 |
<show_in_default>1</show_in_default>
|
137 |
<show_in_website>1</show_in_website>
|
138 |
<show_in_store>0</show_in_store>
|
@@ -140,7 +155,7 @@
|
|
140 |
<html_title translate="label comment">
|
141 |
<label>Title of the Ogone Template</label>
|
142 |
<frontend_type>text</frontend_type>
|
143 |
-
<sort_order>
|
144 |
<show_in_default>1</show_in_default>
|
145 |
<show_in_website>1</show_in_website>
|
146 |
<show_in_store>1</show_in_store>
|
@@ -148,8 +163,8 @@
|
|
148 |
<bgcolor translate="label comment">
|
149 |
<label>Background Color of Ogone Template</label>
|
150 |
<frontend_type>text</frontend_type>
|
151 |
-
<comment><![CDATA[
|
152 |
-
<sort_order>
|
153 |
<show_in_default>1</show_in_default>
|
154 |
<show_in_website>1</show_in_website>
|
155 |
<show_in_store>1</show_in_store>
|
@@ -157,8 +172,8 @@
|
|
157 |
<txtcolor translate="label comment">
|
158 |
<label>Text Color of the Ogone Template</label>
|
159 |
<frontend_type>text</frontend_type>
|
160 |
-
<comment><![CDATA[
|
161 |
-
<sort_order>
|
162 |
<show_in_default>1</show_in_default>
|
163 |
<show_in_website>1</show_in_website>
|
164 |
<show_in_store>1</show_in_store>
|
@@ -166,8 +181,8 @@
|
|
166 |
<tblbgcolor translate="label comment">
|
167 |
<label>Table Background Color of the Ogone Template</label>
|
168 |
<frontend_type>text</frontend_type>
|
169 |
-
<comment><![CDATA[
|
170 |
-
<sort_order>
|
171 |
<show_in_default>1</show_in_default>
|
172 |
<show_in_website>1</show_in_website>
|
173 |
<show_in_store>1</show_in_store>
|
@@ -175,8 +190,8 @@
|
|
175 |
<tbltxtcolor translate="label comment">
|
176 |
<label>Table Text Color of the Ogone Template</label>
|
177 |
<frontend_type>text</frontend_type>
|
178 |
-
<comment><![CDATA[
|
179 |
-
<sort_order>
|
180 |
<show_in_default>1</show_in_default>
|
181 |
<show_in_website>1</show_in_website>
|
182 |
<show_in_store>1</show_in_store>
|
@@ -184,7 +199,7 @@
|
|
184 |
<buttonbgcolor translate="label">
|
185 |
<label>Button Background Color of the Ogone Template</label>
|
186 |
<frontend_type>text</frontend_type>
|
187 |
-
<sort_order>
|
188 |
<show_in_default>1</show_in_default>
|
189 |
<show_in_website>1</show_in_website>
|
190 |
<show_in_store>1</show_in_store>
|
@@ -192,8 +207,8 @@
|
|
192 |
<buttontxtcolor translate="label comment">
|
193 |
<label>Button Text Color of the Ogone Template</label>
|
194 |
<frontend_type>text</frontend_type>
|
195 |
-
<comment><![CDATA[
|
196 |
-
<sort_order>
|
197 |
<show_in_default>1</show_in_default>
|
198 |
<show_in_website>1</show_in_website>
|
199 |
<show_in_store>1</show_in_store>
|
@@ -201,8 +216,8 @@
|
|
201 |
<fonttype translate="label comment">
|
202 |
<label>Font Family of the Ogone Template</label>
|
203 |
<frontend_type>text</frontend_type>
|
204 |
-
<comment><![CDATA[
|
205 |
-
<sort_order>
|
206 |
<show_in_default>1</show_in_default>
|
207 |
<show_in_website>1</show_in_website>
|
208 |
<show_in_store>1</show_in_store>
|
@@ -210,10 +225,8 @@
|
|
210 |
<logo translate="label comment">
|
211 |
<label>Logo of the Ogone Template</label>
|
212 |
<frontend_type>text</frontend_type>
|
213 |
-
<comment><![CDATA[URL/filename of the logo.
|
214 |
-
<
|
215 |
-
]]></comment>
|
216 |
-
<sort_order>19</sort_order>
|
217 |
<show_in_default>1</show_in_default>
|
218 |
<show_in_website>1</show_in_website>
|
219 |
<show_in_store>1</show_in_store>
|
@@ -222,8 +235,8 @@
|
|
222 |
<label>Layout of Payment Methods</label>
|
223 |
<frontend_type>select</frontend_type>
|
224 |
<source_model>ogone/source_pmlist</source_model>
|
225 |
-
<comment>You can arrange the layout/list of the payment methods on Ogone payment page
|
226 |
-
<sort_order>
|
227 |
<show_in_default>1</show_in_default>
|
228 |
<show_in_website>1</show_in_website>
|
229 |
<show_in_store>1</show_in_store>
|
21 |
*
|
22 |
* @category Mage
|
23 |
* @package Mage_Ogone
|
24 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
25 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
*/
|
27 |
-->
|
51 |
<label>Enabled</label>
|
52 |
<frontend_type>select</frontend_type>
|
53 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
54 |
+
<sort_order>5</sort_order>
|
55 |
<show_in_default>1</show_in_default>
|
56 |
<show_in_website>1</show_in_website>
|
57 |
<show_in_store>0</show_in_store>
|
60 |
<label>Debug</label>
|
61 |
<frontend_type>select</frontend_type>
|
62 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
63 |
+
<sort_order>10</sort_order>
|
64 |
<show_in_default>1</show_in_default>
|
65 |
<show_in_website>1</show_in_website>
|
66 |
<show_in_store>0</show_in_store>
|
68 |
<title translate="label">
|
69 |
<label>Title</label>
|
70 |
<frontend_type>text</frontend_type>
|
71 |
+
<sort_order>15</sort_order>
|
72 |
<show_in_default>1</show_in_default>
|
73 |
<show_in_website>1</show_in_website>
|
74 |
<show_in_store>1</show_in_store>
|
76 |
<pspid translate="label">
|
77 |
<label>PSPID</label>
|
78 |
<frontend_type>text</frontend_type>
|
79 |
+
<comment> PSPID is a case sensitive field.</comment>
|
80 |
+
<sort_order>20</sort_order>
|
81 |
<show_in_default>1</show_in_default>
|
82 |
<show_in_website>1</show_in_website>
|
83 |
<show_in_store>0</show_in_store>
|
84 |
</pspid>
|
85 |
<secret_key_out translate="label comment">
|
86 |
+
<label>SHA-IN Pass Phrase</label>
|
87 |
+
<comment><![CDATA[Use in posting data from Magento to Ogone.<br/>Use in data checking by Ogone before the payment.]]></comment>
|
|
|
|
|
|
|
88 |
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
89 |
<frontend_type>obscure</frontend_type>
|
90 |
+
<sort_order>25</sort_order>
|
91 |
<show_in_default>1</show_in_default>
|
92 |
<show_in_website>1</show_in_website>
|
93 |
<show_in_store>0</show_in_store>
|
94 |
</secret_key_out>
|
95 |
<secret_key_in translate="label comment">
|
96 |
+
<label>SHA-OUT Pass Phrase</label>
|
97 |
+
<comment><![CDATA[Use in posting data from Ogone to Magento.<br/>Use in feedback data checking by Magento.]]></comment>
|
|
|
|
|
|
|
98 |
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
99 |
<frontend_type>obscure</frontend_type>
|
100 |
+
<sort_order>30</sort_order>
|
101 |
<show_in_default>1</show_in_default>
|
102 |
<show_in_website>1</show_in_website>
|
103 |
<show_in_store>0</show_in_store>
|
104 |
</secret_key_in>
|
105 |
+
<shamode translate="label comment tooltip">
|
106 |
+
<label>Hash All Parameters</label>
|
107 |
+
<comment><![CDATA[Enabling this feature needs adjusting "Technical information > Global security parameters" on merchant administration.]]></comment>
|
108 |
+
<tooltip><![CDATA[To hash <strong>all parameters</strong>, select the following options in the "Global security parameters" fieldset: <ul><li>Each parameter followed by the pass phrase.</li><li>"Hash algorithm" same as "Hashing Algorithm" below</li><li>UTF-8</li></ul>]]></tooltip>
|
109 |
+
<frontend_type>select</frontend_type>
|
110 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
111 |
+
<sort_order>35</sort_order>
|
112 |
+
<show_in_default>1</show_in_default>
|
113 |
+
<show_in_website>1</show_in_website>
|
114 |
+
<show_in_store>0</show_in_store>
|
115 |
+
</shamode>
|
116 |
+
<hashing_algorithm translate="label">
|
117 |
+
<label>Hashing Algorithm</label>
|
118 |
+
<frontend_type>select</frontend_type>
|
119 |
+
<source_model>ogone/api::getHashingAlgorithms</source_model>
|
120 |
+
<depends><shamode>1</shamode></depends>
|
121 |
+
<sort_order>37</sort_order>
|
122 |
+
<show_in_default>1</show_in_default>
|
123 |
+
<show_in_website>1</show_in_website>
|
124 |
+
<show_in_store>0</show_in_store>
|
125 |
+
</hashing_algorithm>
|
126 |
<ogone_gateway translate="label comment">
|
127 |
<label>Gateway URL</label>
|
128 |
<frontend_type>text</frontend_type>
|
129 |
+
<comment>For production, replace "test" with "prod". Example: https://secure.ogone.com/ncol/prod/orderstandard.asp</comment>
|
130 |
+
<sort_order>40</sort_order>
|
131 |
<show_in_default>1</show_in_default>
|
132 |
<show_in_website>1</show_in_website>
|
133 |
<show_in_store>0</show_in_store>
|
136 |
<label>Payment Action</label>
|
137 |
<frontend_type>select</frontend_type>
|
138 |
<source_model>ogone/source_paymentAction</source_model>
|
139 |
+
<comment>If you choose "No Operation", Ogone will use default payment procedure setup in Ogone configuration.</comment>
|
140 |
+
<sort_order>45</sort_order>
|
141 |
<show_in_default>1</show_in_default>
|
142 |
<show_in_website>1</show_in_website>
|
143 |
<show_in_store>0</show_in_store>
|
147 |
<frontend_type>select</frontend_type>
|
148 |
<source_model>ogone/source_template</source_model>
|
149 |
<comment>If you choose "Ogone Template", you will need to fill in all the following fields.</comment>
|
150 |
+
<sort_order>50</sort_order>
|
151 |
<show_in_default>1</show_in_default>
|
152 |
<show_in_website>1</show_in_website>
|
153 |
<show_in_store>0</show_in_store>
|
155 |
<html_title translate="label comment">
|
156 |
<label>Title of the Ogone Template</label>
|
157 |
<frontend_type>text</frontend_type>
|
158 |
+
<sort_order>55</sort_order>
|
159 |
<show_in_default>1</show_in_default>
|
160 |
<show_in_website>1</show_in_website>
|
161 |
<show_in_store>1</show_in_store>
|
163 |
<bgcolor translate="label comment">
|
164 |
<label>Background Color of Ogone Template</label>
|
165 |
<frontend_type>text</frontend_type>
|
166 |
+
<comment><![CDATA[E.g: "white".]]></comment>
|
167 |
+
<sort_order>60</sort_order>
|
168 |
<show_in_default>1</show_in_default>
|
169 |
<show_in_website>1</show_in_website>
|
170 |
<show_in_store>1</show_in_store>
|
172 |
<txtcolor translate="label comment">
|
173 |
<label>Text Color of the Ogone Template</label>
|
174 |
<frontend_type>text</frontend_type>
|
175 |
+
<comment><![CDATA[E.g: "black".]]></comment>
|
176 |
+
<sort_order>65</sort_order>
|
177 |
<show_in_default>1</show_in_default>
|
178 |
<show_in_website>1</show_in_website>
|
179 |
<show_in_store>1</show_in_store>
|
181 |
<tblbgcolor translate="label comment">
|
182 |
<label>Table Background Color of the Ogone Template</label>
|
183 |
<frontend_type>text</frontend_type>
|
184 |
+
<comment><![CDATA[E.g: "white".]]></comment>
|
185 |
+
<sort_order>70</sort_order>
|
186 |
<show_in_default>1</show_in_default>
|
187 |
<show_in_website>1</show_in_website>
|
188 |
<show_in_store>1</show_in_store>
|
190 |
<tbltxtcolor translate="label comment">
|
191 |
<label>Table Text Color of the Ogone Template</label>
|
192 |
<frontend_type>text</frontend_type>
|
193 |
+
<comment><![CDATA[E.g: "black".]]></comment>
|
194 |
+
<sort_order>75</sort_order>
|
195 |
<show_in_default>1</show_in_default>
|
196 |
<show_in_website>1</show_in_website>
|
197 |
<show_in_store>1</show_in_store>
|
199 |
<buttonbgcolor translate="label">
|
200 |
<label>Button Background Color of the Ogone Template</label>
|
201 |
<frontend_type>text</frontend_type>
|
202 |
+
<sort_order>80</sort_order>
|
203 |
<show_in_default>1</show_in_default>
|
204 |
<show_in_website>1</show_in_website>
|
205 |
<show_in_store>1</show_in_store>
|
207 |
<buttontxtcolor translate="label comment">
|
208 |
<label>Button Text Color of the Ogone Template</label>
|
209 |
<frontend_type>text</frontend_type>
|
210 |
+
<comment><![CDATA[E.g: "white".]]></comment>
|
211 |
+
<sort_order>85</sort_order>
|
212 |
<show_in_default>1</show_in_default>
|
213 |
<show_in_website>1</show_in_website>
|
214 |
<show_in_store>1</show_in_store>
|
216 |
<fonttype translate="label comment">
|
217 |
<label>Font Family of the Ogone Template</label>
|
218 |
<frontend_type>text</frontend_type>
|
219 |
+
<comment><![CDATA[E.g: "Verdana".]]></comment>
|
220 |
+
<sort_order>90</sort_order>
|
221 |
<show_in_default>1</show_in_default>
|
222 |
<show_in_website>1</show_in_website>
|
223 |
<show_in_store>1</show_in_store>
|
225 |
<logo translate="label comment">
|
226 |
<label>Logo of the Ogone Template</label>
|
227 |
<frontend_type>text</frontend_type>
|
228 |
+
<comment><![CDATA[URL/filename of the logo.<br />The URL must be absolute and stored on a secure server.]]></comment>
|
229 |
+
<sort_order>95</sort_order>
|
|
|
|
|
230 |
<show_in_default>1</show_in_default>
|
231 |
<show_in_website>1</show_in_website>
|
232 |
<show_in_store>1</show_in_store>
|
235 |
<label>Layout of Payment Methods</label>
|
236 |
<frontend_type>select</frontend_type>
|
237 |
<source_model>ogone/source_pmlist</source_model>
|
238 |
+
<comment>You can arrange the layout/list of the payment methods on Ogone payment page.</comment>
|
239 |
+
<sort_order>100</sort_order>
|
240 |
<show_in_default>1</show_in_default>
|
241 |
<show_in_website>1</show_in_website>
|
242 |
<show_in_store>1</show_in_store>
|
app/code/core/Mage/Ogone/sql/ogone_setup/mysql4-install-0.0.1.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Ogone
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
app/design/adminhtml/default/default/template/ogone/info.phtml
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
*
|
21 |
* @category design
|
22 |
* @package default_default
|
23 |
-
* @copyright Copyright (c)
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
?>
|
20 |
*
|
21 |
* @category design
|
22 |
* @package default_default
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
?>
|
app/design/frontend/default/default/layout/ogone.xml
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* Magento
|
5 |
-
*
|
6 |
-
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
-
* It is also available through the world-wide-web at this URL:
|
11 |
-
* http://opensource.org/licenses/afl-3.0.php
|
12 |
-
* If you did not receive a copy of the license and are unable to
|
13 |
-
* obtain it through the world-wide-web, please send an email
|
14 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
-
*
|
16 |
-
* DISCLAIMER
|
17 |
-
*
|
18 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
-
* versions in the future. If you wish to customize Magento for your
|
20 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
-
*
|
22 |
-
* @category design
|
23 |
-
* @package default_default
|
24 |
-
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
25 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
-
*/
|
27 |
-
-->
|
28 |
-
<layout version="0.1.0">
|
29 |
-
<ogone_api_paypage>
|
30 |
-
<remove name="right"/>
|
31 |
-
<remove name="left"/>
|
32 |
-
<remove name="catalog.topnav"/>
|
33 |
-
<reference name="header">
|
34 |
-
<remove name="top.links"/>
|
35 |
-
<remove name="top.search"/>
|
36 |
-
<remove name="store_language"/>
|
37 |
-
<remove name="top.container"/>
|
38 |
-
</reference>
|
39 |
-
<reference name="footer">
|
40 |
-
<remove name="cms_footer_links"/>
|
41 |
-
<remove name="footer_links"/>
|
42 |
-
<remove name="store_switcher"/>
|
43 |
-
</reference>
|
44 |
-
<reference name="root">
|
45 |
-
<action method="setTemplate"><template>page/1column.phtml</template></action>
|
46 |
-
</reference>
|
47 |
-
<reference name="content">
|
48 |
-
<block type="ogone/paypage" name="ogone_paypage" template="ogone/paypage.phtml"/>
|
49 |
-
</reference>
|
50 |
-
</ogone_api_paypage>
|
51 |
-
|
52 |
-
<ogone_api_placeform>
|
53 |
-
<remove name="right"/>
|
54 |
-
<remove name="left"/>
|
55 |
-
<reference name="content">
|
56 |
-
<block type="ogone/placeform" name="ogone_placeform" template="ogone/placeform.phtml"/>
|
57 |
-
</reference>
|
58 |
-
</ogone_api_placeform>
|
59 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/ogone/form.phtml
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-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 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package default_default
|
23 |
-
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
|
28 |
-
<?php $_code=$this->getMethodCode() ?>
|
29 |
-
<ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
|
30 |
-
<li>
|
31 |
-
<?php echo $this->__('You will be redirected to Ogone website when you place an order.') ?>
|
32 |
-
</li>
|
33 |
-
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/ogone/info.phtml
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-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 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package default_default
|
23 |
-
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
<p><?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/ogone/paypage.phtml
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-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 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package default_default
|
23 |
-
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
|
28 |
-
$$$PAYMENT ZONE$$$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/ogone/placeform.phtml
DELETED
@@ -1,45 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-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 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package default_default
|
23 |
-
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
|
28 |
-
<p><strong><?php echo Mage::helper('ogone')->__('Please, wait a moment. This page will transfer your data to Ogone payment gateway in a few seconds.'); ?></strong></p>
|
29 |
-
<form name="ogone" id="ogone_review_form" action="<?php echo $this->getFormAction();?>" method="post" accept-charset="ISO-8859-1">
|
30 |
-
<?php if (is_array($this->getFormData())): ?>
|
31 |
-
<fieldset>
|
32 |
-
<?php foreach ($this->getFormData() as $name => $value) { ?>
|
33 |
-
<input type="hidden" name="<?php echo($name); ?>" value="<?php echo($value); ?>" />
|
34 |
-
<?php }?>
|
35 |
-
</fieldset>
|
36 |
-
<?php endif; ?>
|
37 |
-
</form>
|
38 |
-
<script type="text/javascript">
|
39 |
-
//<![CDATA[
|
40 |
-
var review = new VarienForm('ogone_review_form', '');
|
41 |
-
Event.observe(window, 'load', function() {
|
42 |
-
review.submit();
|
43 |
-
});
|
44 |
-
//]]>
|
45 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/etc/modules/Mage_Ogone.xml
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
*
|
22 |
* @category Mage
|
23 |
* @package Mage_Ogone
|
24 |
-
* @copyright Copyright (c)
|
25 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
*/
|
27 |
-->
|
21 |
*
|
22 |
* @category Mage
|
23 |
* @package Mage_Ogone
|
24 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
25 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
*/
|
27 |
-->
|
app/locale/en_US/Mage_Ogone.csv
CHANGED
@@ -7,42 +7,40 @@
|
|
7 |
"
|
8 |
"
|
9 |
Use in posting data from Ogone to Magento. <br/>
|
10 |
-
Use in
|
11 |
","
|
12 |
Use in posting data from Ogone to Magento. <br/>
|
13 |
-
Use in
|
14 |
"
|
15 |
"Authorization","Authorization"
|
16 |
"Authorization Waiting from Ogone","Authorization Waiting from Ogone"
|
17 |
"Authorization not known: A technical problem arose during authorization process, giving unpredictable result","Authorization not known: A technical problem arose during authorization process, giving unpredictable result"
|
18 |
-
"Background
|
19 |
-
"Button
|
20 |
-
"Button
|
21 |
"Cancelled Ogone","Cancelled Ogone"
|
22 |
"Debug","Debug"
|
23 |
"Declined Ogone","Declined Ogone"
|
24 |
-
"Declined Order on
|
25 |
"Direct Sale","Direct Sale"
|
|
|
|
|
|
|
26 |
"Enabled","Enabled"
|
27 |
"Exception not defined","Exception not defined"
|
28 |
"Font Family of the Ogone Template","Font Family of the Ogone Template"
|
29 |
-
"For production, replace ""test"" with ""prod"" Example: https://secure.ogone.com/ncol/prod/orderstandard.asp","For production, replace ""test"" with ""prod"" Example: https://secure.ogone.com/ncol/prod/orderstandard.asp"
|
30 |
"Gateway URL","Gateway URL"
|
31 |
-
"Hash is not valid","Hash is not valid"
|
32 |
"Horizontally grouped logo with group name on left","Horizontally grouped logo with group name on left"
|
33 |
"Horizontally grouped logo with no group name","Horizontally grouped logo with no group name"
|
34 |
-
"If you choose ""No Operation"", Ogone will use default
|
35 |
"If you choose ""Ogone Template"", you will need to fill in all the following fields.","If you choose ""Ogone Template"", you will need to fill in all the following fields."
|
36 |
"Layout of Payment Methods","Layout of Payment Methods"
|
37 |
"Logo of the Ogone Template","Logo of the Ogone Template"
|
38 |
"Magento","Magento"
|
39 |
"Ogone","Ogone"
|
40 |
-
"Ogone
|
41 |
-
"Order can not be canceled for system reason","Order can not be canceled for system reason"
|
42 |
-
"Order can not be save for system reason","Order can not be save for system reason"
|
43 |
"Order can\'t save","Order can\'t save"
|
44 |
-
"Order canceled on ogone side","Order canceled on ogone side"
|
45 |
-
"Order is not valid","Order is not valid"
|
46 |
"PSPID","PSPID"
|
47 |
"Payment Action","Payment Action"
|
48 |
"Payment Template","Payment Template"
|
@@ -53,24 +51,23 @@
|
|
53 |
"Processed Ogone Payment","Processed Ogone Payment"
|
54 |
"Processed by Ogone","Processed by Ogone"
|
55 |
"Processing Ogone Payment","Processing Ogone Payment"
|
56 |
-
"SHA Signature
|
57 |
-
"SHA Signature
|
58 |
-
"Start
|
59 |
-
"Table
|
60 |
-
"Table
|
61 |
"Text Color of the Ogone Template","Text Color of the Ogone Template"
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
"Title","Title"
|
63 |
"Title of the Ogone Template","Title of the Ogone Template"
|
64 |
-
"URL/filename of the logo.
|
65 |
-
<br />The URL must be absolute and stored on a secure server.
|
66 |
-
","URL/filename of the logo.
|
67 |
-
<br />The URL must be absolute and stored on a secure server.
|
68 |
-
"
|
69 |
"Unknown exception","Unknown exception"
|
70 |
"Verical list","Verical list"
|
71 |
"Waiting Authorization","Waiting Authorization"
|
72 |
-
"You can arrange the layout/list of the payment methods on Ogone payment page","You can arrange the layout/list of the payment methods on Ogone payment page"
|
73 |
"You will be redirected to Ogone website when you place an order.","You will be redirected to Ogone website when you place an order."
|
74 |
-
"e.g: Verdana","e.g: Verdana"
|
75 |
-
"e.g: black","e.g: black"
|
76 |
-
"e.g: white","e.g: white"
|
7 |
"
|
8 |
"
|
9 |
Use in posting data from Ogone to Magento. <br/>
|
10 |
+
Use in feedback data checking by Magento
|
11 |
","
|
12 |
Use in posting data from Ogone to Magento. <br/>
|
13 |
+
Use in feedback data checking by Magento
|
14 |
"
|
15 |
"Authorization","Authorization"
|
16 |
"Authorization Waiting from Ogone","Authorization Waiting from Ogone"
|
17 |
"Authorization not known: A technical problem arose during authorization process, giving unpredictable result","Authorization not known: A technical problem arose during authorization process, giving unpredictable result"
|
18 |
+
"Background Color of Ogone Template","Background Color of Ogone Template"
|
19 |
+
"Button Background Color of the Ogone Template","Button Background Color of the Ogone Template"
|
20 |
+
"Button Text Color of the Ogone Template","Button Text Color of the Ogone Template"
|
21 |
"Cancelled Ogone","Cancelled Ogone"
|
22 |
"Debug","Debug"
|
23 |
"Declined Ogone","Declined Ogone"
|
24 |
+
"Declined Order on Ogone side.","Declined Order on Ogone side."
|
25 |
"Direct Sale","Direct Sale"
|
26 |
+
"E.g: ""Verdana"".","E.g: ""Verdana""."
|
27 |
+
"E.g: ""black"".","E.g: ""black""."
|
28 |
+
"E.g: ""white"".","E.g: ""white""."
|
29 |
"Enabled","Enabled"
|
30 |
"Exception not defined","Exception not defined"
|
31 |
"Font Family of the Ogone Template","Font Family of the Ogone Template"
|
32 |
+
"For production, replace ""test"" with ""prod"". Example: https://secure.ogone.com/ncol/prod/orderstandard.asp","For production, replace ""test"" with ""prod"". Example: https://secure.ogone.com/ncol/prod/orderstandard.asp"
|
33 |
"Gateway URL","Gateway URL"
|
|
|
34 |
"Horizontally grouped logo with group name on left","Horizontally grouped logo with group name on left"
|
35 |
"Horizontally grouped logo with no group name","Horizontally grouped logo with no group name"
|
36 |
+
"If you choose ""No Operation"", Ogone will use default payment procedure setup in Ogone configuration.","If you choose ""No Operation"", Ogone will use default payment procedure setup in Ogone configuration."
|
37 |
"If you choose ""Ogone Template"", you will need to fill in all the following fields.","If you choose ""Ogone Template"", you will need to fill in all the following fields."
|
38 |
"Layout of Payment Methods","Layout of Payment Methods"
|
39 |
"Logo of the Ogone Template","Logo of the Ogone Template"
|
40 |
"Magento","Magento"
|
41 |
"Ogone","Ogone"
|
42 |
+
"Ogone Default Operation","Ogone Default Operation"
|
|
|
|
|
43 |
"Order can\'t save","Order can\'t save"
|
|
|
|
|
44 |
"PSPID","PSPID"
|
45 |
"Payment Action","Payment Action"
|
46 |
"Payment Template","Payment Template"
|
51 |
"Processed Ogone Payment","Processed Ogone Payment"
|
52 |
"Processed by Ogone","Processed by Ogone"
|
53 |
"Processing Ogone Payment","Processing Ogone Payment"
|
54 |
+
"SHA-1- OUT Signature","SHA-1- OUT Signature"
|
55 |
+
"SHA-1-IN Signature","SHA-1-IN Signature"
|
56 |
+
"Start Ogone Processing","Start Ogone Processing"
|
57 |
+
"Table Background Color of the Ogone Template","Table Background Color of the Ogone Template"
|
58 |
+
"Table Text Color of the Ogone Template","Table Text Color of the Ogone Template"
|
59 |
"Text Color of the Ogone Template","Text Color of the Ogone Template"
|
60 |
+
"The hash is not valid","The hash is not valid"
|
61 |
+
"The order cannot be canceled for a system reason.","The order cannot be canceled for a system reason."
|
62 |
+
"The order cannot be saved for a system reason.","The order cannot be saved for a system reason."
|
63 |
+
"The order cannot be saved.","The order cannot be saved."
|
64 |
+
"The order is not valid","The order is not valid"
|
65 |
+
"The order was canceled on ogone side.","The order was canceled on ogone side."
|
66 |
"Title","Title"
|
67 |
"Title of the Ogone Template","Title of the Ogone Template"
|
68 |
+
"URL/filename of the logo.<br />The URL must be absolute and stored on a secure server.","URL/filename of the logo.<br />The URL must be absolute and stored on a secure server."
|
|
|
|
|
|
|
|
|
69 |
"Unknown exception","Unknown exception"
|
70 |
"Verical list","Verical list"
|
71 |
"Waiting Authorization","Waiting Authorization"
|
72 |
+
"You can arrange the layout/list of the payment methods on Ogone payment page.","You can arrange the layout/list of the payment methods on Ogone payment page."
|
73 |
"You will be redirected to Ogone website when you place an order.","You will be redirected to Ogone website when you place an order."
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mage_Ogone_Official</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Official Ogone Payment Services Integration Module</summary>
|
10 |
<description>This extension provides Ogone payment services integration.</description>
|
11 |
-
<notes>1.0.
|
12 |
-
<authors><author><name>Magento Core</name><user>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mage_Ogone_Official</name>
|
4 |
+
<version>1.1.0.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Official Ogone Payment Services Integration Module</summary>
|
10 |
<description>This extension provides Ogone payment services integration.</description>
|
11 |
+
<notes>1.1.0.0</notes>
|
12 |
+
<authors><author><name>Magento Core Team</name><user>core</user><email>core@magentocommerce.com</email></author></authors>
|
13 |
+
<date>2011-02-18</date>
|
14 |
+
<time>17:43:30</time>
|
15 |
+
<contents><target name="magecore"><dir name="Mage"><dir name="Ogone"><dir name="Block"><file name="Form.php" hash="d832b82739cb9dcd46c438e6abcaae65"/><file name="Info.php" hash="896f785dc32091c06f801339694c2a03"/><file name="Paypage.php" hash="75f9e9528dbb1dad1088bb069f06e428"/><file name="Placeform.php" hash="f49a9ebd234ae19baa0f34bc84c822f5"/></dir><dir name="Helper"><file name="Data.php" hash="122f72c739f9cb78914a74be1a07c70e"/></dir><dir name="Model"><dir name="Api"><file name="Debug.php" hash="3e2406e2124fa1d6b213cfcd02fd0770"/></dir><file name="Api.php" hash="d09b4f439b4275d967857f8f590f6c87"/><file name="Config.php" hash="aec4a5fad447ee27f9b7adfe4085215c"/><dir name="Mysql4"><dir name="Api"><file name="Debug.php" hash="775433d48a54f52fe4a5042b8d68f800"/></dir></dir><dir name="Source"><file name="PaymentAction.php" hash="17392706787569cb0613c1416a2b456c"/><file name="Pmlist.php" hash="3a82f936ff59f028a934f2d0c4c674f9"/><file name="Template.php" hash="856e06072413996cbc5a6e4c29354d3f"/></dir></dir><dir name="controllers"><file name="ApiController.php" hash="85d9ba20b53120cb0a8c040fb8639fe5"/></dir><dir name="etc"><file name="config.xml" hash="2eb85a878b4bd617835deee1fe704e26"/><file name="system.xml" hash="9c34a2545d8a054922911872e1db97cc"/></dir><dir name="sql"><dir name="ogone_setup"><file name="mysql4-install-0.0.1.php" hash="f901e9b9392660d6cbd135bfd29933ed"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Ogone.xml" hash="db23212bbb05f2425c9138757ec69938"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="ogone.xml" hash=""/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="ogone"><file name="info.phtml" hash="6e19fe6b7fe56fedcf730f6d609a6b32"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Mage_Ogone.csv" hash="11bb0c46d75ba42de323c0189791c063"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.0.1</min><max>1.5.1.0</max></package></required></dependencies>
|
18 |
</package>
|