Version Notes
1.0.3
Download this release
Release Info
Developer | Magento Core Team |
Extension | Mage_Ogone_Official |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
app/code/core/Mage/Ogone/Model/Api.php
CHANGED
@@ -247,7 +247,8 @@ class Mage_Ogone_Model_Api extends Mage_Payment_Model_Method_Abstract
|
|
247 |
if ($item->getParentItem()) {
|
248 |
continue;
|
249 |
}
|
250 |
-
|
|
|
251 |
break;
|
252 |
}
|
253 |
$invoiceDesc .= $item->getName() . ', ';
|
247 |
if ($item->getParentItem()) {
|
248 |
continue;
|
249 |
}
|
250 |
+
//COM filed can only handle max 100
|
251 |
+
if (Mage::helper('core/string')->strlen($invoiceDesc.$item->getName()) > 100) {
|
252 |
break;
|
253 |
}
|
254 |
$invoiceDesc .= $item->getName() . ', ';
|
app/code/core/Mage/Ogone/Model/Api.php.lindy
ADDED
@@ -0,0 +1,256 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/controllers/ApiController.php
CHANGED
@@ -223,7 +223,7 @@ class Mage_Ogone_ApiController extends Mage_Core_Controller_Front_Action
|
|
223 |
$this->_getCheckout()->setLastSuccessQuoteId($order->getQuoteId());
|
224 |
|
225 |
$this->_prepareCCInfo($order, $params);
|
226 |
-
$order->getPayment()->
|
227 |
|
228 |
try{
|
229 |
if ($this->_getApi()->getPaymentAction()==Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE) {
|
223 |
$this->_getCheckout()->setLastSuccessQuoteId($order->getQuoteId());
|
224 |
|
225 |
$this->_prepareCCInfo($order, $params);
|
226 |
+
$order->getPayment()->setTransactionId($params['PAYID']);
|
227 |
|
228 |
try{
|
229 |
if ($this->_getApi()->getPaymentAction()==Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE) {
|
app/code/core/Mage/Ogone/etc/system.xml
CHANGED
@@ -82,11 +82,11 @@
|
|
82 |
<show_in_website>1</show_in_website>
|
83 |
<show_in_store>0</show_in_store>
|
84 |
</pspid>
|
85 |
-
<
|
86 |
-
<label>SHA Signature
|
87 |
<comment><![CDATA[
|
88 |
-
Use in posting data from
|
89 |
-
Use in
|
90 |
]]></comment>
|
91 |
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
92 |
<frontend_type>obscure</frontend_type>
|
@@ -94,12 +94,12 @@
|
|
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 |
-
</
|
98 |
-
<
|
99 |
-
<label>SHA Signature
|
100 |
<comment><![CDATA[
|
101 |
-
Use in posting data from
|
102 |
-
Use in data checking by
|
103 |
]]></comment>
|
104 |
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
105 |
<frontend_type>obscure</frontend_type>
|
@@ -107,7 +107,7 @@
|
|
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 |
-
</
|
111 |
<ogone_gateway translate="label comment">
|
112 |
<label>Gateway URL</label>
|
113 |
<frontend_type>text</frontend_type>
|
@@ -146,7 +146,7 @@
|
|
146 |
<show_in_store>1</show_in_store>
|
147 |
</html_title>
|
148 |
<bgcolor translate="label comment">
|
149 |
-
<label>Background
|
150 |
<frontend_type>text</frontend_type>
|
151 |
<comment><![CDATA[e.g: white]]></comment>
|
152 |
<sort_order>12</sort_order>
|
@@ -164,7 +164,7 @@
|
|
164 |
<show_in_store>1</show_in_store>
|
165 |
</txtcolor>
|
166 |
<tblbgcolor translate="label comment">
|
167 |
-
<label>Table
|
168 |
<frontend_type>text</frontend_type>
|
169 |
<comment><![CDATA[e.g: white]]></comment>
|
170 |
<sort_order>14</sort_order>
|
@@ -173,7 +173,7 @@
|
|
173 |
<show_in_store>1</show_in_store>
|
174 |
</tblbgcolor>
|
175 |
<tbltxtcolor translate="label comment">
|
176 |
-
<label>Table
|
177 |
<frontend_type>text</frontend_type>
|
178 |
<comment><![CDATA[e.g: black]]></comment>
|
179 |
<sort_order>15</sort_order>
|
@@ -182,7 +182,7 @@
|
|
182 |
<show_in_store>1</show_in_store>
|
183 |
</tbltxtcolor>
|
184 |
<buttonbgcolor translate="label">
|
185 |
-
<label>Button
|
186 |
<frontend_type>text</frontend_type>
|
187 |
<sort_order>16</sort_order>
|
188 |
<show_in_default>1</show_in_default>
|
@@ -190,7 +190,7 @@
|
|
190 |
<show_in_store>1</show_in_store>
|
191 |
</buttonbgcolor>
|
192 |
<buttontxtcolor translate="label comment">
|
193 |
-
<label>Button
|
194 |
<frontend_type>text</frontend_type>
|
195 |
<comment><![CDATA[e.g: white]]></comment>
|
196 |
<sort_order>17</sort_order>
|
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-1-IN Signature</label>
|
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>
|
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-1- OUT Signature</label>
|
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>
|
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>
|
146 |
<show_in_store>1</show_in_store>
|
147 |
</html_title>
|
148 |
<bgcolor translate="label comment">
|
149 |
+
<label>Background Color of Ogone Template</label>
|
150 |
<frontend_type>text</frontend_type>
|
151 |
<comment><![CDATA[e.g: white]]></comment>
|
152 |
<sort_order>12</sort_order>
|
164 |
<show_in_store>1</show_in_store>
|
165 |
</txtcolor>
|
166 |
<tblbgcolor translate="label comment">
|
167 |
+
<label>Table Background Color of the Ogone Template</label>
|
168 |
<frontend_type>text</frontend_type>
|
169 |
<comment><![CDATA[e.g: white]]></comment>
|
170 |
<sort_order>14</sort_order>
|
173 |
<show_in_store>1</show_in_store>
|
174 |
</tblbgcolor>
|
175 |
<tbltxtcolor translate="label comment">
|
176 |
+
<label>Table Text Color of the Ogone Template</label>
|
177 |
<frontend_type>text</frontend_type>
|
178 |
<comment><![CDATA[e.g: black]]></comment>
|
179 |
<sort_order>15</sort_order>
|
182 |
<show_in_store>1</show_in_store>
|
183 |
</tbltxtcolor>
|
184 |
<buttonbgcolor translate="label">
|
185 |
+
<label>Button Background Color of the Ogone Template</label>
|
186 |
<frontend_type>text</frontend_type>
|
187 |
<sort_order>16</sort_order>
|
188 |
<show_in_default>1</show_in_default>
|
190 |
<show_in_store>1</show_in_store>
|
191 |
</buttonbgcolor>
|
192 |
<buttontxtcolor translate="label comment">
|
193 |
+
<label>Button Text Color of the Ogone Template</label>
|
194 |
<frontend_type>text</frontend_type>
|
195 |
<comment><![CDATA[e.g: white]]></comment>
|
196 |
<sort_order>17</sort_order>
|
app/design/frontend/default/default/template/ogone/placeform.phtml
CHANGED
@@ -38,6 +38,8 @@
|
|
38 |
<script type="text/javascript">
|
39 |
//<![CDATA[
|
40 |
var review = new VarienForm('ogone_review_form', '');
|
41 |
-
window
|
|
|
|
|
42 |
//]]>
|
43 |
</script>
|
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>
|
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>auto-converted</user><email>core@magentocommerce.com</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="ogone"><file name="info.phtml" hash="d0af03c7abe96515605a107251dab0a3"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="ogone.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.3.2.4</min><max></max></package></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mage_Ogone_Official</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 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.3</notes>
|
12 |
<authors><author><name>Magento Core</name><user>auto-converted</user><email>core@magentocommerce.com</email></author></authors>
|
13 |
+
<date>2010-02-02</date>
|
14 |
+
<time>02:35:05</time>
|
15 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="ogone"><file name="info.phtml" hash="d0af03c7abe96515605a107251dab0a3"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="ogone.xml" hash="d5ecaf18a0c95090d9ccdd1851616690"/></dir><dir name="template"><dir name="ogone"><file name="form.phtml" hash="c333158ad57542a058ec81494d30e10b"/><file name="info.phtml" hash="ab903c6655ff46d650829043d6e81f5f"/><file name="paypage.phtml" hash="296ed4b5132a7005d3ed31cd1b73347d"/><file name="placeform.phtml" hash="53d0ce9fd88b2fbf04c33c71441c4458"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Mage_Ogone.csv" hash="bcf8587365af9d94b895e806200960b4"/></dir></target><target name="magecore"><dir name="Mage"><dir name="Ogone"><dir name="Block"><file name="Form.php" hash="15eb7ce7a5896a7804871a0b8f3c9c16"/><file name="Info.php" hash="22bd74fe7a41b3cec71c96b66d67f670"/><file name="Paypage.php" hash="ff0dbec585172249021996c5c0014d91"/><file name="Placeform.php" hash="7275874d00fe5b45e0dcfe570091b6f7"/></dir><dir name="controllers"><file name="ApiController.php" hash="6a8265e518d3e4ece165f87dd7619c22"/></dir><dir name="etc"><file name="config.xml" hash="a0414b5b087296ca15e9cdba46c256b9"/><file name="system.xml" hash="d9d745679bf31875009547efa06ea40a"/></dir><dir name="Helper"><file name="Data.php" hash="e3c5814ce23466cfe053a05b01abd68a"/></dir><dir name="Model"><dir name="Api"><file name="Debug.php" hash="4da829685b7de0cd3ed6db779d0e096c"/></dir><dir name="Mysql4"><dir name="Api"><file name="Debug.php" hash="076d8c4c6f4db3171f6d8a8ff9fb7124"/></dir></dir><dir name="Source"><file name="PaymentAction.php" hash="3a76a2111b89c37eb1334e4ab7741f65"/><file name="Pmlist.php" hash="4e4ebbc89593f43ebcf56340fbbdcf28"/><file name="Template.php" hash="d095221fa18a418984b0ad858fb9fff6"/></dir><file name="Api.php" hash="6271e5c863f25ba6b6f945046a5d6908"/><file name="Api.php.lindy" hash="1f4602680a6db279627c09f079afc676"/><file name="Config.php" hash="cb1e4c390bb1d4632389c2e8f0550e2b"/></dir><dir name="sql"><dir name="ogone_setup"><file name="mysql4-install-0.0.1.php" hash="8464b07a01804df808fc7689f316ff77"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Ogone.xml" hash="7834583f679449f99947fbc1752392dd"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.3.2.4</min><max></max></package></required></dependencies>
|
18 |
</package>
|