Fontis_EwayAu - Version 1.2.0

Version Notes

None.

Download this release

Release Info

Developer Magento Core Team
Extension Fontis_EwayAu
Version 1.2.0
Comparing to
See all releases


Code changes from version 1.0.1 to 1.2.0

app/code/community/Fontis/EwayAu/Controller/Abstract.php CHANGED
@@ -148,10 +148,12 @@ abstract class Fontis_EwayAu_Controller_Abstract extends Mage_Core_Controller_Fr
148
  ->addObject($invoice->getOrder())
149
  ->save();
150
 
 
151
  $paymentInst->setTransactionId($response['ewayTrxnReference']);
152
  $order->addStatusToHistory($order->getStatus(), Mage::helper('ewayau')->__('Customer successfully returned from eWAY'));
153
  }
154
  } else {
 
155
  $paymentInst->setTransactionId($response['ewayTrxnReference']);
156
  $order->cancel();
157
  $order->addStatusToHistory($order->getStatus(), Mage::helper('ewayau')->__('Customer was rejected by eWAY'));
148
  ->addObject($invoice->getOrder())
149
  ->save();
150
 
151
+ $paymentInst->setLastTransId($response['ewayTrxnNumber']);
152
  $paymentInst->setTransactionId($response['ewayTrxnReference']);
153
  $order->addStatusToHistory($order->getStatus(), Mage::helper('ewayau')->__('Customer successfully returned from eWAY'));
154
  }
155
  } else {
156
+ $paymentInst->setLastTransId($response['ewayTrxnNumber']);
157
  $paymentInst->setTransactionId($response['ewayTrxnReference']);
158
  $order->cancel();
159
  $order->addStatusToHistory($order->getStatus(), Mage::helper('ewayau')->__('Customer was rejected by eWAY'));
app/code/community/Fontis/EwayAu/Model/Direct.php CHANGED
@@ -28,12 +28,12 @@ class Fontis_EwayAu_Model_Direct extends Mage_Payment_Model_Method_Cc
28
  protected $_canAuthorize = false;
29
  protected $_canCapture = true;
30
  protected $_canCapturePartial = false;
31
- protected $_canRefund = false;
32
  protected $_canVoid = false;
33
  protected $_canUseInternal = true;
34
  protected $_canUseCheckout = true;
35
  protected $_canUseForMultishipping = true;
36
- protected $_canSaveCc = true;
37
 
38
  protected $_formBlockType = 'ewayau/form';
39
  protected $_infoBlockType = 'ewayau/info';
@@ -91,6 +91,11 @@ class Fontis_EwayAu_Model_Direct extends Mage_Payment_Model_Method_Cc
91
  {
92
  return Mage::getStoreConfig('payment/' . $this->getCode() . '/currency');
93
  }
 
 
 
 
 
94
 
95
  public function validate()
96
  {
@@ -112,19 +117,23 @@ class Fontis_EwayAu_Model_Direct extends Mage_Payment_Model_Method_Cc
112
  $this->setAmount($amount)
113
  ->setPayment($payment);
114
 
115
- $result = $this->callDoDirectPayment($payment)!==false;
116
 
117
- if ($result) {
118
- $payment->setStatus(self::STATUS_APPROVED)
119
- ->setLastTransId($this->getTransactionId());
120
- } else {
121
  $e = $this->getError();
122
  if (isset($e['message'])) {
123
- $message = Mage::helper('ewayau')->__('There has been an error processing your payment.') . $e['message'];
124
  } else {
125
  $message = Mage::helper('ewayau')->__('There has been an error processing your payment. Please try later or contact us for help.');
126
  }
127
  Mage::throwException($message);
 
 
 
 
 
 
 
128
  }
129
  return $this;
130
  }
@@ -135,6 +144,32 @@ class Fontis_EwayAu_Model_Direct extends Mage_Payment_Model_Method_Cc
135
  return $this;
136
  }
137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  /**
139
  * prepare params to send to gateway
140
  *
@@ -167,39 +202,106 @@ class Fontis_EwayAu_Model_Direct extends Mage_Payment_Model_Method_Cc
167
  foreach ($tmpAddress as $part) {
168
  if (strlen($part) > 0) $formatedAddress .= $part . ' ';
169
  }
170
- // $this->getQuote()->reserveOrderId();
171
- $xml = "<ewaygateway>";
172
- $xml .= "<ewayCustomerID>" . $this->getCustomerId() . "</ewayCustomerID>";
173
- $xml .= "<ewayTotalAmount>" . ($this->getAmount()*100) . "</ewayTotalAmount>";
174
- $xml .= "<ewayCardHoldersName>" . htmlentities(trim($payment->getCcOwner()), ENT_QUOTES, 'UTF-8') . "</ewayCardHoldersName>";
175
- $xml .= "<ewayCardNumber>" . $payment->getCcNumber() . "</ewayCardNumber>";
176
- $xml .= "<ewayCardExpiryMonth>" . $payment->getCcExpMonth() . "</ewayCardExpiryMonth>";
177
- $xml .= "<ewayCardExpiryYear>" . $payment->getCcExpYear() . "</ewayCardExpiryYear>";
178
- $xml .= "<ewayTrxnNumber>" . '' . "</ewayTrxnNumber>";
179
- $xml .= "<ewayCustomerInvoiceDescription>" . htmlentities(trim($invoiceDesc), ENT_QUOTES, 'UTF-8') . "</ewayCustomerInvoiceDescription>";
180
- $xml .= "<ewayCustomerFirstName>" . htmlentities(trim($billing->getFirstname()), ENT_QUOTES, 'UTF-8') . "</ewayCustomerFirstName>";
181
- $xml .= "<ewayCustomerLastName>" . htmlentities(trim($billing->getLastname()), ENT_QUOTES, 'UTF-8') . "</ewayCustomerLastName>";
182
- $xml .= "<ewayCustomerEmail>" . htmlentities(trim($payment->getOrder()->getCustomerEmail()), ENT_QUOTES, 'UTF-8') . "</ewayCustomerEmail>";
183
- $xml .= "<ewayCustomerAddress>" . htmlentities(trim($formatedAddress), ENT_QUOTES, 'UTF-8') . "</ewayCustomerAddress>";
184
- $xml .= "<ewayCustomerPostcode>" . htmlentities(trim($billing->getPostcode()), ENT_QUOTES, 'UTF-8') . "</ewayCustomerPostcode>";
185
- // $xml .= "<ewayCustomerInvoiceRef>" . $this->getQuote()->getReservedOrderId() . "</ewayCustomerInvoiceRef>";
186
- $xml .= "<ewayCustomerInvoiceRef>" . '' . "</ewayCustomerInvoiceRef>";
 
187
 
188
  if ($this->getUseccv()) {
189
- $xml .= "<ewayCVN>" . $payment->getCcCid() . "</ewayCVN>";
190
  }
 
 
 
 
191
 
192
- $xml .= "<ewayOption1>" . '' . "</ewayOption1>";
193
- $xml .= "<ewayOption2>" . '' . "</ewayOption2>";
194
- $xml .= "<ewayOption3>" . '' . "</ewayOption3>";
195
- $xml .= "</ewaygateway>";
196
-
197
- $resultArr = $this->call($xml);
198
 
 
 
 
199
  if ($resultArr === false) {
200
  return false;
201
  }
202
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  $this->setTransactionId($resultArr['ewayTrxnNumber']);
204
 
205
  return $resultArr;
@@ -274,5 +376,4 @@ class Fontis_EwayAu_Model_Direct extends Mage_Payment_Model_Method_Cc
274
 
275
  return $newResArr;
276
  }
277
-
278
  }
28
  protected $_canAuthorize = false;
29
  protected $_canCapture = true;
30
  protected $_canCapturePartial = false;
31
+ protected $_canRefund = true;
32
  protected $_canVoid = false;
33
  protected $_canUseInternal = true;
34
  protected $_canUseCheckout = true;
35
  protected $_canUseForMultishipping = true;
36
+ protected $_canSaveCc = false;
37
 
38
  protected $_formBlockType = 'ewayau/form';
39
  protected $_infoBlockType = 'ewayau/info';
91
  {
92
  return Mage::getStoreConfig('payment/' . $this->getCode() . '/currency');
93
  }
94
+
95
+ public function getRefundPassword()
96
+ {
97
+ return Mage::getStoreConfig('payment/ewayau_direct/refund_password');
98
+ }
99
 
100
  public function validate()
101
  {
117
  $this->setAmount($amount)
118
  ->setPayment($payment);
119
 
120
+ $result = $this->callDoDirectPayment($payment);
121
 
122
+ if ($result === false) {
 
 
 
123
  $e = $this->getError();
124
  if (isset($e['message'])) {
125
+ $message = Mage::helper('ewayau')->__('There has been an error processing your payment. ') . $e['message'];
126
  } else {
127
  $message = Mage::helper('ewayau')->__('There has been an error processing your payment. Please try later or contact us for help.');
128
  }
129
  Mage::throwException($message);
130
+ } else {
131
+ if ($result['ewayTrxnStatus'] === 'True') {
132
+ $payment->setStatus(self::STATUS_APPROVED)->setLastTransId($result['ewayTrxnNumber']);
133
+ }
134
+ else {
135
+ Mage::throwException($result['ewayTrxnError']);
136
+ }
137
  }
138
  return $this;
139
  }
144
  return $this;
145
  }
146
 
147
+ public function refund(Varien_Object $payment, $amount)
148
+ {
149
+ $this->setAmount($amount)->setPayment($payment);
150
+
151
+ $result = $this->callDoRefund();
152
+
153
+ if($result === false) {
154
+ $e = $this->getError();
155
+ if (isset($e['message'])) {
156
+ $message = Mage::helper('ewayau')->__('There has been an error processing your refund.') . ' ' . $e['message'];
157
+ } else {
158
+ $message = Mage::helper('ewayau')->__('There has been an error processing your refund. Please try later or contact us for help.');
159
+ }
160
+ Mage::throwException($message);
161
+ }
162
+ else {
163
+ if ($result['ewayTrxnStatus'] === 'True' && $result['ewayReturnAmount'] == ($amount * 100)) {
164
+ $payment->setStatus(self::STATUS_APPROVED)->setLastTransId($result['ewayTrxnNumber']);
165
+ }
166
+ else {
167
+ Mage::throwException($result['ewayTrxnError']);
168
+ }
169
+ }
170
+ return $this;
171
+ }
172
+
173
  /**
174
  * prepare params to send to gateway
175
  *
202
  foreach ($tmpAddress as $part) {
203
  if (strlen($part) > 0) $formatedAddress .= $part . ' ';
204
  }
205
+
206
+ // Build the XML request
207
+ $xml = new SimpleXMLElement('<ewaygateway></ewaygateway>');
208
+
209
+ $xml->addChild('ewayCustomerID', $this->getCustomerId() );
210
+ $xml->addChild('ewayTotalAmount', ($this->getAmount()*100) );
211
+ $xml->addChild('ewayCardHoldersName', str_replace('&', '&amp;', $payment->getCcOwner() ) );
212
+ $xml->addChild('ewayCardNumber', $payment->getCcNumber() );
213
+ $xml->addChild('ewayCardExpiryMonth', $payment->getCcExpMonth() );
214
+ $xml->addChild('ewayCardExpiryYear', substr($payment->getCcExpYear(), 2, 2) );
215
+ $xml->addChild('ewayTrxnNumber', '');
216
+ $xml->addChild('ewayCustomerInvoiceDescription', str_replace('&', '&amp;', trim($invoiceDesc) ) );
217
+ $xml->addChild('ewayCustomerFirstName', str_replace('&', '&amp;', trim( $billing->getFirstname() ) ) );
218
+ $xml->addChild('ewayCustomerLastName', str_replace('&', '&amp;', trim( $billing->getLastname() ) ) );
219
+ $xml->addChild('ewayCustomerEmail', str_replace('&', '&amp;', trim($payment->getOrder()->getCustomerEmail() ) ) );
220
+ $xml->addChild('ewayCustomerAddress', str_replace('&', '&amp;', trim($formatedAddress) ) );
221
+ $xml->addChild('ewayCustomerPostcode', str_replace('&', '&amp;', trim($billing->getPostcode()) ) );
222
+ $xml->addChild('ewayCustomerInvoiceRef', '');
223
 
224
  if ($this->getUseccv()) {
225
+ $xml->addChild('ewayCVN', $payment->getCcCid() );
226
  }
227
+
228
+ $xml->addChild('ewayOption1', '');
229
+ $xml->addChild('ewayOption2', '');
230
+ $xml->addChild('ewayOption3', '');
231
 
 
 
 
 
 
 
232
 
233
+ //convert to string before sending to the gateway
234
+ $resultArr = $this->call( $xml->asXML() );
235
+
236
  if ($resultArr === false) {
237
  return false;
238
  }
239
 
240
+ return $resultArr;
241
+
242
+ }
243
+
244
+ /**
245
+ * prepare params to send to gateway
246
+ *
247
+ * @return bool | array
248
+ */
249
+ public function callDoRefund()
250
+ {
251
+ $payment = $this->getPayment();
252
+ $billing = $payment->getOrder()->getBillingAddress();
253
+
254
+ $xml = new SimpleXMLElement('<ewaygateway></ewaygateway>');
255
+
256
+ $xml->addChild('ewayCustomerID', $this->getCustomerId());
257
+ $xml->addChild('ewayTotalAmount', $this->getAmount()*100);
258
+ $xml->addChild('ewayCardExpiryMonth', $payment->getCcExpMonth());
259
+ $xml->addChild('ewayCardExpiryYear', substr($payment->getCcExpYear(), 2, 2));
260
+ $xml->addChild('ewayOriginalTrxnNumber', $payment->getLastTransId());
261
+ $xml->addChild('ewayRefundPassword', $this->getRefundPassword());
262
+
263
+ $xml->addChild('ewayOption1', '');
264
+ $xml->addChild('ewayOption2', '');
265
+ $xml->addChild('ewayOption3', '');
266
+
267
+
268
+
269
+ $http = new Varien_Http_Adapter_Curl();
270
+ $config = array('timeout' => 30);
271
+
272
+ $http->setConfig($config);
273
+ $http->write(Zend_Http_Client::POST, 'https://www.eway.com.au/gateway/xmlpaymentrefund.asp', '1.1', array(), $xml->asXML());
274
+ $response = $http->read();
275
+
276
+ $response = preg_split('/^\r?$/m', $response, 2);
277
+ $response = trim($response[1]);
278
+
279
+ if ($this->getDebug()) {
280
+ $debug->setResponseBody($response)->save();
281
+ }
282
+
283
+ if ($http->getErrno()) {
284
+ $http->close();
285
+ $this->setError(array(
286
+ 'message' => $http->getError()
287
+ ));
288
+ return false;
289
+ }
290
+ $http->close();
291
+
292
+ $resultArr = $this->parseXmlResponse($response);
293
+
294
+ if ($resultArr['ewayTrxnStatus'] == 'True') {
295
+ $this->unsError();
296
+ return $resultArr;
297
+ }
298
+
299
+ if (isset($resultArr['ewayTrxnError'])) {
300
+ $this->setError(array(
301
+ 'message' => $resultArr['ewayTrxnError']
302
+ ));
303
+ }
304
+
305
  $this->setTransactionId($resultArr['ewayTrxnNumber']);
306
 
307
  return $resultArr;
376
 
377
  return $newResArr;
378
  }
 
379
  }
app/code/community/Fontis/EwayAu/Model/Shared.php CHANGED
@@ -133,22 +133,20 @@ class Fontis_EwayAu_Model_Shared extends Mage_Payment_Model_Method_Abstract
133
  $fieldsArr['ewayCustomerEmail'] = $this->getOrder()->getCustomerEmail();
134
  $fieldsArr['ewayCustomerAddress'] = trim($formatedAddress);
135
  $fieldsArr['ewayCustomerPostcode'] = $billing->getPostcode();
136
- // $fieldsArr['ewayCustomerInvoiceRef'] = '';
137
  $fieldsArr['ewayCustomerInvoiceDescription'] = $invoiceDesc;
138
- $fieldsArr['eWAYSiteTitle '] = Mage::app()->getStore()->getName();
139
- $fieldsArr['eWAYAutoRedirect'] = 1;
140
  $fieldsArr['ewayURL'] = Mage::getUrl('eway/' . $this->_paymentMethod . '/success', array('_secure' => true));
141
- $fieldsArr['eWAYTrxnNumber'] = $paymentInfo->getOrder()->getRealOrderId();
142
  $fieldsArr['ewayOption1'] = '';
143
- $fieldsArr['ewayOption2'] = Mage::helper('core')->encrypt($fieldsArr['eWAYTrxnNumber']);
144
  $fieldsArr['ewayOption3'] = '';
145
 
146
- $request = '';
147
- foreach ($fieldsArr as $k=>$v) {
148
- $request .= '<' . $k . '>' . $v . '</' . $k . '>';
149
- }
150
-
151
  if ($this->getDebug()) {
 
 
 
 
152
  $debug = Mage::getModel('eway/api_debug')
153
  ->setRequestBody($request)
154
  ->save();
133
  $fieldsArr['ewayCustomerEmail'] = $this->getOrder()->getCustomerEmail();
134
  $fieldsArr['ewayCustomerAddress'] = trim($formatedAddress);
135
  $fieldsArr['ewayCustomerPostcode'] = $billing->getPostcode();
 
136
  $fieldsArr['ewayCustomerInvoiceDescription'] = $invoiceDesc;
137
+ $fieldsArr['ewaySiteTitle'] = Mage::app()->getStore()->getName();
138
+ $fieldsArr['ewayAutoRedirect'] = 1;
139
  $fieldsArr['ewayURL'] = Mage::getUrl('eway/' . $this->_paymentMethod . '/success', array('_secure' => true));
140
+ $fieldsArr['ewayCustomerInvoiceRef'] = $paymentInfo->getOrder()->getRealOrderId();
141
  $fieldsArr['ewayOption1'] = '';
142
+ $fieldsArr['ewayOption2'] = Mage::helper('core')->encrypt($paymentInfo->getOrder()->getRealOrderId());
143
  $fieldsArr['ewayOption3'] = '';
144
 
 
 
 
 
 
145
  if ($this->getDebug()) {
146
+ $request = '';
147
+ foreach($fieldsArr as $k => $v) {
148
+ $request .= '<' . $k . '>' . $v . '</' . $k . '>';
149
+ }
150
  $debug = Mage::getModel('eway/api_debug')
151
  ->setRequestBody($request)
152
  ->save();
app/code/community/Fontis/EwayAu/etc/config.xml CHANGED
@@ -24,7 +24,7 @@
24
  <config>
25
  <modules>
26
  <Fontis_EwayAu>
27
- <version>1.0.1</version>
28
  </Fontis_EwayAu>
29
  </modules>
30
  <global>
@@ -131,6 +131,7 @@
131
  <payment>
132
  <ewayau_direct>
133
  <customer_id backend_model="adminhtml/system_config_backend_encrypted"/>
 
134
  <currency>AUD</currency>
135
  <payment_action>authorize_capture</payment_action>
136
  <model>ewayau/direct</model>
24
  <config>
25
  <modules>
26
  <Fontis_EwayAu>
27
+ <version>1.2.0</version>
28
  </Fontis_EwayAu>
29
  </modules>
30
  <global>
131
  <payment>
132
  <ewayau_direct>
133
  <customer_id backend_model="adminhtml/system_config_backend_encrypted"/>
134
+ <refund_password backend_model="adminhtml/system_config_backend_encrypted"/>
135
  <currency>AUD</currency>
136
  <payment_action>authorize_capture</payment_action>
137
  <model>ewayau/direct</model>
app/code/community/Fontis/EwayAu/etc/system.xml CHANGED
@@ -37,7 +37,7 @@
37
  <label>Enabled</label>
38
  <frontend_type>select</frontend_type>
39
  <source_model>adminhtml/system_config_source_yesno</source_model>
40
- <sort_order>1</sort_order>
41
  <show_in_default>1</show_in_default>
42
  <show_in_website>1</show_in_website>
43
  <show_in_store>0</show_in_store>
@@ -45,7 +45,7 @@
45
  <title translate="label">
46
  <label>Title</label>
47
  <frontend_type>text</frontend_type>
48
- <sort_order>2</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>
@@ -54,16 +54,25 @@
54
  <label>Customer ID</label>
55
  <frontend_type>text</frontend_type>
56
  <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
57
- <sort_order>3</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
  </customer_id>
 
 
 
 
 
 
 
 
 
62
  <currency translate="label">
63
  <label>Accepted currency</label>
64
  <frontend_type>select</frontend_type>
65
  <source_model>adminhtml/system_config_source_currency</source_model>
66
- <sort_order>4</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>
@@ -71,7 +80,7 @@
71
  <api_url translate="label">
72
  <label>API Gateway URL</label>
73
  <frontend_type>text</frontend_type>
74
- <sort_order>5</sort_order>
75
  <show_in_default>1</show_in_default>
76
  <show_in_website>1</show_in_website>
77
  <show_in_store>0</show_in_store>
@@ -80,7 +89,7 @@
80
  <label>Debug Flag</label>
81
  <frontend_type>select</frontend_type>
82
  <source_model>adminhtml/system_config_source_yesno</source_model>
83
- <sort_order>6</sort_order>
84
  <show_in_default>1</show_in_default>
85
  <show_in_website>1</show_in_website>
86
  <show_in_store>0</show_in_store>
@@ -89,7 +98,7 @@
89
  <label>New order status</label>
90
  <frontend_type>select</frontend_type>
91
  <source_model>adminhtml/system_config_source_order_status_processing</source_model>
92
- <sort_order>7</sort_order>
93
  <show_in_default>1</show_in_default>
94
  <show_in_website>1</show_in_website>
95
  <show_in_store>0</show_in_store>
@@ -98,7 +107,7 @@
98
  <label>Credit Card Types</label>
99
  <frontend_type>multiselect</frontend_type>
100
  <source_model>ewayau/source_cctype</source_model>
101
- <sort_order>8</sort_order>
102
  <show_in_default>1</show_in_default>
103
  <show_in_website>1</show_in_website>
104
  <show_in_store>0</show_in_store>
@@ -107,7 +116,7 @@
107
  <label>Credit Card Verification</label>
108
  <frontend_type>select</frontend_type>
109
  <source_model>adminhtml/system_config_source_yesno</source_model>
110
- <sort_order>9</sort_order>
111
  <show_in_default>1</show_in_default>
112
  <show_in_website>1</show_in_website>
113
  <show_in_store>0</show_in_store>
@@ -115,7 +124,7 @@
115
  <allowspecific translate="label">
116
  <label>Payment from applicable countries</label>
117
  <frontend_type>allowspecific</frontend_type>
118
- <sort_order>10</sort_order>
119
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
120
  <show_in_default>1</show_in_default>
121
  <show_in_website>1</show_in_website>
@@ -124,7 +133,7 @@
124
  <specificcountry translate="label">
125
  <label>Payment from Specific countries</label>
126
  <frontend_type>multiselect</frontend_type>
127
- <sort_order>11</sort_order>
128
  <source_model>adminhtml/system_config_source_country</source_model>
129
  <show_in_default>1</show_in_default>
130
  <show_in_website>1</show_in_website>
@@ -133,7 +142,7 @@
133
  <sort_order translate="label">
134
  <label>Sort order</label>
135
  <frontend_type>text</frontend_type>
136
- <sort_order>12</sort_order>
137
  <show_in_default>1</show_in_default>
138
  <show_in_website>1</show_in_website>
139
  <show_in_store>0</show_in_store>
37
  <label>Enabled</label>
38
  <frontend_type>select</frontend_type>
39
  <source_model>adminhtml/system_config_source_yesno</source_model>
40
+ <sort_order>10</sort_order>
41
  <show_in_default>1</show_in_default>
42
  <show_in_website>1</show_in_website>
43
  <show_in_store>0</show_in_store>
45
  <title translate="label">
46
  <label>Title</label>
47
  <frontend_type>text</frontend_type>
48
+ <sort_order>20</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>
54
  <label>Customer ID</label>
55
  <frontend_type>text</frontend_type>
56
  <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
57
+ <sort_order>30</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
  </customer_id>
62
+ <refund_password translate="label">
63
+ <label>Refund Password</label>
64
+ <frontend_type>text</frontend_type>
65
+ <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
66
+ <sort_order>40</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
+ </refund_password>
71
  <currency translate="label">
72
  <label>Accepted currency</label>
73
  <frontend_type>select</frontend_type>
74
  <source_model>adminhtml/system_config_source_currency</source_model>
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>
80
  <api_url translate="label">
81
  <label>API Gateway URL</label>
82
  <frontend_type>text</frontend_type>
83
+ <sort_order>60</sort_order>
84
  <show_in_default>1</show_in_default>
85
  <show_in_website>1</show_in_website>
86
  <show_in_store>0</show_in_store>
89
  <label>Debug Flag</label>
90
  <frontend_type>select</frontend_type>
91
  <source_model>adminhtml/system_config_source_yesno</source_model>
92
+ <sort_order>70</sort_order>
93
  <show_in_default>1</show_in_default>
94
  <show_in_website>1</show_in_website>
95
  <show_in_store>0</show_in_store>
98
  <label>New order status</label>
99
  <frontend_type>select</frontend_type>
100
  <source_model>adminhtml/system_config_source_order_status_processing</source_model>
101
+ <sort_order>80</sort_order>
102
  <show_in_default>1</show_in_default>
103
  <show_in_website>1</show_in_website>
104
  <show_in_store>0</show_in_store>
107
  <label>Credit Card Types</label>
108
  <frontend_type>multiselect</frontend_type>
109
  <source_model>ewayau/source_cctype</source_model>
110
+ <sort_order>90</sort_order>
111
  <show_in_default>1</show_in_default>
112
  <show_in_website>1</show_in_website>
113
  <show_in_store>0</show_in_store>
116
  <label>Credit Card Verification</label>
117
  <frontend_type>select</frontend_type>
118
  <source_model>adminhtml/system_config_source_yesno</source_model>
119
+ <sort_order>100</sort_order>
120
  <show_in_default>1</show_in_default>
121
  <show_in_website>1</show_in_website>
122
  <show_in_store>0</show_in_store>
124
  <allowspecific translate="label">
125
  <label>Payment from applicable countries</label>
126
  <frontend_type>allowspecific</frontend_type>
127
+ <sort_order>110</sort_order>
128
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
129
  <show_in_default>1</show_in_default>
130
  <show_in_website>1</show_in_website>
133
  <specificcountry translate="label">
134
  <label>Payment from Specific countries</label>
135
  <frontend_type>multiselect</frontend_type>
136
+ <sort_order>111</sort_order>
137
  <source_model>adminhtml/system_config_source_country</source_model>
138
  <show_in_default>1</show_in_default>
139
  <show_in_website>1</show_in_website>
142
  <sort_order translate="label">
143
  <label>Sort order</label>
144
  <frontend_type>text</frontend_type>
145
+ <sort_order>112</sort_order>
146
  <show_in_default>1</show_in_default>
147
  <show_in_website>1</show_in_website>
148
  <show_in_store>0</show_in_store>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Fontis_EwayAu</name>
4
- <version>1.0.1</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>
@@ -10,9 +10,9 @@
10
  <description>Adds support for eWAY Australia 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-21</date>
14
- <time>04:34:02</time>
15
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="fontis"><dir name="ewayau"><dir name="pdf"><file name="info.phtml" hash="4af2178c2597fb9645442a3e25aaec0d"/></dir><file name="form.phtml" hash="560fb4bde178d6071edb58ca8da7be61"/><file name="info.phtml" hash="70998eb775ca3db6848e71e44f9e3ccf"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="fontis_ewayau.xml" hash="172b8e1cf5eb3c5fb76bee136c2532d3"/></dir><dir name="template"><dir name="fontis"><dir name="ewayau"><dir name="secure"><file name="failure.phtml" hash="16b3993f65964ef354fa56b929fde8ff"/><file name="form.phtml" hash="4f7e50698632a9e851b5504d7a5293ab"/></dir><dir name="shared"><file name="failure.phtml" hash="16b3993f65964ef354fa56b929fde8ff"/><file name="form.phtml" hash="1edf93ecf67b311794a66436ec7fa405"/></dir><file name="form.phtml" hash="eacb3d88b9b23a153564938b5433ab30"/><file name="info.phtml" hash="62a92278d0b6f8428ce98bf7462b92d8"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Fontis_EwayAu.csv" hash="608ddd72f698ac44afa8f3a0fc64d5e4"/></dir></target><target name="magecommunity"><dir name="Fontis"><dir name="EwayAu"><dir name="Block"><dir name="Secure"><file name="Failure.php" hash="81239ec03651c413019b74728015fdef"/><file name="Form.php" hash="03c69b7ae6b2de88c0e5614a8964b0e9"/><file name="Redirect.php" hash="cbf5d2ad7be4ca20c29f56bd4da5190f"/></dir><dir name="Shared"><file name="Failure.php" hash="90206554eee87c71a5efe4b00c14b1f8"/><file name="Form.php" hash="02b4b632a9063a71a9171575a368754f"/><file name="Redirect.php" hash="953202851c147cee5d5934d322588bd3"/></dir><file name="Form.php" hash="133c34887c1fd3fde5f292da3fec0075"/><file name="Info.php" hash="921f99f190b16cd954ff8e50f2ec2abc"/></dir><dir name="Controller"><file name="Abstract.php" hash="9450b7873c77d62cf9baf725508c9182"/></dir><dir name="controllers"><file name="SecureController.php" hash="ea61b5af1e0cbb6216443feabe6c156d"/><file name="SharedController.php" hash="2ad74a3707d4fef5b35493bf5f3f439b"/></dir><dir name="etc"><file name="config.xml" hash="0b68b56868ea53c5fb13aaebfba460cc"/><file name="system.xml" hash="47c5a48201c7ad7fdcd836f7c81b1f82"/></dir><dir name="Helper"><file name="Data.php" hash="6ff5a560ca051ac3deb6ea9131932ced"/></dir><dir name="Model"><dir name="Api"><file name="Debug.php" hash="143fc4b1591c973dc419958445dc225a"/></dir><dir name="Mysql4"><dir name="Api"><dir name="Debug"><file name="Collection.php" hash="59e4d78d2af03c3f3d92bd7bcf0b753a"/></dir><file name="Debug.php" hash="cff6b00cbcbe47917c6f1956765b5795"/></dir><file name="Setup.php" hash="08053b999f75fecfd3e27db40a60f29b"/></dir><dir name="Source"><file name="Cctype.php" hash="0b9e6f233db3e53312e148d3916cfdc8"/></dir><file name="Direct.php" hash="c795d5518c3d61861bbdd999f1e097b1"/><file name="Secure.php" hash="b14c8e1826f7b4b9134e75b8586260b0"/><file name="Shared.php" hash="a1c4451b38ef57c375bec64df6776997"/></dir><dir name="sql"><dir name="eway_setup"><file name="mysql4-install-0.1.0.php" hash="dde471943fc7320ab041f3e4f321aa8a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Fontis_EwayAu.xml" hash="484ebceaa067cdfa240eeda9f675256d"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Fontis_EwayAu</name>
4
+ <version>1.2.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>
10
  <description>Adds support for eWAY Australia 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-08-04</date>
14
+ <time>07:37:53</time>
15
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="fontis"><dir name="ewayau"><dir name="pdf"><file name="info.phtml" hash="4af2178c2597fb9645442a3e25aaec0d"/></dir><file name="form.phtml" hash="560fb4bde178d6071edb58ca8da7be61"/><file name="info.phtml" hash="70998eb775ca3db6848e71e44f9e3ccf"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="fontis_ewayau.xml" hash="172b8e1cf5eb3c5fb76bee136c2532d3"/></dir><dir name="template"><dir name="fontis"><dir name="ewayau"><dir name="secure"><file name="failure.phtml" hash="16b3993f65964ef354fa56b929fde8ff"/><file name="form.phtml" hash="4f7e50698632a9e851b5504d7a5293ab"/></dir><dir name="shared"><file name="failure.phtml" hash="16b3993f65964ef354fa56b929fde8ff"/><file name="form.phtml" hash="1edf93ecf67b311794a66436ec7fa405"/></dir><file name="form.phtml" hash="eacb3d88b9b23a153564938b5433ab30"/><file name="info.phtml" hash="62a92278d0b6f8428ce98bf7462b92d8"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Fontis_EwayAu.csv" hash="608ddd72f698ac44afa8f3a0fc64d5e4"/></dir></target><target name="magecommunity"><dir name="Fontis"><dir name="EwayAu"><dir name="Block"><dir name="Secure"><file name="Failure.php" hash="81239ec03651c413019b74728015fdef"/><file name="Form.php" hash="03c69b7ae6b2de88c0e5614a8964b0e9"/><file name="Redirect.php" hash="cbf5d2ad7be4ca20c29f56bd4da5190f"/></dir><dir name="Shared"><file name="Failure.php" hash="90206554eee87c71a5efe4b00c14b1f8"/><file name="Form.php" hash="02b4b632a9063a71a9171575a368754f"/><file name="Redirect.php" hash="953202851c147cee5d5934d322588bd3"/></dir><file name="Form.php" hash="133c34887c1fd3fde5f292da3fec0075"/><file name="Info.php" hash="921f99f190b16cd954ff8e50f2ec2abc"/></dir><dir name="Controller"><file name="Abstract.php" hash="4c336733fb941594eab00ae00bca7487"/></dir><dir name="controllers"><file name="SecureController.php" hash="ea61b5af1e0cbb6216443feabe6c156d"/><file name="SharedController.php" hash="2ad74a3707d4fef5b35493bf5f3f439b"/></dir><dir name="etc"><file name="config.xml" hash="2e1e3756d13e6ad8c26b9c4088263f1b"/><file name="system.xml" hash="fecaff9392366f42f7e1d03ef43dbdb3"/></dir><dir name="Helper"><file name="Data.php" hash="6ff5a560ca051ac3deb6ea9131932ced"/></dir><dir name="Model"><dir name="Api"><file name="Debug.php" hash="143fc4b1591c973dc419958445dc225a"/></dir><dir name="Mysql4"><dir name="Api"><dir name="Debug"><file name="Collection.php" hash="59e4d78d2af03c3f3d92bd7bcf0b753a"/></dir><file name="Debug.php" hash="cff6b00cbcbe47917c6f1956765b5795"/></dir><file name="Setup.php" hash="08053b999f75fecfd3e27db40a60f29b"/></dir><dir name="Source"><file name="Cctype.php" hash="0b9e6f233db3e53312e148d3916cfdc8"/></dir><file name="Direct.php" hash="ad32dffab5a562c4123a60de04326db9"/><file name="Secure.php" hash="b14c8e1826f7b4b9134e75b8586260b0"/><file name="Shared.php" hash="fcae3862eb5a8d34d971e54071df930f"/></dir><dir name="sql"><dir name="eway_setup"><file name="mysql4-install-0.1.0.php" hash="dde471943fc7320ab041f3e4f321aa8a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Fontis_EwayAu.xml" hash="484ebceaa067cdfa240eeda9f675256d"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>