Version Notes
None
Download this release
Release Info
Developer | Magento Core Team |
Extension | Fontis_EwayNz |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Fontis/EwayNz/Block/Failure.php +34 -0
- app/code/community/Fontis/EwayNz/Block/Form.php +28 -0
- app/code/community/Fontis/EwayNz/Helper/Data.php +24 -0
- app/code/community/Fontis/EwayNz/Model/Shared.php +281 -0
- app/code/community/Fontis/EwayNz/Model/Source/Cctype.php +27 -0
- app/code/community/Fontis/EwayNz/controllers/SharedController.php +152 -0
- app/code/community/Fontis/EwayNz/etc/config.xml +116 -0
- app/code/community/Fontis/EwayNz/etc/system.xml +133 -0
- app/design/adminhtml/default/default/template/fontis/ewaynz/form.phtml +76 -0
- app/design/adminhtml/default/default/template/fontis/ewaynz/info.phtml +24 -0
- app/design/adminhtml/default/default/template/fontis/ewaynz/pdf/info.phtml +27 -0
- app/design/frontend/default/default/layout/fontis_ewaynz.xml +34 -0
- app/design/frontend/default/default/template/fontis/ewaynz/failure.phtml +25 -0
- app/design/frontend/default/default/template/fontis/ewaynz/form.phtml +28 -0
- app/etc/modules/Fontis_EwayNz.xml +32 -0
- app/locale/en_US/Fontis_EwayNz.csv +34 -0
- package.xml +18 -0
app/code/community/Fontis/EwayNz/Block/Failure.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Fontis eWAY NZ payment gateway
|
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 you can be sent a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_EwayNz
|
17 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Fontis_EwayNz_Block_Failure extends Mage_Core_Block_Template
|
22 |
+
{
|
23 |
+
public function getErrorMessage()
|
24 |
+
{
|
25 |
+
$msg = Mage::getSingleton('checkout/session')->getEwayNzErrorMessage();
|
26 |
+
Mage::getSingleton('checkout/session')->unsEwayNzErrorMessage();
|
27 |
+
return $msg;
|
28 |
+
}
|
29 |
+
|
30 |
+
public function getContinueShoppingUrl()
|
31 |
+
{
|
32 |
+
return Mage::getUrl('checkout/cart');
|
33 |
+
}
|
34 |
+
}
|
app/code/community/Fontis/EwayNz/Block/Form.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Fontis eWAY NZ payment gateway
|
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 you can be sent a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_EwayNz
|
17 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Fontis_EwayNz_Block_Form extends Mage_Payment_Block_Form
|
22 |
+
{
|
23 |
+
protected function _construct()
|
24 |
+
{
|
25 |
+
$this->setTemplate('fontis/ewaynz/form.phtml');
|
26 |
+
parent::_construct();
|
27 |
+
}
|
28 |
+
}
|
app/code/community/Fontis/EwayNz/Helper/Data.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Fontis eWAY NZ payment gateway
|
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 you can be sent a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_EwayNz
|
17 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Fontis_EwayNz_Helper_Data extends Mage_Core_Helper_Abstract
|
22 |
+
{
|
23 |
+
|
24 |
+
}
|
app/code/community/Fontis/EwayNz/Model/Shared.php
ADDED
@@ -0,0 +1,281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Fontis eWAY NZ payment gateway
|
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 you can be sent a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_EwayNz
|
17 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Fontis_EwayNz_Model_Shared extends Mage_Payment_Model_Method_Abstract
|
22 |
+
{
|
23 |
+
protected $_code = 'ewaynz';
|
24 |
+
|
25 |
+
protected $_isGateway = false;
|
26 |
+
protected $_canAuthorize = false;
|
27 |
+
protected $_canCapture = true;
|
28 |
+
protected $_canCapturePartial = false;
|
29 |
+
protected $_canRefund = false;
|
30 |
+
protected $_canVoid = false;
|
31 |
+
protected $_canUseInternal = false;
|
32 |
+
protected $_canUseCheckout = true;
|
33 |
+
protected $_canUseForMultishipping = false;
|
34 |
+
|
35 |
+
protected $_formBlockType = 'ewaynz/form';
|
36 |
+
|
37 |
+
protected $_order;
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Get order model
|
41 |
+
*
|
42 |
+
* @return Mage_Sales_Model_Order
|
43 |
+
*/
|
44 |
+
public function getOrder()
|
45 |
+
{
|
46 |
+
if (!$this->_order) {
|
47 |
+
$paymentInfo = $this->getInfoInstance();
|
48 |
+
$this->_order = Mage::getModel('sales/order')
|
49 |
+
->loadByIncrementId($paymentInfo->getOrder()->getRealOrderId());
|
50 |
+
}
|
51 |
+
return $this->_order;
|
52 |
+
}
|
53 |
+
|
54 |
+
/**
|
55 |
+
* Get Customer Id
|
56 |
+
*
|
57 |
+
* @return string
|
58 |
+
*/
|
59 |
+
public function getCustomerId()
|
60 |
+
{
|
61 |
+
return Mage::getStoreConfig('payment/' . $this->getCode() . '/customer_id');
|
62 |
+
}
|
63 |
+
|
64 |
+
/**
|
65 |
+
* Get Username
|
66 |
+
*
|
67 |
+
* @return string
|
68 |
+
*/
|
69 |
+
public function getUserName()
|
70 |
+
{
|
71 |
+
return Mage::getStoreConfig('payment/' . $this->getCode() . '/username');
|
72 |
+
}
|
73 |
+
|
74 |
+
//
|
75 |
+
public function getStoreInfoByField($field)
|
76 |
+
{
|
77 |
+
return Mage::getStoreConfig('payment/' . $this->getCode() . '/'.$field);
|
78 |
+
}
|
79 |
+
//
|
80 |
+
|
81 |
+
public function getRequestUrl()
|
82 |
+
{
|
83 |
+
return 'https://nz.ewaygateway.com/Request/';
|
84 |
+
}
|
85 |
+
|
86 |
+
public function getResultsUrl()
|
87 |
+
{
|
88 |
+
return 'https://nz.ewaygateway.com/Result/';
|
89 |
+
}
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
+
/**
|
94 |
+
* Get currency that accepted by eWAY account
|
95 |
+
*
|
96 |
+
* @return string
|
97 |
+
*/
|
98 |
+
public function getAcceptedCurrency()
|
99 |
+
{
|
100 |
+
// return Mage::getStoreConfig('payment/' . $this->getCode() . '/currency');
|
101 |
+
return array('NZD'); //explode( ',', Mage::getStoreConfig('payment/' . $this->getCode() . '/currency') );
|
102 |
+
}
|
103 |
+
|
104 |
+
public function validate()
|
105 |
+
{
|
106 |
+
parent::validate();
|
107 |
+
|
108 |
+
$currency_code = Mage::app()->getStore()->getCurrentCurrencyCode();
|
109 |
+
|
110 |
+
$paymentInfo = $this->getInfoInstance();
|
111 |
+
// if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
112 |
+
if (!$currency_code && $paymentInfo instanceof Mage_Sales_Model_Order_Payment) {
|
113 |
+
$currency_code = $paymentInfo->getOrder()->getBaseCurrencyCode();
|
114 |
+
|
115 |
+
} elseif(!$currency_code) {
|
116 |
+
$currency_code = $paymentInfo->getQuote()->getBaseCurrencyCode();
|
117 |
+
}
|
118 |
+
|
119 |
+
// if ($currency_code != $this->getAcceptedCurrency()) {
|
120 |
+
if( !in_array($currency_code, $this->getAcceptedCurrency()) ) {
|
121 |
+
Mage::throwException(Mage::helper('ewaynz')->__('Selected currency code ('.$currency_code.') is not compatabile with eWAY'));
|
122 |
+
// Mage::throwException(Mage::helper('ewaynz')->__(var_export($paymentInfo->getData(),true)));
|
123 |
+
}
|
124 |
+
|
125 |
+
return $this;
|
126 |
+
}
|
127 |
+
|
128 |
+
public function getOrderPlaceRedirectUrl()
|
129 |
+
{
|
130 |
+
return Mage::getUrl('ewaynz/shared/redirect');
|
131 |
+
}
|
132 |
+
|
133 |
+
/**
|
134 |
+
* Sends data to eWAY and requests a transaction URI to redirect the customer to.
|
135 |
+
*/
|
136 |
+
public function getTransactionUri()
|
137 |
+
{
|
138 |
+
$url = $this->getRequestString();
|
139 |
+
|
140 |
+
$response = null;
|
141 |
+
if(extension_loaded('curl')) {
|
142 |
+
$ch = curl_init();
|
143 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
144 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
145 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
|
146 |
+
$response = curl_exec($ch);
|
147 |
+
curl_close($ch);
|
148 |
+
|
149 |
+
} elseif(ini_get('allow_url_fopen')) {
|
150 |
+
$response = file($url);
|
151 |
+
}
|
152 |
+
|
153 |
+
$xml = simplexml_load_string($response);
|
154 |
+
$result = $xml->Result;
|
155 |
+
|
156 |
+
if($result == 'True') {
|
157 |
+
return (string)$xml->URI;
|
158 |
+
} else {
|
159 |
+
return false;
|
160 |
+
}
|
161 |
+
}
|
162 |
+
|
163 |
+
public function getRequestString()
|
164 |
+
{
|
165 |
+
$billing = $this->getOrder()->getBillingAddress();
|
166 |
+
$fields = array();
|
167 |
+
$invoiceDesc = '';
|
168 |
+
$lengs = 0;
|
169 |
+
foreach ($this->getOrder()->getAllItems() as $item) {
|
170 |
+
if ($item->getParentItem()) {
|
171 |
+
continue;
|
172 |
+
}
|
173 |
+
if (Mage::helper('core/string')->strlen($invoiceDesc.$item->getName()) > 10000) {
|
174 |
+
break;
|
175 |
+
}
|
176 |
+
$invoiceDesc .= $item->getName() . ', ';
|
177 |
+
}
|
178 |
+
$invoiceDesc = Mage::helper('core/string')->substr($invoiceDesc, 0, -2);
|
179 |
+
|
180 |
+
// Required information
|
181 |
+
$fields['CustomerID'] = $this->getCustomerId();
|
182 |
+
$fields['UserName'] = $this->getUserName();
|
183 |
+
$fields['Amount'] = sprintf("%.02f", $this->getOrder()->getBaseGrandTotal());
|
184 |
+
$fields['Currency'] = $this->getOrder()->getBaseCurrencyCode();
|
185 |
+
$fields['ReturnURL'] = Mage::getUrl('ewaynz/shared/success', array('_secure' => true));
|
186 |
+
$fields['CancelURL'] = Mage::getUrl('ewaynz/shared/failure', array('_secure' => true));
|
187 |
+
|
188 |
+
// Customer information
|
189 |
+
$fields['CustomerFirstName'] = $billing->getFirstname();
|
190 |
+
$fields['CustomerLastName'] = $billing->getLastname();
|
191 |
+
$fields['CustomerAddress'] = trim(str_replace("\n", ' ', trim(implode(' ', $billing->getStreet()))));
|
192 |
+
$fields['CustomerCity'] = $billing->getCity();
|
193 |
+
$fields['CustomerState'] = $billing->getRegion();
|
194 |
+
$fields['CustomerPostCode'] = $billing->getPostcode();
|
195 |
+
$fields['CustomerCountry'] = $billing->getCountryId();
|
196 |
+
$fields['CustomerEmail'] = $this->getOrder()->getCustomerEmail();
|
197 |
+
$fields['CustomerPhone'] = $billing->getTelephone();
|
198 |
+
$fields['InvoiceDescription'] = $invoiceDesc;
|
199 |
+
$fields['MerchantReference'] = $this->getOrder()->getRealOrderId();
|
200 |
+
$fields['MerchantOption1'] = '';
|
201 |
+
$fields['MerchantOption2'] = Mage::helper('core')->encrypt($fields['MerchantReference']);
|
202 |
+
$fields['MerchantOption3'] = '';
|
203 |
+
|
204 |
+
// Store information
|
205 |
+
$fields['CompanyName'] = Mage::app()->getStore()->getName();
|
206 |
+
|
207 |
+
if($logo = $this->getStoreInfoByField('logo')) {
|
208 |
+
$fields['CompanyLogo'] = $logo;
|
209 |
+
}
|
210 |
+
|
211 |
+
if($banner = $this->getStoreInfoByField('banner')) {
|
212 |
+
$fields['PageBanner'] = $banner;
|
213 |
+
}
|
214 |
+
|
215 |
+
// Process the fields array into something that can be sent via POST
|
216 |
+
$request = array();
|
217 |
+
foreach ($fields as $key => $value) {
|
218 |
+
$request[] = $key . '=' . rawurlencode($value);
|
219 |
+
}
|
220 |
+
|
221 |
+
$url = $this->getRequestUrl() . '?' . implode('&', $request);
|
222 |
+
|
223 |
+
return $url;
|
224 |
+
}
|
225 |
+
|
226 |
+
/**
|
227 |
+
* Get debug flag
|
228 |
+
*
|
229 |
+
* @return string
|
230 |
+
*/
|
231 |
+
public function getDebug()
|
232 |
+
{
|
233 |
+
return Mage::getStoreConfig('payment/' . $this->getCode() . '/debug_flag');
|
234 |
+
}
|
235 |
+
|
236 |
+
public function capture(Varien_Object $payment, $amount)
|
237 |
+
{
|
238 |
+
$payment->setStatus(self::STATUS_APPROVED)
|
239 |
+
->setLastTransId($this->getTransactionId());
|
240 |
+
|
241 |
+
return $this;
|
242 |
+
}
|
243 |
+
|
244 |
+
public function cancel(Varien_Object $payment)
|
245 |
+
{
|
246 |
+
$payment->setStatus(self::STATUS_DECLINED)
|
247 |
+
->setLastTransId($this->getTransactionId());
|
248 |
+
|
249 |
+
return $this;
|
250 |
+
}
|
251 |
+
|
252 |
+
/**
|
253 |
+
* parse response POST array from gateway page and return payment status
|
254 |
+
*
|
255 |
+
* @return bool
|
256 |
+
*/
|
257 |
+
public function getResponse($code)
|
258 |
+
{
|
259 |
+
$url = $this->getResultsUrl() .
|
260 |
+
'?CustomerID=' . $this->getCustomerId() .
|
261 |
+
'&UserName=' . $this->getUserName() .
|
262 |
+
'&AccessPaymentCode=' . $code;
|
263 |
+
|
264 |
+
$response = null;
|
265 |
+
if(extension_loaded('curl')) {
|
266 |
+
$ch = curl_init();
|
267 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
268 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
269 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
|
270 |
+
$response = curl_exec($ch);
|
271 |
+
curl_close($ch);
|
272 |
+
|
273 |
+
} elseif(ini_get('allow_url_fopen')) {
|
274 |
+
$response = file($url);
|
275 |
+
}
|
276 |
+
|
277 |
+
$xml = simplexml_load_string($response);
|
278 |
+
return Mage::helper('core')->xmlToAssoc($xml);
|
279 |
+
}
|
280 |
+
|
281 |
+
}
|
app/code/community/Fontis/EwayNz/Model/Source/Cctype.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Fontis eWAY NZ payment gateway
|
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 you can be sent a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_EwayNz
|
17 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Fontis_EwayNz_Model_Source_Cctype extends Mage_Payment_Model_Source_Cctype
|
22 |
+
{
|
23 |
+
public function getAllowedTypes()
|
24 |
+
{
|
25 |
+
return array('VI', 'MC', 'AE', 'DICL', 'JCB');
|
26 |
+
}
|
27 |
+
}
|
app/code/community/Fontis/EwayNz/controllers/SharedController.php
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Fontis eWAY NZ payment gateway
|
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 you can be sent a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_EwayNz
|
17 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
|
21 |
+
class Fontis_EwayNz_SharedController extends Mage_Core_Controller_Front_Action
|
22 |
+
{
|
23 |
+
protected function _expireAjax()
|
24 |
+
{
|
25 |
+
if (!$this->getCheckout()->getQuote()->hasItems()) {
|
26 |
+
$this->getResponse()->setHeader('HTTP/1.1','403 Session Expired');
|
27 |
+
exit;
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Get singleton of Checkout Session Model
|
33 |
+
*
|
34 |
+
* @return Mage_Checkout_Model_Session
|
35 |
+
*/
|
36 |
+
public function getCheckout()
|
37 |
+
{
|
38 |
+
return Mage::getSingleton('checkout/session');
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* when customer select eWay payment method
|
43 |
+
*/
|
44 |
+
public function redirectAction()
|
45 |
+
{
|
46 |
+
$session = $this->getCheckout();
|
47 |
+
$session->setEwayNzQuoteId($session->getQuoteId());
|
48 |
+
$session->setEwayNzRealOrderId($session->getLastRealOrderId());
|
49 |
+
|
50 |
+
$order = Mage::getModel('sales/order');
|
51 |
+
$order->loadByIncrementId($session->getLastRealOrderId());
|
52 |
+
$order->addStatusToHistory($order->getStatus(), Mage::helper('ewaynz')->__('Customer was redirected to eWAY.'));
|
53 |
+
$order->save();
|
54 |
+
|
55 |
+
$shared = $order->getPayment()->getMethodInstance();
|
56 |
+
$url = $shared->getTransactionUri();
|
57 |
+
|
58 |
+
if($url !== false) {
|
59 |
+
$this->getResponse()->setRedirect($url, 302);
|
60 |
+
} else {
|
61 |
+
$this->_forward('*/*/failure');
|
62 |
+
}
|
63 |
+
|
64 |
+
$session->unsQuoteId();
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* eWay returns POST variables to this action
|
69 |
+
*/
|
70 |
+
public function successAction()
|
71 |
+
{
|
72 |
+
$result = $this->_getPaymentResult();
|
73 |
+
|
74 |
+
if($result['TrxnStatus'] != 'true') {
|
75 |
+
$this->_redirect('checkout/onepage/failure');
|
76 |
+
|
77 |
+
} else {
|
78 |
+
|
79 |
+
$session = $this->getCheckout();
|
80 |
+
|
81 |
+
$session->unsEwayNzRealOrderId();
|
82 |
+
$session->setQuoteId($session->getEwayNzQuoteId(true));
|
83 |
+
$session->getQuote()->setIsActive(false)->save();
|
84 |
+
|
85 |
+
$order = Mage::getModel('sales/order');
|
86 |
+
$order->load($this->getCheckout()->getLastOrderId());
|
87 |
+
if($order->getId()) {
|
88 |
+
$order->sendNewOrderEmail();
|
89 |
+
}
|
90 |
+
|
91 |
+
$this->_redirect('checkout/onepage/success');
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Display failure page if error
|
97 |
+
*
|
98 |
+
*/
|
99 |
+
public function failureAction()
|
100 |
+
{
|
101 |
+
$result = $this->_getPaymentResult();
|
102 |
+
|
103 |
+
$this->getCheckout()->clear();
|
104 |
+
|
105 |
+
$this->loadLayout();
|
106 |
+
$this->renderLayout();
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Checking POST variables.
|
111 |
+
* Creating invoice if payment was successfull or cancel order if payment was declined
|
112 |
+
*/
|
113 |
+
protected function _getPaymentResult()
|
114 |
+
{
|
115 |
+
if (!$this->getRequest()->isPost()) {
|
116 |
+
$this->norouteAction();
|
117 |
+
return;
|
118 |
+
}
|
119 |
+
|
120 |
+
$accessPaymentCode = $this->getRequest()->getPost('AccessPaymentCode');
|
121 |
+
$response = Mage::getModel('ewaynz/shared')->getResponse($accessPaymentCode);
|
122 |
+
|
123 |
+
$order = Mage::getModel('sales/order');
|
124 |
+
$order->loadByIncrementId($response['MerchantReference']);
|
125 |
+
|
126 |
+
$paymentInst = $order->getPayment()->getMethodInstance();
|
127 |
+
|
128 |
+
if ($response['TrxnStatus'] == 'true') {
|
129 |
+
if ($order->canInvoice()) {
|
130 |
+
$invoice = $order->prepareInvoice();
|
131 |
+
$invoice->register()->capture();
|
132 |
+
Mage::getModel('core/resource_transaction')
|
133 |
+
->addObject($invoice)
|
134 |
+
->addObject($invoice->getOrder())
|
135 |
+
->save();
|
136 |
+
|
137 |
+
$paymentInst->setTransactionId($response['TrxnNumber']);
|
138 |
+
$text = "Customer successfully returned from eWAY.<br />Transaction reference: " . $response['TrxnNumber'] . "<br />Response: " . $response['TrxnResponseMessage'];
|
139 |
+
$order->addStatusToHistory($order->getStatus(), Mage::helper('ewaynz')->__($text));
|
140 |
+
}
|
141 |
+
} else {
|
142 |
+
$paymentInst->setTransactionId($response['TrxnNumber']);
|
143 |
+
$order->cancel();
|
144 |
+
$order->addStatusToHistory($order->getStatus(), Mage::helper('ewaynz')->__('Customer was rejected by eWAY.<br />Response Code: ' . $response['ResponseCode'] . '<br />Response: ' . $response['TrxnResponseMessage']));
|
145 |
+
$this->getCheckout()->setEwayNzErrorMessage($response['TrxnResponseMessage']);
|
146 |
+
}
|
147 |
+
|
148 |
+
$order->save();
|
149 |
+
|
150 |
+
return $response;
|
151 |
+
}
|
152 |
+
}
|
app/code/community/Fontis/EwayNz/etc/config.xml
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Fontis eWAY NZ payment gateway
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-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 you can be sent a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Fontis
|
17 |
+
* @package Fontis_EwayNz
|
18 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Fontis_EwayNz>
|
25 |
+
<version>1.0.0</version>
|
26 |
+
</Fontis_EwayNz>
|
27 |
+
</modules>
|
28 |
+
<global>
|
29 |
+
<models>
|
30 |
+
<ewaynz>
|
31 |
+
<class>Fontis_EwayNz_Model</class>
|
32 |
+
</ewaynz>
|
33 |
+
</models>
|
34 |
+
<blocks>
|
35 |
+
<ewaynz>
|
36 |
+
<class>Fontis_EwayNz_Block</class>
|
37 |
+
</ewaynz>
|
38 |
+
</blocks>
|
39 |
+
<helpers>
|
40 |
+
<ewaynz>
|
41 |
+
<class>Fontis_EwayNz_Helper</class>
|
42 |
+
</ewaynz>
|
43 |
+
</helpers>
|
44 |
+
<payment>
|
45 |
+
<cc>
|
46 |
+
<types>
|
47 |
+
<JCB>
|
48 |
+
<code>JCB</code>
|
49 |
+
<name>JCB</name>
|
50 |
+
<order>50</order>
|
51 |
+
</JCB>
|
52 |
+
<DICL>
|
53 |
+
<code>DICL</code>
|
54 |
+
<name>Diners Club</name>
|
55 |
+
<order>60</order>
|
56 |
+
</DICL>
|
57 |
+
</types>
|
58 |
+
</cc>
|
59 |
+
</payment>
|
60 |
+
</global>
|
61 |
+
<frontend>
|
62 |
+
<secure_url>
|
63 |
+
<ewaynz>/ewaynz/shared</ewaynz>
|
64 |
+
</secure_url>
|
65 |
+
<routers>
|
66 |
+
<ewaynz>
|
67 |
+
<use>standard</use>
|
68 |
+
<args>
|
69 |
+
<module>Fontis_EwayNz</module>
|
70 |
+
<frontName>ewaynz</frontName>
|
71 |
+
</args>
|
72 |
+
</ewaynz>
|
73 |
+
</routers>
|
74 |
+
<translate>
|
75 |
+
<modules>
|
76 |
+
<Fontis_EwayNz>
|
77 |
+
<files>
|
78 |
+
<default>Fontis_EwayNz.csv</default>
|
79 |
+
</files>
|
80 |
+
</Fontis_EwayNz>
|
81 |
+
</modules>
|
82 |
+
</translate>
|
83 |
+
<layout>
|
84 |
+
<updates>
|
85 |
+
<ewaynz>
|
86 |
+
<file>fontis_ewaynz.xml</file>
|
87 |
+
</ewaynz>
|
88 |
+
</updates>
|
89 |
+
</layout>
|
90 |
+
</frontend>
|
91 |
+
<adminhtml>
|
92 |
+
<translate>
|
93 |
+
<modules>
|
94 |
+
<Fontis_EwayNz>
|
95 |
+
<files>
|
96 |
+
<default>Fontis_EwayNz.csv</default>
|
97 |
+
</files>
|
98 |
+
</Fontis_EwayNz>
|
99 |
+
</modules>
|
100 |
+
</translate>
|
101 |
+
</adminhtml>
|
102 |
+
<default>
|
103 |
+
<payment>
|
104 |
+
<ewaynz>
|
105 |
+
<active>0</active>
|
106 |
+
<customer_id backend_model="adminhtml/system_config_backend_encrypted"/>
|
107 |
+
<username backend_model="adminhtml/system_config_backend_encrypted"/>
|
108 |
+
<currency>NZD</currency>
|
109 |
+
<model>ewaynz/shared</model>
|
110 |
+
<title>Credit Card</title>
|
111 |
+
<order_status>processing</order_status>
|
112 |
+
<allowspecific>0</allowspecific>
|
113 |
+
</ewaynz>
|
114 |
+
</payment>
|
115 |
+
</default>
|
116 |
+
</config>
|
app/code/community/Fontis/EwayNz/etc/system.xml
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Fontis eWAY NZ payment gateway
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-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 you can be sent a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Fontis
|
17 |
+
* @package Fontis_EwayNz
|
18 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<sections>
|
24 |
+
<payment>
|
25 |
+
<groups>
|
26 |
+
<ewaynz translate="label" module="ewaynz">
|
27 |
+
<label>eWAY NZ Shared</label>
|
28 |
+
<frontend_type>text</frontend_type>
|
29 |
+
<sort_order>205</sort_order>
|
30 |
+
<show_in_default>1</show_in_default>
|
31 |
+
<show_in_website>1</show_in_website>
|
32 |
+
<show_in_store>0</show_in_store>
|
33 |
+
<fields>
|
34 |
+
<active translate="label">
|
35 |
+
<label>Enabled</label>
|
36 |
+
<frontend_type>select</frontend_type>
|
37 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
38 |
+
<sort_order>10</sort_order>
|
39 |
+
<show_in_default>1</show_in_default>
|
40 |
+
<show_in_website>1</show_in_website>
|
41 |
+
<show_in_store>0</show_in_store>
|
42 |
+
</active>
|
43 |
+
|
44 |
+
<customer_id translate="label">
|
45 |
+
<label>Customer ID</label>
|
46 |
+
<frontend_type>text</frontend_type>
|
47 |
+
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
48 |
+
<sort_order>11</sort_order>
|
49 |
+
<show_in_default>1</show_in_default>
|
50 |
+
<show_in_website>1</show_in_website>
|
51 |
+
<show_in_store>0</show_in_store>
|
52 |
+
</customer_id>
|
53 |
+
<username translate="label">
|
54 |
+
<label>Username</label>
|
55 |
+
<frontend_type>text</frontend_type>
|
56 |
+
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
|
57 |
+
<sort_order>12</sort_order>
|
58 |
+
<show_in_default>1</show_in_default>
|
59 |
+
<show_in_website>1</show_in_website>
|
60 |
+
<show_in_store>0</show_in_store>
|
61 |
+
</username>
|
62 |
+
|
63 |
+
<title translate="label">
|
64 |
+
<label>Store Title</label>
|
65 |
+
<frontend_type>text</frontend_type>
|
66 |
+
<sort_order>20</sort_order>
|
67 |
+
<show_in_default>1</show_in_default>
|
68 |
+
<show_in_website>1</show_in_website>
|
69 |
+
<show_in_store>0</show_in_store>
|
70 |
+
</title>
|
71 |
+
|
72 |
+
<logo translate="label">
|
73 |
+
<label>Company Logo</label>
|
74 |
+
<frontend_type>text</frontend_type>
|
75 |
+
<sort_order>50</sort_order>
|
76 |
+
<show_in_default>1</show_in_default>
|
77 |
+
<show_in_website>1</show_in_website>
|
78 |
+
<show_in_store>0</show_in_store>
|
79 |
+
<comment>This is displayed on the eWAY hosted page</comment>
|
80 |
+
</logo>
|
81 |
+
|
82 |
+
<banner translate="label">
|
83 |
+
<label>Page Banner</label>
|
84 |
+
<frontend_type>text</frontend_type>
|
85 |
+
<sort_order>55</sort_order>
|
86 |
+
<show_in_default>1</show_in_default>
|
87 |
+
<show_in_website>1</show_in_website>
|
88 |
+
<show_in_store>0</show_in_store>
|
89 |
+
<comment>This is displayed on the eWAY hosted page</comment>
|
90 |
+
</banner>
|
91 |
+
|
92 |
+
|
93 |
+
<order_status translate="label">
|
94 |
+
<label>New order status</label>
|
95 |
+
<frontend_type>select</frontend_type>
|
96 |
+
<source_model>adminhtml/system_config_source_order_status_processing</source_model>
|
97 |
+
<sort_order>70</sort_order>
|
98 |
+
<show_in_default>1</show_in_default>
|
99 |
+
<show_in_website>1</show_in_website>
|
100 |
+
<show_in_store>0</show_in_store>
|
101 |
+
</order_status>
|
102 |
+
<allowspecific translate="label">
|
103 |
+
<label>Payment from applicable countries</label>
|
104 |
+
<frontend_type>allowspecific</frontend_type>
|
105 |
+
<sort_order>80</sort_order>
|
106 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
107 |
+
<show_in_default>1</show_in_default>
|
108 |
+
<show_in_website>1</show_in_website>
|
109 |
+
<show_in_store>1</show_in_store>
|
110 |
+
</allowspecific>
|
111 |
+
<specificcountry translate="label">
|
112 |
+
<label>Payment from Specific countries</label>
|
113 |
+
<frontend_type>multiselect</frontend_type>
|
114 |
+
<sort_order>90</sort_order>
|
115 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
116 |
+
<show_in_default>1</show_in_default>
|
117 |
+
<show_in_website>1</show_in_website>
|
118 |
+
<show_in_store>1</show_in_store>
|
119 |
+
</specificcountry>
|
120 |
+
<sort_order translate="label">
|
121 |
+
<label>Sort order</label>
|
122 |
+
<frontend_type>text</frontend_type>
|
123 |
+
<sort_order>100</sort_order>
|
124 |
+
<show_in_default>1</show_in_default>
|
125 |
+
<show_in_website>1</show_in_website>
|
126 |
+
<show_in_store>0</show_in_store>
|
127 |
+
</sort_order>
|
128 |
+
</fields>
|
129 |
+
</ewaynz>
|
130 |
+
</groups>
|
131 |
+
</payment>
|
132 |
+
</sections>
|
133 |
+
</config>
|
app/design/adminhtml/default/default/template/fontis/ewaynz/form.phtml
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Fontis eWAY NZ payment gateway
|
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 you can be sent a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_EwayNz
|
17 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
?>
|
21 |
+
<?php $_code=$this->getMethodCode() ?>
|
22 |
+
<script type="text/javascript">
|
23 |
+
Validation.creditCartTypes.JCB = [new RegExp('^(35[0-9]{14}|(2131|1800)[0-9]{11})$'), new RegExp('^([0-9]{3})?$'), true];
|
24 |
+
Validation.creditCartTypes.DICL = [new RegExp('^((300|305)[0-9]{11}|36[0-9]{12}|55[0-9]{14})$'), new RegExp('^([0-9]{3})?$'), false];
|
25 |
+
</script>
|
26 |
+
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
27 |
+
<li>
|
28 |
+
<div class="input-box">
|
29 |
+
<label for="<?php echo $_code ?>_cc_owner"><?php echo Mage::helper('payment')->__('Name on Card') ?> <span class="required">*</span></label><br/>
|
30 |
+
<input type="text" title="<?php echo Mage::helper('payment')->__('Name on Card') ?>" class="required-entry input-text" id="<?php echo $_code ?>_cc_owner" name="payment[cc_owner]" value="<?php echo $this->getInfoData('cc_owner') ?>"/>
|
31 |
+
</div>
|
32 |
+
</li>
|
33 |
+
<li>
|
34 |
+
<div class="input-box">
|
35 |
+
<label for="<?php echo $_code ?>_cc_type"><?php echo Mage::helper('payment')->__('Credit Card Type') ?> <span class="required">*</span></label><br/>
|
36 |
+
<select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
|
37 |
+
<?php $_ccType = $this->getInfoData('cc_type') ?>
|
38 |
+
<option value=""></option>
|
39 |
+
<?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
|
40 |
+
<option value="<?php echo $_typeCode ?>" <?php if($_typeCode==$_ccType): ?>selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
|
41 |
+
<?php endforeach ?>
|
42 |
+
</select>
|
43 |
+
</div>
|
44 |
+
</li>
|
45 |
+
<li>
|
46 |
+
<div class="input-box">
|
47 |
+
<label for="<?php echo $_code ?>_cc_number"><?php echo Mage::helper('payment')->__('Credit Card Number') ?> <span class="required">*</span></label><br/>
|
48 |
+
<input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo Mage::helper('payment')->__('Credit Card Number') ?>" class="input-text validate-cc-number" value="<?php echo $this->getInfoData('cc_number')?>"/>
|
49 |
+
</div>
|
50 |
+
</li>
|
51 |
+
<li>
|
52 |
+
<div class="input-box">
|
53 |
+
<label for="<?php echo $_code ?>_expiration"><?php echo Mage::helper('payment')->__('Expiration Date') ?> <span class="required">*</span></label><br/>
|
54 |
+
<select id="<?php echo $_code ?>_expiration" style="width:140px;" name="payment[cc_exp_month]" class="required-entry">
|
55 |
+
<?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
|
56 |
+
<?php foreach ($this->getCcMonths() as $k=>$v): ?>
|
57 |
+
<option value="<?php echo $k ?>" <?php if($k==$_ccExpMonth): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
|
58 |
+
<?php endforeach ?>
|
59 |
+
</select>
|
60 |
+
<?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
|
61 |
+
<select id="<?php echo $_code ?>_expiration_yr" style="width:103px;" name="payment[cc_exp_year]" class="required-entry">
|
62 |
+
<?php foreach ($this->getCcYears() as $k=>$v): ?>
|
63 |
+
<option value="<?php echo $k ? $k : '' ?>" <?php if($k==$_ccExpYear): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
|
64 |
+
<?php endforeach ?>
|
65 |
+
</select>
|
66 |
+
</div>
|
67 |
+
</li>
|
68 |
+
<?php if($this->hasVerification()): ?>
|
69 |
+
<li>
|
70 |
+
<div class="input-box">
|
71 |
+
<label for="<?php echo $_code ?>_cc_cid"><?php echo Mage::helper('payment')->__('Card Verification Number') ?> <span class="required">*</span></label><br/>
|
72 |
+
<input type="text" title="<?php echo Mage::helper('payment')->__('Card Verification Number') ?>" class="required-entry input-text validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[cc_cid]" style="width:3em;" value="<?php echo $this->getInfoData('cc_cid')?>"/>
|
73 |
+
</div>
|
74 |
+
</li>
|
75 |
+
<?php endif; ?>
|
76 |
+
</ul>
|
app/design/adminhtml/default/default/template/fontis/ewaynz/info.phtml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Fontis eWAY NZ payment gateway
|
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 you can be sent a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_EwayNz
|
17 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
?>
|
21 |
+
<?php echo Mage::helper('payment')->__('Name on the Card: %s', $this->htmlEscape($this->getInfo()->getCcOwner())) ?><br/>
|
22 |
+
<?php echo Mage::helper('payment')->__('Credit Card Type: %s', $this->htmlEscape($this->getCcTypeName())) ?><br/>
|
23 |
+
<?php echo Mage::helper('payment')->__('Credit Card Number: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ?><br/>
|
24 |
+
<?php echo Mage::helper('payment')->__('Expiration Date: %s/%s', $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>
|
app/design/adminhtml/default/default/template/fontis/ewaynz/pdf/info.phtml
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Fontis eWAY NZ payment gateway
|
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 you can be sent a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_EwayNz
|
17 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
?>
|
21 |
+
<?php echo Mage::helper('payment')->__('Name on the Card: %s', $this->htmlEscape($this->getInfo()->getCcOwner())) ?>
|
22 |
+
{{pdf_row_separator}}
|
23 |
+
<?php echo Mage::helper('payment')->__('Credit Card Type: %s', $this->htmlEscape($this->getCcTypeName())) ?>
|
24 |
+
{{pdf_row_separator}}
|
25 |
+
<?php echo Mage::helper('payment')->__('Credit Card Number: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ?>
|
26 |
+
{{pdf_row_separator}}
|
27 |
+
<?php echo Mage::helper('payment')->__('Expiration Date: %s/%s', $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>
|
app/design/frontend/default/default/layout/fontis_ewaynz.xml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Fontis eWAY NZ payment gateway
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-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 you can be sent a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Fontis
|
17 |
+
* @package Fontis_EwayNz
|
18 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<layout version="0.1.0">
|
23 |
+
|
24 |
+
<ewaynz_shared_failure>
|
25 |
+
<reference name="root">
|
26 |
+
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
27 |
+
</reference>
|
28 |
+
<reference name="content">
|
29 |
+
<block type="ewaynz/failure" name="ewaynz_shared_failure" template="fontis/ewaynz/failure.phtml">
|
30 |
+
</block>
|
31 |
+
</reference>
|
32 |
+
</ewaynz_shared_failure>
|
33 |
+
|
34 |
+
</layout>
|
app/design/frontend/default/default/template/fontis/ewaynz/failure.phtml
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Fontis eWAY NZ payment gateway
|
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 you can be sent a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_EwayNz
|
17 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
?>
|
21 |
+
<div class="page-head">
|
22 |
+
<h3><?php echo $this->__('Error occured') ?></h3>
|
23 |
+
</div>
|
24 |
+
<p><?php echo $this->getErrorMessage() ?></p>
|
25 |
+
<p><?php echo $this->__('Please <a href="%s">continue shopping</a>.', $this->getContinueShoppingUrl()) ?></p>
|
app/design/frontend/default/default/template/fontis/ewaynz/form.phtml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Fontis eWAY NZ payment gateway
|
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 you can be sent a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Fontis
|
16 |
+
* @package Fontis_EwayNz
|
17 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
+
*/
|
20 |
+
?>
|
21 |
+
<fieldset class="form-list">
|
22 |
+
<?php $_code=$this->getMethodCode() ?>
|
23 |
+
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
24 |
+
<li>
|
25 |
+
<?php echo $this->__('You will be redirected to eWAY website when you place an order.') ?>
|
26 |
+
</li>
|
27 |
+
</ul>
|
28 |
+
</fieldset>
|
app/etc/modules/Fontis_EwayNz.xml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Fontis eWAY NZ payment gateway
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-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 you can be sent a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Fontis
|
17 |
+
* @package Fontis_EwayNz
|
18 |
+
* @copyright Copyright (c) 2010 Fontis (http://www.fontis.com.au)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
-->
|
22 |
+
<config>
|
23 |
+
<modules>
|
24 |
+
<Fontis_EwayNz>
|
25 |
+
<active>true</active>
|
26 |
+
<codePool>community</codePool>
|
27 |
+
<depends>
|
28 |
+
<Mage_Payment/>
|
29 |
+
</depends>
|
30 |
+
</Fontis_EwayNz>
|
31 |
+
</modules>
|
32 |
+
</config>
|
app/locale/en_US/Fontis_EwayNz.csv
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"API Gateway URL","API Gateway URL"
|
2 |
+
"Accepted currency","Accepted currency"
|
3 |
+
"Card Verification Number","Card Verification Number"
|
4 |
+
"Credit Card Number","Credit Card Number"
|
5 |
+
"Credit Card Number: xxxx-%s","Credit Card Number: xxxx-%s"
|
6 |
+
"Credit Card Type","Credit Card Type"
|
7 |
+
"Credit Card Type: %s","Credit Card Type: %s"
|
8 |
+
"Credit Card Types","Credit Card Types"
|
9 |
+
"Credit Card Verification","Credit Card Verification"
|
10 |
+
"Customer ID","Customer ID"
|
11 |
+
"Customer successfully returned from eWAY","Customer successfully returned from eWAY"
|
12 |
+
"Customer was redirected to eWAY.","Customer was redirected to eWAY."
|
13 |
+
"Customer was rejected by eWAY","Customer was rejected by eWAY"
|
14 |
+
"Debug Flag","Debug Flag"
|
15 |
+
"Enabled","Enabled"
|
16 |
+
"Error occured","Error occured"
|
17 |
+
"Expiration Date","Expiration Date"
|
18 |
+
"Expiration Date: %s/%s","Expiration Date: %s/%s"
|
19 |
+
"Name on Card","Name on Card"
|
20 |
+
"Name on the Card: %s","Name on the Card: %s"
|
21 |
+
"New order status","New order status"
|
22 |
+
"Payment from Specific countries","Payment from Specific countries"
|
23 |
+
"Payment from applicable countries","Payment from applicable countries"
|
24 |
+
"Please <a href=""%s"">continue shopping</a>.","Please <a href=""%s"">continue shopping</a>."
|
25 |
+
"Please Select","Please Select"
|
26 |
+
"Selected currency code (","Selected currency code ("
|
27 |
+
"Sort order","Sort order"
|
28 |
+
"There has been an error processing your payment.","There has been an error processing your payment."
|
29 |
+
"There has been an error processing your payment. Please try later or contact us for help.","There has been an error processing your payment. Please try later or contact us for help."
|
30 |
+
"Title","Title"
|
31 |
+
"What is this?","What is this?"
|
32 |
+
"You will be redirected to eWAY in a few seconds.","You will be redirected to eWAY in a few seconds."
|
33 |
+
"You will be redirected to eWAY website when you place an order.","You will be redirected to eWAY website when you place an order."
|
34 |
+
"eWAY Shared","eWAY Shared"
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Fontis_EwayNz</name>
|
4 |
+
<version>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>Adds support for eWAY NZ payment gateway.</summary>
|
10 |
+
<description>Adds support for eWAY NZ payment gateway.</description>
|
11 |
+
<notes>None</notes>
|
12 |
+
<authors><author><name>Fontis</name><user>auto-converted</user><email>magento@fontis.com.au</email></author></authors>
|
13 |
+
<date>2010-05-09</date>
|
14 |
+
<time>15:34:16</time>
|
15 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="fontis"><dir name="ewaynz"><dir name="pdf"><file name="info.phtml" hash="6c686381cf6e767e8a0bc6fe65cf3d1b"/></dir><file name="form.phtml" hash="6e455589f3a6ae962e993b807a9b4ff8"/><file name="info.phtml" hash="a419c9a0f39e2a5d03a2903ecddf01ed"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="fontis_ewaynz.xml" hash="41dba7a6cdeff37cccf969df632d9e49"/></dir><dir name="template"><dir name="fontis"><dir name="ewaynz"><file name="failure.phtml" hash="ac3e6a5944273dd8ebab6218d809c3dd"/><file name="form.phtml" hash="883196b1cd9bae4c5ab61dfcefe7bc74"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Fontis_EwayNz.csv" hash="471fa1b3d501250167b7cad3d4d42e01"/></dir></target><target name="magecommunity"><dir name="Fontis"><dir name="EwayNz"><dir name="Block"><file name="Failure.php" hash="03de6c5318487215936d328e54be6173"/><file name="Form.php" hash="2a2d8116c88c2ea8b0c5cbc0715ea64a"/></dir><dir name="controllers"><file name="SharedController.php" hash="31b6c5293d16f511324932339850c943"/></dir><dir name="etc"><file name="config.xml" hash="05c4c9f9da04ac12c3aeb06b1254fb87"/><file name="system.xml" hash="6aa5bb497317f40a7d2f5aa456562122"/></dir><dir name="Helper"><file name="Data.php" hash="727b808c73c20ae97d162c892ac336c2"/></dir><dir name="Model"><dir name="Source"><file name="Cctype.php" hash="d38f391955687d43782d02a69a086095"/></dir><file name="Shared.php" hash="17066333c9d5143c6447fc9f61a8fc74"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Fontis_EwayNz.xml" hash="9e790c0d5d066e561e0d9efe7d937ff7"/></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies/>
|
18 |
+
</package>
|