Paw_Payanyway - Version 1.3.0

Version Notes

- Добавлена обработка запроса после отмены зачисления средств.
- Добавлена оплата через Сбербанк
- Исправлены оплаты через Евросеть и Почту России.

Download this release

Release Info

Developer PayAnyWay
Extension Paw_Payanyway
Version 1.3.0
Comparing to
See all releases


Code changes from version 1.2.0 to 1.3.0

app/code/community/Paw/Payanyway/Block/Invoice.php CHANGED
@@ -6,7 +6,7 @@ class Paw_Payanyway_Block_Invoice extends Mage_Core_Block_Template
6
  public function getPaymentAction()
7
  {
8
  $storeId = Mage::app()->getStore()->getId();
9
- return Mage::getStoreConfig('payanyway/settings/payment_action', $storeId);
10
  }
11
 
12
  public function getInvoice()
@@ -37,6 +37,8 @@ class Paw_Payanyway_Block_Invoice extends Mage_Core_Block_Template
37
  // получить данные счета
38
  $request = new MonetaInvoiceRequest();
39
 
 
 
40
  $request->payee = $params['MNT_ID'];
41
  $request->amount = $params['MNT_AMOUNT'];
42
  $request->clientTransaction = $params['MNT_TRANSACTION_ID'];
@@ -48,13 +50,17 @@ class Paw_Payanyway_Block_Invoice extends Mage_Core_Block_Template
48
  $a1->value = $params['additionalParameters_mailofrussiaSenderIndex'];
49
  $operationInfo->addAttribute($a1);
50
  $a2 = new MonetaKeyValueAttribute();
51
- $a2->key = 'mailofrussiaaddress';
52
- $a2->value = $params['additionalParameters_mailofrussiaSenderAddress'];
53
  $operationInfo->addAttribute($a2);
54
  $a3 = new MonetaKeyValueAttribute();
55
- $a3->key = 'mailofrussianame';
56
- $a3->value = $params['additionalParameters_mailofrussiaSenderName'];
57
  $operationInfo->addAttribute($a3);
 
 
 
 
58
  $request->operationInfo = $operationInfo;
59
  }
60
  elseif ($payment_method == 'payanyway_euroset')
@@ -94,6 +100,12 @@ class Paw_Payanyway_Block_Invoice extends Mage_Core_Block_Template
94
  {
95
  $invoice = array( 'status' => 'FAILED',
96
  'error_message' => $e->getMessage());
 
 
 
 
 
 
97
  }
98
 
99
  return $invoice;
6
  public function getPaymentAction()
7
  {
8
  $storeId = Mage::app()->getStore()->getId();
9
+ return Mage::getStoreConfig('payanyway/settings/payment_action', $storeId);
10
  }
11
 
12
  public function getInvoice()
37
  // получить данные счета
38
  $request = new MonetaInvoiceRequest();
39
 
40
+ if (isset($params['paymentSystem_accountId']))
41
+ $request->payer = $params['paymentSystem_accountId'];
42
  $request->payee = $params['MNT_ID'];
43
  $request->amount = $params['MNT_AMOUNT'];
44
  $request->clientTransaction = $params['MNT_TRANSACTION_ID'];
50
  $a1->value = $params['additionalParameters_mailofrussiaSenderIndex'];
51
  $operationInfo->addAttribute($a1);
52
  $a2 = new MonetaKeyValueAttribute();
53
+ $a2->key = 'mailofrussiaregion';
54
+ $a2->value = $params['additionalParameters_mailofrussiaSenderRegion'];
55
  $operationInfo->addAttribute($a2);
56
  $a3 = new MonetaKeyValueAttribute();
57
+ $a3->key = 'mailofrussiaaddress';
58
+ $a3->value = $params['additionalParameters_mailofrussiaSenderAddress'];
59
  $operationInfo->addAttribute($a3);
60
+ $a4 = new MonetaKeyValueAttribute();
61
+ $a5->key = 'mailofrussianame';
62
+ $a5->value = $params['additionalParameters_mailofrussiaSenderName'];
63
+ $operationInfo->addAttribute($a5);
64
  $request->operationInfo = $operationInfo;
65
  }
66
  elseif ($payment_method == 'payanyway_euroset')
100
  {
101
  $invoice = array( 'status' => 'FAILED',
102
  'error_message' => $e->getMessage());
103
+
104
+ if($order->canCancel()) {
105
+ $order->cancel();
106
+ $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_CANCELED, $e->getMessage());
107
+ $order->save();
108
+ }
109
  }
110
 
111
  return $invoice;
app/code/community/Paw/Payanyway/Model/Abstract.php CHANGED
@@ -79,6 +79,16 @@ abstract class Paw_Payanyway_Model_Abstract extends Mage_Payment_Model_Method_Ab
79
  return $this;
80
  }
81
 
 
 
 
 
 
 
 
 
 
 
82
  /**
83
  * Return url of payment method
84
  *
@@ -146,6 +156,9 @@ abstract class Paw_Payanyway_Model_Abstract extends Mage_Payment_Model_Method_Ab
146
  if (!empty($unitId))
147
  $params['paymentSystem.unitId'] = $unitId;
148
 
 
 
 
149
  if ($this->_code !== 'payanyway') {
150
  $params['followup'] = 'true';
151
  $params['javascriptEnabled'] = 'true';
@@ -185,4 +198,5 @@ abstract class Paw_Payanyway_Model_Abstract extends Mage_Payment_Model_Method_Ab
185
  $paymentAction = $this->getConfigData('payment_action');
186
  return empty($paymentAction) ? true : $paymentAction;
187
  }
 
188
  }
79
  return $this;
80
  }
81
 
82
+ /**
83
+ * Check if method is offline one
84
+ *
85
+ * @return boolean
86
+ */
87
+ public function isInvoice()
88
+ {
89
+ return $this->_isInvoice;
90
+ }
91
+
92
  /**
93
  * Return url of payment method
94
  *
156
  if (!empty($unitId))
157
  $params['paymentSystem.unitId'] = $unitId;
158
 
159
+ if (isset($this->_accountId))
160
+ $params['paymentSystem.accountId'] = $this->_accountId;
161
+
162
  if ($this->_code !== 'payanyway') {
163
  $params['followup'] = 'true';
164
  $params['javascriptEnabled'] = 'true';
198
  $paymentAction = $this->getConfigData('payment_action');
199
  return empty($paymentAction) ? true : $paymentAction;
200
  }
201
+
202
  }
app/code/community/Paw/Payanyway/Model/Euroset.php CHANGED
@@ -8,6 +8,7 @@ class Paw_Payanyway_Model_Euroset extends Paw_Payanyway_Model_Abstract
8
  */
9
  protected $_code = 'payanyway_euroset';
10
  protected $_paymentMethod = 'EUROSET';
 
11
 
12
  protected $_isInvoice = true;
13
  }
8
  */
9
  protected $_code = 'payanyway_euroset';
10
  protected $_paymentMethod = 'EUROSET';
11
+ protected $_accountId = 136;
12
 
13
  protected $_isInvoice = true;
14
  }
app/code/community/Paw/Payanyway/Model/Event.php CHANGED
@@ -21,6 +21,12 @@ class Paw_Payanyway_Model_Event
21
  * @var array
22
  */
23
  protected $_eventData = array();
 
 
 
 
 
 
24
 
25
  /**
26
  * Enent request data setter
@@ -86,13 +92,15 @@ class Paw_Payanyway_Model_Event
86
  public function callbackEvent()
87
  {
88
  $this->_validateEventData(true);
89
- $this->_processSale(self::PAYANYWAY_STATUS_SUCCESS, Mage::helper('payanyway')->__('Payment has been completed.'));
90
- die('SUCCESS');
 
 
91
  }
92
 
93
  public function invoiceEvent()
94
  {
95
- $params = $this->_validateEventData(false);
96
  return '';
97
  }
98
 
@@ -167,35 +175,90 @@ class Paw_Payanyway_Model_Event
167
  ) {
168
  Mage::throwException('Missing or invalid order ID.');
169
  }
 
170
  // load order for further validation
171
  $this->_order = Mage::getModel('sales/order')->loadByIncrementId($params['MNT_TRANSACTION_ID']);
172
- if (!$this->_order->getId()) {
173
- Mage::throwException('Order not found.');
174
- }
 
 
175
 
176
- if (0 !== strpos($this->_order->getPayment()->getMethodInstance()->getCode(), 'payanyway_')) {
177
- Mage::throwException('Unknown payment method.');
178
- }
 
179
 
180
  // make additional validation
181
- if ($fullCheck) {
182
-
183
- if(isset($params['MNT_ID']) && isset($params['MNT_TRANSACTION_ID']) && isset($params['MNT_OPERATION_ID'])
184
- && isset($params['MNT_AMOUNT']) && isset($params['MNT_CURRENCY_CODE']) && isset($params['MNT_TEST_MODE'])
185
- && isset($params['MNT_SIGNATURE']))
186
  {
187
- $mntDataintegrityCode = $this->_order->getPayment()->getMethodInstance()->getDataintegrityCode();
188
- $mntSignature = md5("{$params['MNT_ID']}{$params['MNT_TRANSACTION_ID']}{$params['MNT_OPERATION_ID']}{$params['MNT_AMOUNT']}{$params['MNT_CURRENCY_CODE']}{$params['MNT_TEST_MODE']}".$mntDataintegrityCode);
189
- if ($mntSignature !== $params['MNT_SIGNATURE'])
190
  {
191
- die('FAIL');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  }
193
  }
194
- else
195
- {
196
- die('FAIL');
197
- }
198
  }
199
- return $params;
200
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
201
  }
21
  * @var array
22
  */
23
  protected $_eventData = array();
24
+
25
+ /**
26
+ * Event response code
27
+ * @var int
28
+ */
29
+ protected $_responseCode = 500;
30
 
31
  /**
32
  * Enent request data setter
92
  public function callbackEvent()
93
  {
94
  $this->_validateEventData(true);
95
+
96
+ header("Content-type: application/xml");
97
+ echo $this->_getXMLResponse($this->_responseCode);
98
+ exit;
99
  }
100
 
101
  public function invoiceEvent()
102
  {
103
+ $this->_validateEventData(false);
104
  return '';
105
  }
106
 
175
  ) {
176
  Mage::throwException('Missing or invalid order ID.');
177
  }
178
+
179
  // load order for further validation
180
  $this->_order = Mage::getModel('sales/order')->loadByIncrementId($params['MNT_TRANSACTION_ID']);
181
+
182
+ if ($fullCheck == false) {
183
+ if (!$this->_order->getId()) {
184
+ Mage::throwException('Order not found.');
185
+ }
186
 
187
+ if (0 !== strpos($this->_order->getPayment()->getMethodInstance()->getCode(), 'payanyway_')) {
188
+ Mage::throwException('Unknown payment method.');
189
+ }
190
+ }
191
 
192
  // make additional validation
193
+ if ($fullCheck && $this->_order->getId())
194
+ {
195
+ if(isset($params['MNT_ID']) && isset($params['MNT_TRANSACTION_ID']) && isset($params['MNT_AMOUNT']) && isset($params['MNT_CURRENCY_CODE']) && isset($params['MNT_TEST_MODE']) && isset($params['MNT_SIGNATURE']))
 
 
196
  {
197
+ if ($this->_checkSignature())
 
 
198
  {
199
+ $amount = (float) $params['MNT_AMOUNT'];
200
+ if ( !isset($params['MNT_COMMAND']) && ($this->_order->getGrandTotal() == $amount) )
201
+ {
202
+ $this->_processSale(self::PAYANYWAY_STATUS_SUCCESS, Mage::helper('payanyway')->__('Payment has been completed.'));
203
+ $this->_responseCode = 200;
204
+ }
205
+ else
206
+ {
207
+ $status = $this->_order->getStatus();
208
+ switch($params['MNT_COMMAND']) {
209
+ case "CHECK":
210
+ if ($status == Mage_Sales_Model_Order::STATE_PROCESSING || $status == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT)
211
+ $this->_responseCode = 402;
212
+ break;
213
+ case "CANCELLED_CREDIT":
214
+ /*отмена зачисления*/
215
+ $this->_processCancel( Mage::helper('payanyway')->__('Canceled by payment system.') );
216
+ $this->_responseCode = 200;
217
+ break;
218
+ default:
219
+ $this->_responseCode = 200;
220
+ break;
221
+ }
222
+ }
223
  }
224
  }
 
 
 
 
225
  }
 
226
  }
227
+
228
+ private function _checkSignature()
229
+ {
230
+ $eventData = $this->_eventData;
231
+ $params = '';
232
+
233
+ if (isset($eventData['MNT_COMMAND'])) $params .= $eventData['MNT_COMMAND'];
234
+ $params .= $eventData['MNT_ID'] . $eventData['MNT_TRANSACTION_ID'];
235
+ if (isset($eventData['MNT_OPERATION_ID'])) $params .= $eventData['MNT_OPERATION_ID'];
236
+ if (isset($eventData['MNT_AMOUNT'])) $params .= $eventData['MNT_AMOUNT'];
237
+ $params .= $eventData['MNT_CURRENCY_CODE'];
238
+ if (isset($eventData['MNT_SUBSCRIBER_ID'])) $params .= $eventData['MNT_SUBSCRIBER_ID'];
239
+ $params .= $eventData['MNT_TEST_MODE'];
240
+
241
+ $signature = md5($params . $this->_order->getPayment()->getMethodInstance()->getDataintegrityCode());
242
+
243
+ if(strcasecmp($signature, $eventData['MNT_SIGNATURE'] ) == 0) {
244
+ return true;
245
+ }
246
+ return false;
247
+ }
248
+
249
+
250
+ private function _getXMLResponse($resultCode)
251
+ {
252
+ $params = $this->_eventData;
253
+ $signature = md5($resultCode . $params['MNT_ID'] . $params['MNT_TRANSACTION_ID'] . $this->_order->getPayment()->getMethodInstance()->getDataintegrityCode());
254
+ $result = '<?xml version="1.0" encoding="UTF-8" ?>';
255
+ $result .= '<MNT_RESPONSE>';
256
+ $result .= '<MNT_ID>' . $params['MNT_ID'] . '</MNT_ID>';
257
+ $result .= '<MNT_TRANSACTION_ID>' . $params['MNT_TRANSACTION_ID'] . '</MNT_TRANSACTION_ID>';
258
+ $result .= '<MNT_RESULT_CODE>' . $resultCode . '</MNT_RESULT_CODE>';
259
+ $result .= '<MNT_SIGNATURE>' . $signature . '</MNT_SIGNATURE>';
260
+ $result .= '</MNT_RESPONSE>';
261
+ return $result;
262
+ }
263
+
264
  }
app/code/community/Paw/Payanyway/Model/Post.php CHANGED
@@ -8,6 +8,7 @@ class Paw_Payanyway_Model_Post extends Paw_Payanyway_Model_Abstract
8
  */
9
  protected $_code = 'payanyway_post';
10
  protected $_paymentMethod = 'POST';
 
11
 
12
  protected $_isInvoice = true;
13
  }
8
  */
9
  protected $_code = 'payanyway_post';
10
  protected $_paymentMethod = 'POST';
11
+ protected $_accountId = 15;
12
 
13
  protected $_isInvoice = true;
14
  }
app/code/community/Paw/Payanyway/Model/Sberbank.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class Paw_Payanyway_Model_Sberbank extends Paw_Payanyway_Model_Abstract
5
+ {
6
+ /**
7
+ * unique internal payment method identifier
8
+ */
9
+ protected $_code = 'payanyway_sberbank';
10
+ protected $_paymentMethod = 'SBERBANK';
11
+
12
+ protected $_isInvoice = true;
13
+ }
app/code/community/Paw/Payanyway/Model/event.log DELETED
@@ -1,31 +0,0 @@
1
- Array
2
- (
3
- [MNT_TRANSACTION_ID] => 1
4
- )
5
-
6
- Array
7
- (
8
- [MNT_ID] => 78008544
9
- [MNT_TRANSACTION_ID] => 100000003
10
- [MNT_OPERATION_ID] => 165675
11
- [MNT_AMOUNT] => 2.00
12
- [MNT_CURRENCY_CODE] => RUB
13
- [MNT_TEST_MODE] => 0
14
- [MNT_SIGNATURE] => 5023cc5bcc63c1b46fb3607d4434a5b8
15
- [MNT_USER] => 23203548
16
- [MNT_CORRACCOUNT] => 23203548
17
- )
18
-
19
- Array
20
- (
21
- [MNT_ID] => 78008544
22
- [MNT_TRANSACTION_ID] => 100000003
23
- [MNT_OPERATION_ID] => 165675
24
- [MNT_AMOUNT] => 2.00
25
- [MNT_CURRENCY_CODE] => RUB
26
- [MNT_TEST_MODE] => 0
27
- [MNT_SIGNATURE] => 5023cc5bcc63c1b46fb3607d4434a5b8
28
- [MNT_USER] => 23203548
29
- [MNT_CORRACCOUNT] => 23203548
30
- )
31
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Paw/Payanyway/controllers/ProcessingController.php CHANGED
@@ -100,8 +100,27 @@ class Paw_Payanyway_ProcessingController extends Mage_Core_Controller_Front_Acti
100
  ->setEventData($this->getRequest()->getParams());
101
  $event->invoiceEvent();
102
 
103
- $this->loadLayout();
104
- $this->renderLayout();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  }
106
 
107
  /**
100
  ->setEventData($this->getRequest()->getParams());
101
  $event->invoiceEvent();
102
 
103
+ $this->loadLayout();
104
+
105
+ $block = $this->getLayout()->getBlock('payanyway_invoice');
106
+ $invoice = $block->getInvoice();
107
+
108
+ if ($invoice['status'] === 'FAILED') {
109
+ // set quote to active
110
+ $session = $this->_getCheckout();
111
+ if ($quoteId = $session->getPayanywayQuoteId()) {
112
+ $quote = Mage::getModel('sales/quote')->load($quoteId);
113
+ if ($quote->getId()) {
114
+ $quote->setIsActive(true)->save();
115
+ $session->setQuoteId($quoteId);
116
+ }
117
+ }
118
+ $session->addError($invoice['error_message']);
119
+ $this->_redirect('checkout/cart');
120
+ } else {
121
+ $block->setData("invoice", $invoice);
122
+ $this->renderLayout();
123
+ }
124
  }
125
 
126
  /**
app/code/community/Paw/Payanyway/etc/config.xml CHANGED
@@ -257,6 +257,15 @@
257
  <logotype>post.jpg</logotype>
258
  <allowspecific>0</allowspecific>
259
  </payanyway_post>
 
 
 
 
 
 
 
 
 
260
  <payanyway_walletone>
261
  <group>paway</group>
262
  <active>0</active>
@@ -298,7 +307,7 @@
298
  <active>0</active>
299
  <model>payanyway/dengimail</model>
300
  <title>Money@Mail.Ru</title>
301
- <unitid>587412</unitid>
302
  <logotype>dengimail.jpg</logotype>
303
  <allowspecific>0</allowspecific>
304
  </payanyway_dengimail>
@@ -325,7 +334,7 @@
325
  <active>0</active>
326
  <model>payanyway/psb</model>
327
  <title>Internet-bank "Promsvyazbank"</title>
328
- <unitid>609111</unitid>
329
  <logotype>psb.jpg</logotype>
330
  <allowspecific>0</allowspecific>
331
  </payanyway_psb>
257
  <logotype>post.jpg</logotype>
258
  <allowspecific>0</allowspecific>
259
  </payanyway_post>
260
+ <payanyway_sberbank>
261
+ <group>paway</group>
262
+ <active>0</active>
263
+ <model>payanyway/sberbank</model>
264
+ <title>Sberbank</title>
265
+ <unitid>510801</unitid>
266
+ <logotype>sberbank.jpg</logotype>
267
+ <allowspecific>0</allowspecific>
268
+ </payanyway_sberbank>
269
  <payanyway_walletone>
270
  <group>paway</group>
271
  <active>0</active>
307
  <active>0</active>
308
  <model>payanyway/dengimail</model>
309
  <title>Money@Mail.Ru</title>
310
+ <unitid>545234</unitid>
311
  <logotype>dengimail.jpg</logotype>
312
  <allowspecific>0</allowspecific>
313
  </payanyway_dengimail>
334
  <active>0</active>
335
  <model>payanyway/psb</model>
336
  <title>Internet-bank "Promsvyazbank"</title>
337
+ <unitid>661709</unitid>
338
  <logotype>psb.jpg</logotype>
339
  <allowspecific>0</allowspecific>
340
  </payanyway_psb>
app/code/community/Paw/Payanyway/etc/system.xml CHANGED
@@ -1919,6 +1919,83 @@
1919
  </specificcountry>
1920
  </fields>
1921
  </payanyway_psb>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1922
  </groups>
1923
  </payanyway>
1924
  </sections>
1919
  </specificcountry>
1920
  </fields>
1921
  </payanyway_psb>
1922
+ <payanyway_sberbank translate="label" module="payanyway">
1923
+ <label>Sberbank</label>
1924
+ <frontend_type>text</frontend_type>
1925
+ <sort_order>224</sort_order>
1926
+ <show_in_default>1</show_in_default>
1927
+ <show_in_website>1</show_in_website>
1928
+ <show_in_store>1</show_in_store>
1929
+ <fields>
1930
+ <active translate="label">
1931
+ <label>Enabled</label>
1932
+ <frontend_type>select</frontend_type>
1933
+ <config_path>payment/payanyway_sberbank/active</config_path>
1934
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1935
+ <sort_order>1</sort_order>
1936
+ <show_in_default>1</show_in_default>
1937
+ <show_in_website>1</show_in_website>
1938
+ <show_in_store>1</show_in_store>
1939
+ </active>
1940
+ <sort_order translate="label">
1941
+ <label>Sort Order</label>
1942
+ <frontend_type>text</frontend_type>
1943
+ <config_path>payment/payanyway_sberbank/sort_order</config_path>
1944
+ <sort_order>3</sort_order>
1945
+ <show_in_default>1</show_in_default>
1946
+ <show_in_website>1</show_in_website>
1947
+ <show_in_store>1</show_in_store>
1948
+ </sort_order>
1949
+ <title translate="label">
1950
+ <label>Title</label>
1951
+ <frontend_type>text</frontend_type>
1952
+ <config_path>payment/payanyway_sberbank/title</config_path>
1953
+ <sort_order>5</sort_order>
1954
+ <show_in_default>1</show_in_default>
1955
+ <show_in_website>1</show_in_website>
1956
+ <show_in_store>1</show_in_store>
1957
+ </title>
1958
+ <unitid translate="label">
1959
+ <label>unitId</label>
1960
+ <frontend_type>text</frontend_type>
1961
+ <config_path>payment/payanyway_sberbank/unitid</config_path>
1962
+ <sort_order>6</sort_order>
1963
+ <show_in_default>1</show_in_default>
1964
+ <show_in_website>1</show_in_website>
1965
+ <show_in_store>1</show_in_store>
1966
+ </unitid>
1967
+ <logotype translate="label">
1968
+ <label>Logotype</label>
1969
+ <frontend_type>text</frontend_type>
1970
+ <config_path>payment/payanyway_sberbank/logotype</config_path>
1971
+ <sort_order>7</sort_order>
1972
+ <show_in_default>1</show_in_default>
1973
+ <show_in_website>1</show_in_website>
1974
+ <show_in_store>1</show_in_store>
1975
+ </logotype>
1976
+ <allowspecific translate="label">
1977
+ <label>Payment from Applicable Countries</label>
1978
+ <frontend_type>allowspecific</frontend_type>
1979
+ <config_path>payment/payanyway_sberbank/allowspecific</config_path>
1980
+ <sort_order>8</sort_order>
1981
+ <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
1982
+ <show_in_default>1</show_in_default>
1983
+ <show_in_website>1</show_in_website>
1984
+ <show_in_store>1</show_in_store>
1985
+ </allowspecific>
1986
+ <specificcountry translate="label">
1987
+ <label>Payment from Specific Countries</label>
1988
+ <frontend_type>multiselect</frontend_type>
1989
+ <config_path>payment/payanyway_sberbank/specificcountry</config_path>
1990
+ <sort_order>9</sort_order>
1991
+ <source_model>adminhtml/system_config_source_country</source_model>
1992
+ <show_in_default>1</show_in_default>
1993
+ <show_in_website>1</show_in_website>
1994
+ <show_in_store>1</show_in_store>
1995
+ <can_be_empty>1</can_be_empty>
1996
+ </specificcountry>
1997
+ </fields>
1998
+ </payanyway_sberbank>
1999
  </groups>
2000
  </payanyway>
2001
  </sections>
app/design/frontend/base/default/layout/payanyway.xml CHANGED
@@ -3,7 +3,7 @@
3
  <layout version="0.1.0">
4
  <payanyway_processing_payment>
5
  <reference name="root">
6
- <action method="setTemplate"><template>page/1column.phtml</template></action>
7
  </reference>
8
  <reference name="content">
9
  <block type="payanyway/payment" name="payanyway_payment" template="payanyway/payment.phtml" />
3
  <layout version="0.1.0">
4
  <payanyway_processing_payment>
5
  <reference name="root">
6
+ <action method="setTemplate"><template>page/empty.phtml</template></action>
7
  </reference>
8
  <reference name="content">
9
  <block type="payanyway/payment" name="payanyway_payment" template="payanyway/payment.phtml" />
app/design/frontend/base/default/template/payanyway/form.phtml CHANGED
@@ -40,6 +40,12 @@
40
  <input type="text" value="" class="input-text required-entry" title="Sender ZIP" name="payment[additional_information][additionalParameters.mailofrussiaSenderIndex]" id="senderIndex" autocomplete="off">
41
  </div>
42
  </li>
 
 
 
 
 
 
43
  <li>
44
  <label class="required" for="senderAddress"><em>*</em><?php echo Mage::helper('payanyway')->__('Sender address') ?></label>
45
  <div class="input-box">
40
  <input type="text" value="" class="input-text required-entry" title="Sender ZIP" name="payment[additional_information][additionalParameters.mailofrussiaSenderIndex]" id="senderIndex" autocomplete="off">
41
  </div>
42
  </li>
43
+ <li>
44
+ <label class="required" for="senderRegion"><em>*</em><?php echo Mage::helper('payanyway')->__('Sender region') ?></label>
45
+ <div class="input-box">
46
+ <input type="text" value="" class="input-text required-entry" title="Sender region" name="payment[additional_information][additionalParameters.mailofrussiaSenderRegion]" id="senderRegion" autocomplete="off">
47
+ </div>
48
+ </li>
49
  <li>
50
  <label class="required" for="senderAddress"><em>*</em><?php echo Mage::helper('payanyway')->__('Sender address') ?></label>
51
  <div class="input-box">
app/design/frontend/base/default/template/payanyway/info.phtml CHANGED
@@ -5,7 +5,11 @@
5
  </div>
6
  <?php endif; ?>
7
  <?php if ($this->getInfo()->getLastTransId() == ''): ?>
8
- <em><?php echo Mage::helper('payanyway')->__('You will be redirected to the payment system page when you place an order.') ?></em>
 
 
 
 
9
  <?php else: ?>
10
  <?php echo Mage::helper('payanyway')->__('Payanyway Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) ?><br />
11
  <?php endif; ?>
5
  </div>
6
  <?php endif; ?>
7
  <?php if ($this->getInfo()->getLastTransId() == ''): ?>
8
+ <? if($this->getInfo()->getMethodInstance()->isInvoice()): ?>
9
+ <em><?php echo Mage::helper('payanyway')->__('Invoice will be created after you place an order.') ?></em>
10
+ <? else: ?>
11
+ <em><?php echo Mage::helper('payanyway')->__('You will be redirected to the payment system page when you place an order.') ?></em>
12
+ <? endif;?>
13
  <?php else: ?>
14
  <?php echo Mage::helper('payanyway')->__('Payanyway Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())) ?><br />
15
  <?php endif; ?>
app/design/frontend/base/default/template/payanyway/invoice.phtml CHANGED
@@ -1,49 +1,57 @@
1
- <?php $invoice = $this->getInvoice(); ?>
2
  <div class="page-head">
3
  <?php if ($invoice['status'] === 'CREATED'): ?>
4
  <h3><?php echo Mage::helper('payanyway')->__('Invoice was created') ?></h3>
5
  <?php if ($invoice['system'] === 'payanyway_banktransfer'): ?>
6
- <?php echo Mage::helper('payanyway')->__("Transaction is registered for processing. To complete your payment please <a onclick=\"window.open('http://%s/wiretransferreceipt.htm?transactionId=%s&paymentSystem.unitId=%s','newwindow','1,0,0,0,0,resizable=1,scrollbars=1,width=730,height=670');return false;\" href=\"#\">print receipt</a> and make payment in bank office.", $this->getPaymentAction(), $invoice['transaction'], $invoice['unitid']) ?>
7
  <?php elseif ($invoice['system'] == 'payanyway_post'): ?>
8
  <?php echo Mage::helper('payanyway')->__('Transaction is registered for processing. To complete your payment please <a target="_blank" href="https://%s/mailofrussiablank.htm?operationId=%s">print post ticket</a> and proceed with payment in any <a target="_blank" href="http://www.russianpost.ru">Russian Post</a> post office.To view post ticket in PDF format you should have a program <a target="_blank" href="http://get.adobe.com/reader/">Adobe Acrobat Reader</a> installed.', $this->getPaymentAction(), $invoice['transaction']) ?>
9
  <?php else:?>
10
  <?php if ($invoice['system'] == 'payanyway_ciberpay'):?>
11
- <h4><?php echo Mage::helper('payanyway')->__('Contract number for CiberPay is:') ?>&nbsp;<?php echo $invoice['transaction'] ?></h4>
12
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with CiberPay system using following <b>MONETA.RU</b> account number:') ?></p>
13
  <?php elseif ($invoice['system'] == 'payanyway_comepay'):?>
14
- <h4><?php echo Mage::helper('payanyway')->__('Contract number for ComePay is:') ?>&nbsp;<?php echo $invoice['transaction'] ?></h4>
15
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with ComePay cash payment terminals using following <b>PayAnyWay</b> account number:') ?></p>
16
  <?php elseif ($invoice['system'] == 'payanyway_contact'):?>
17
- <h4><?php echo Mage::helper('payanyway')->__('Contract number for Contact is:') ?>&nbsp;<?php echo $invoice['transaction'] ?></h4>
18
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with Contact payment system using following <b>MONETA.RU</b> account number:') ?></p>
19
  <?php elseif ($invoice['system'] == 'payanyway_elecsnet'):?>
20
- <h4><?php echo Mage::helper('payanyway')->__('Contract number for Elecsnet is:') ?>&nbsp;<?php echo $invoice['transaction'] ?></h4>
21
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with Elecsnet cash payment terminals using following <b>PayAnyWay</b> account number:') ?></p>
22
  <?php elseif ($invoice['system'] == 'payanyway_euroset'):?>
23
- <h4><?php echo Mage::helper('payanyway')->__('Contract number for Euroset is:') ?>&nbsp;<?php echo $invoice['transaction'] ?></h4>
24
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with Euroset using following <b>PayAnyWay</b> account number:') ?></p>
25
  <?php elseif ($invoice['system'] == 'payanyway_gorod'):?>
26
- <h4><?php echo Mage::helper('payanyway')->__('Contract number for Federal system GOROD is:') ?>&nbsp;<?php echo $invoice['transaction'] ?></h4>
27
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with Federal system GOROD using following <b>PayAnyWay</b> account number:') ?></p>
28
  <?php elseif ($invoice['system'] == 'payanyway_forward'):?>
29
- <h4><?php echo Mage::helper('payanyway')->__('Contract number for Forward Mobile is:') ?>&nbsp;<?php echo $invoice['transaction'] ?></h4>
30
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with Forward Mobile system using following <b>MONETA.RU</b> account number:') ?></p>
31
  <?php elseif ($invoice['system'] == 'payanyway_mcb'):?>
32
- <h4><?php echo Mage::helper('payanyway')->__('Contract number for MosCreditBank is:') ?>&nbsp;<?php echo $invoice['transaction'] ?></h4>
33
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with MosCreditBank cash payment terminals using following <b>MONETA.RU</b> account number:') ?></p>
34
  <?php elseif ($invoice['system'] == 'payanyway_novoplat'):?>
35
- <h4><?php echo Mage::helper('payanyway')->__('Contract number for NovoPlat is:') ?>&nbsp;<?php echo $invoice['transaction'] ?></h4>
36
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with NovoPlat system using following <b>PayAnyWay</b> account number:') ?></p>
37
  <?php elseif ($invoice['system'] == 'payanyway_platika'):?>
38
- <h4><?php echo Mage::helper('payanyway')->__('Contract number for PLATiKA is:') ?>&nbsp;<?php echo $invoice['transaction'] ?></h4>
39
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with PLATiKA system using following <b>MONETA.RU</b> account number:') ?></p>
 
 
 
40
  <?php endif; ?>
41
 
42
  <p><?php echo $invoice['transaction'] ?></p>
43
- <p><?php echo Mage::helper('payanyway')->__('Total amount:') ?>&nbsp;<?php echo $invoice['amount'] ?></p>
 
 
 
 
 
44
  <?php endif; ?>
45
  <?php else: ?>
46
- <h3><?php echo Mage::helper('payanyway')->__('Error occured during creating invoice') ?></h3>
47
  <p><?php echo $invoice['error_message']; ?></p>
48
  <?php endif; ?>
49
 
1
+ <?php $invoice = $this->getData("invoice") ?>
2
  <div class="page-head">
3
  <?php if ($invoice['status'] === 'CREATED'): ?>
4
  <h3><?php echo Mage::helper('payanyway')->__('Invoice was created') ?></h3>
5
  <?php if ($invoice['system'] === 'payanyway_banktransfer'): ?>
6
+ <?php echo Mage::helper('payanyway')->__("Transaction is registered for processing. To complete your payment please <a onclick='window.open(%s);return false;' href='#'>print receipt</a> and make payment in bank office.", '"http://'.$this->getPaymentAction().'/wiretransferreceipt.htm?transactionId='.$invoice['transaction'].'&paymentSystem.unitId='.$invoice['unitid'].'","newwindow","1,0,0,0,0,resizable=1,scrollbars=1,width=730,height=670"') ?>
7
  <?php elseif ($invoice['system'] == 'payanyway_post'): ?>
8
  <?php echo Mage::helper('payanyway')->__('Transaction is registered for processing. To complete your payment please <a target="_blank" href="https://%s/mailofrussiablank.htm?operationId=%s">print post ticket</a> and proceed with payment in any <a target="_blank" href="http://www.russianpost.ru">Russian Post</a> post office.To view post ticket in PDF format you should have a program <a target="_blank" href="http://get.adobe.com/reader/">Adobe Acrobat Reader</a> installed.', $this->getPaymentAction(), $invoice['transaction']) ?>
9
  <?php else:?>
10
  <?php if ($invoice['system'] == 'payanyway_ciberpay'):?>
11
+ <h4><?php echo Mage::helper('payanyway')->__('Contract number for CiberPay is: %s', $invoice['transaction']) ?></h4>
12
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with CiberPay system using following <b>MONETA.RU</b> account number:') ?></p>
13
  <?php elseif ($invoice['system'] == 'payanyway_comepay'):?>
14
+ <h4><?php echo Mage::helper('payanyway')->__('Contract number for ComePay is: %s', $invoice['transaction']) ?></h4>
15
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with ComePay cash payment terminals using following <b>PayAnyWay</b> account number:') ?></p>
16
  <?php elseif ($invoice['system'] == 'payanyway_contact'):?>
17
+ <h4><?php echo Mage::helper('payanyway')->__('Contract number for Contact is: %s', $invoice['transaction']) ?></h4>
18
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with Contact payment system using following <b>MONETA.RU</b> account number:') ?></p>
19
  <?php elseif ($invoice['system'] == 'payanyway_elecsnet'):?>
20
+ <h4><?php echo Mage::helper('payanyway')->__('Contract number for Elecsnet is: %s', $invoice['transaction']) ?></h4>
21
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with Elecsnet cash payment terminals using following <b>PayAnyWay</b> account number:') ?></p>
22
  <?php elseif ($invoice['system'] == 'payanyway_euroset'):?>
23
+ <h4><?php echo Mage::helper('payanyway')->__('Contract number for Euroset is: %s', $invoice['transaction']) ?></h4>
24
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with Euroset using following <b>PayAnyWay</b> account number:') ?></p>
25
  <?php elseif ($invoice['system'] == 'payanyway_gorod'):?>
26
+ <h4><?php echo Mage::helper('payanyway')->__('Contract number for Federal system GOROD is: %s', $invoice['transaction']) ?></h4>
27
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with Federal system GOROD using following <b>PayAnyWay</b> account number:') ?></p>
28
  <?php elseif ($invoice['system'] == 'payanyway_forward'):?>
29
+ <h4><?php echo Mage::helper('payanyway')->__('Contract number for Forward Mobile is: %s', $invoice['transaction']) ?></h4>
30
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with Forward Mobile system using following <b>MONETA.RU</b> account number:') ?></p>
31
  <?php elseif ($invoice['system'] == 'payanyway_mcb'):?>
32
+ <h4><?php echo Mage::helper('payanyway')->__('Contract number for MosCreditBank is: %s', $invoice['transaction']) ?></h4>
33
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with MosCreditBank cash payment terminals using following <b>MONETA.RU</b> account number:') ?></p>
34
  <?php elseif ($invoice['system'] == 'payanyway_novoplat'):?>
35
+ <h4><?php echo Mage::helper('payanyway')->__('Contract number for NovoPlat is: %s', $invoice['transaction']) ?></h4>
36
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with NovoPlat system using following <b>PayAnyWay</b> account number:') ?></p>
37
  <?php elseif ($invoice['system'] == 'payanyway_platika'):?>
38
+ <h4><?php echo Mage::helper('payanyway')->__('Contract number for PLATiKA is: %s', $invoice['transaction']) ?></h4>
39
  <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with PLATiKA system using following <b>MONETA.RU</b> account number:') ?></p>
40
+ <?php elseif ($invoice['system'] == 'payanyway_sberbank'):?>
41
+ <h4><?php echo Mage::helper('payanyway')->__('Contract number for Sberbank is: %s', $invoice['transaction']) ?></h4>
42
+ <p><?php echo Mage::helper('payanyway')->__('Transaction is registered. Please proceed payment with Sberbank using following <b>MONETA.RU</b> account number:') ?></p>
43
  <?php endif; ?>
44
 
45
  <p><?php echo $invoice['transaction'] ?></p>
46
+
47
+ <?php if ($invoice['system'] == 'payanyway_sberbank'):?>
48
+ <p><?php echo Mage::helper('payanyway')->__('Or click on <a href="https://online.sberbank.ru/PhizIC/private/payments/servicesPayments/edit.do?recipient=113368&field(_TCM_IDENT_WlsZid1)=%s">link</a> to pay by SberbankOnline.', $invoice['transaction']) ?></p>
49
+ <?php endif; ?>
50
+
51
+ <p><?php echo Mage::helper('payanyway')->__('Total amount: %s', $invoice['amount']) ?></p>
52
  <?php endif; ?>
53
  <?php else: ?>
54
+ <h3><?php echo Mage::helper('payanyway')->__("Error <a onclick='window.open(%s)'>occured</a> during creating invoice", '"http://'.$this->getPaymentAction().'/wiretransferreceipt.htm?transactionId='.$invoice['transaction'].'&paymentSystem.unitId='.$invoice['unitid'].'","newwindow","1,0,0,0,0,resizable=1,scrollbars=1,width=730,height=670"') ?></h3>
55
  <p><?php echo $invoice['error_message']; ?></p>
56
  <?php endif; ?>
57
 
app/design/frontend/base/default/template/payanyway/payment.phtml CHANGED
@@ -1,26 +1,17 @@
1
- <div class="page-head">
2
- <h3><?php echo Mage::helper('payanyway')->__('Redirecting to payment system') ?></h3>
3
  </div>
4
- <table style="width:100%;">
5
- <tr>
6
- <td style="width:75%">
7
- <form name="payanyway" id="payanyway_payment_form" action="<?php echo $this->getFormAction();?>" method="POST">
8
- <?php if (is_array($this->getFormData())): ?>
9
- <?php foreach ($this->getFormData() as $name => $value): ?>
10
- <input type="hidden" name="<?php echo $name; ?>" value="<?php echo $value; ?>"/>
11
- <?php endforeach; ?>
12
- <?php endif; ?>
13
- </form>
14
-
15
- <script type="text/javascript">
16
- //<![CDATA[
17
- var paymentform = document.getElementById('payanyway_payment_form');
18
- window.onload = paymentform.submit();
19
- //]]>
20
- </script>
21
- </td>
22
- <td style="text-align:center;">
23
- <img src="<?php echo $this->getPayanywayLogoSrc() ?>" title="<?php echo Mage::helper('payanyway')->__('Powered by Payanyway') ?>" alt="<?php echo Mage::helper('payanyway')->__('Powered by Payanyway') ?>" />
24
- </td>
25
- </tr>
26
- </table>
1
+ <div class="page-title">
2
+ <h1><?php echo $this->__('Redirecting...') ?></h1>
3
  </div>
4
+ <div>
5
+ <form name="payanyway" id="payanyway_payment_form" action="<?php echo $this->getFormAction();?>" method="POST">
6
+ <?php if (is_array($this->getFormData())): ?>
7
+ <?php foreach ($this->getFormData() as $name => $value): ?>
8
+ <input type="hidden" name="<?php echo $name; ?>" value="<?php echo $value; ?>"/>
9
+ <?php endforeach; ?>
10
+ <?php endif; ?>
11
+ </form>
12
+ </div>
13
+ <script type="text/javascript">
14
+ //<![CDATA[
15
+ document.getElementById('payanyway_payment_form').submit();
16
+ //]]>
17
+ </script>
 
 
 
 
 
 
 
 
 
app/locale/en_US/Paw_Payanyway.csv CHANGED
@@ -4,43 +4,50 @@
4
  "Payanyway Transaction ID: %s","Payanyway Transaction ID: %s"
5
  "Payment has not been processed yet.","Payment has not been processed yet."
6
  "You will be redirected to the payment system page when you place an order.","You will be redirected to the payment system page when you place an order."
7
- "Redirecting to payment system","Redirecting to payment system"
8
- "Powered by Payanyway","Powered by Payanyway"
 
9
  "Phone number","Phone number"
10
  "Phone number in international format. For example +71234567890","Phone number in international format. For example +71234567890"
11
  "E-mail in MoneyMail","E-mail in MoneyMail"
12
  "Sender ZIP","Sender ZIP"
 
13
  "Sender address","Sender address"
14
  "Sender name","Sender name"
15
  "Payment system","Payment system"
16
  "Invoice was created","Invoice was created"
17
  "Error occured during creating invoice","Error occured during creating invoice"
18
- "Total amount:","Total amount:"
19
- "Transaction is registered for processing. To complete your payment please <a onclick=\"window.open('http://%s/wiretransferreceipt.htm?transactionId=%s&paymentSystem.unitId=%s','newwindow','1,0,0,0,0,resizable=1,scrollbars=1,width=730,height=670');return false;\" href=\"#\">print receipt</a> and make payment in bank office.","Transaction is registered for processing. To complete your payment please <a onclick=\"window.open('http://%s/wiretransferreceipt.htm?transactionId=%s&paymentSystem.unitId=%s','newwindow','1,0,0,0,0,resizable=1,scrollbars=1,width=730,height=670');return false;\" href=\"#\">print receipt</a> and make payment in bank office."
20
- "Transaction is registered for processing. To complete your payment please <a target=\"_blank\" href=\"https://%s/mailofrussiablank.htm?operationId=%s\">print post ticket</a> and proceed with payment in any <a target=\"_blank\" href=\"http://www.russianpost.ru\">Russian Post</a> post office.To view post ticket in PDF format you should have a program <a target="_blank" href="http://get.adobe.com/reader/">Adobe Acrobat Reader</a> installed.','Transaction is registered for processing. To complete your payment please <a target="_blank" href="https://%s/mailofrussiablank.htm?operationId=%s">print post ticket</a> and proceed with payment in any <a target="_blank" href="http://www.russianpost.ru">Russian Post</a> post office.To view post ticket in PDF format you should have a program <a target=\"_blank\" href=\"http://get.adobe.com/reader/\">Adobe Acrobat Reader</a> installed.","Transaction is registered for processing. To complete your payment please <a target=\"_blank\" href=\"https://%s/mailofrussiablank.htm?operationId=%s\">print post ticket</a> and proceed with payment in any <a target=\"_blank\" href=\"http://www.russianpost.ru\">Russian Post</a> post office.To view post ticket in PDF format you should have a program <a target="_blank" href="http://get.adobe.com/reader/">Adobe Acrobat Reader</a> installed.','Transaction is registered for processing. To complete your payment please <a target="_blank" href="https://%s/mailofrussiablank.htm?operationId=%s">print post ticket</a> and proceed with payment in any <a target="_blank" href="http://www.russianpost.ru">Russian Post</a> post office.To view post ticket in PDF format you should have a program <a target=\"_blank\" href=\"http://get.adobe.com/reader/\">Adobe Acrobat Reader</a> installed."
21
- "Contract number for CiberPay is:","Contract number for CiberPay is:"
22
  "Transaction is registered. Please proceed payment with CiberPay system using following <b>MONETA.RU</b> account number:","Transaction is registered. Please proceed payment with CiberPay system using following <b>MONETA.RU</b> account number:"
23
- "Contract number for ComePay is:","Contract number for ComePay is:"
24
  "Transaction is registered. Please proceed payment with ComePay cash payment terminals using following <b>PayAnyWay</b> account number:","Transaction is registered. Please proceed payment with ComePay cash payment terminals using following <b>PayAnyWay</b> account number:"
25
- "Contract number for Contact is:","Contract number for Contact is:"
26
  "Transaction is registered. Please proceed payment with Contact payment system using following <b>MONETA.RU</b> account number:","Transaction is registered. Please proceed payment with Contact payment system using following <b>MONETA.RU</b> account number:"
27
- "Contract number for Elecsnet is:","Contract number for Elecsnet is:"
28
  "Transaction is registered. Please proceed payment with Elecsnet cash payment terminals using following <b>PayAnyWay</b> account number:","Transaction is registered. Please proceed payment with Elecsnet cash payment terminals using following <b>PayAnyWay</b> account number:"
29
- "Contract number for Euroset is:","Contract number for Euroset is:"
30
  "Transaction is registered. Please proceed payment with Euroset using following <b>PayAnyWay</b> account number:","Transaction is registered. Please proceed payment with Euroset using following <b>PayAnyWay</b> account number:"
31
- "Contract number for Federal system GOROD is:","Contract number for Federal system GOROD is:"
32
  "Transaction is registered. Please proceed payment with Federal system GOROD using following <b>PayAnyWay</b> account number:","Transaction is registered. Please proceed payment with Federal system GOROD using following <b>PayAnyWay</b> account number:"
33
- "Contract number for Forward Mobile is:","Contract number for Forward Mobile is:"
34
  "Transaction is registered. Please proceed payment with Forward Mobile system using following <b>MONETA.RU</b> account number:","Transaction is registered. Please proceed payment with Forward Mobile system using following <b>MONETA.RU</b> account number:"
35
- "Contract number for MosCreditBank is:","Contract number for MosCreditBank is:"
36
  "Transaction is registered. Please proceed payment with MosCreditBank cash payment terminals using following <b>MONETA.RU</b> account number:","Transaction is registered. Please proceed payment with MosCreditBank cash payment terminals using following <b>MONETA.RU</b> account number:"
37
- "Contract number for NovoPlat is:","Contract number for NovoPlat is:"
38
  "Transaction is registered. Please proceed payment with NovoPlat system using following <b>PayAnyWay</b> account number:","Transaction is registered. Please proceed payment with NovoPlat system using following <b>PayAnyWay</b> account number:"
39
- "Contract number for PLATiKA is:","Contract number for PLATiKA is:"
40
  "Transaction is registered. Please proceed payment with PLATiKA system using following <b>MONETA.RU</b> account number:","Transaction is registered. Please proceed payment with PLATiKA system using following <b>MONETA.RU</b> account number:"
 
 
 
41
 
42
  "Internet-bank login","Internet-bank login"
43
  "Payment purpose","Payment purpose"
44
  "E-mail in Money@Mail.Ru","E-mail in Money@Mail.Ru"
45
  "Phone number formatted as 10 digits, w/o +7 or 8","Phone number formatted as 10 digits, w/o +7 or 8"
46
- "Comment","Comment"
 
 
4
  "Payanyway Transaction ID: %s","Payanyway Transaction ID: %s"
5
  "Payment has not been processed yet.","Payment has not been processed yet."
6
  "You will be redirected to the payment system page when you place an order.","You will be redirected to the payment system page when you place an order."
7
+ "Invoice will be created after you place an order.","Invoice will be created after you place an order."
8
+ "Redirecting...","Redirecting..."
9
+ "Click <a %s>here</a> if nothing has happened","Click <a %s>here</a> if nothing has happened"
10
  "Phone number","Phone number"
11
  "Phone number in international format. For example +71234567890","Phone number in international format. For example +71234567890"
12
  "E-mail in MoneyMail","E-mail in MoneyMail"
13
  "Sender ZIP","Sender ZIP"
14
+ "Sender region","Sender region"
15
  "Sender address","Sender address"
16
  "Sender name","Sender name"
17
  "Payment system","Payment system"
18
  "Invoice was created","Invoice was created"
19
  "Error occured during creating invoice","Error occured during creating invoice"
20
+ "Total amount: %s","Total amount: %s"
21
+ "Transaction is registered for processing. To complete your payment please <a onclick='window.open(%s);return false;' href='#'>print receipt</a> and make payment in bank office.","Transaction is registered for processing. To complete your payment please <a onclick='window.open(%s);return false;' href='#'>print receipt</a> and make payment in bank office."
22
+ "Transaction is registered for processing. To complete your payment please <a target=""_blank"" href=""https://%s/mailofrussiablank.htm?operationId=%s"">print post ticket</a> and proceed with payment in any <a target=""_blank"" href=""http://www.russianpost.ru"">Russian Post</a> post office.To view post ticket in PDF format you should have a program <a target=""_blank"" href=""http://get.adobe.com/reader/"">Adobe Acrobat Reader</a> installed.","Transaction is registered for processing. To complete your payment please <a target=""_blank"" href=""https://%s/mailofrussiablank.htm?operationId=%s"">print post ticket</a> and proceed with payment in any <a target=""_blank"" href=""http://www.russianpost.ru"">Russian Post</a> post office.To view post ticket in PDF format you should have a program <a target=""_blank"" href=""http://get.adobe.com/reader/"">Adobe Acrobat Reader</a> installed."
23
+ "Contract number for CiberPay is: %s","Contract number for CiberPay is: %s"
24
  "Transaction is registered. Please proceed payment with CiberPay system using following <b>MONETA.RU</b> account number:","Transaction is registered. Please proceed payment with CiberPay system using following <b>MONETA.RU</b> account number:"
25
+ "Contract number for ComePay is: %s","Contract number for ComePay is: %s"
26
  "Transaction is registered. Please proceed payment with ComePay cash payment terminals using following <b>PayAnyWay</b> account number:","Transaction is registered. Please proceed payment with ComePay cash payment terminals using following <b>PayAnyWay</b> account number:"
27
+ "Contract number for Contact is: %s","Contract number for Contact is: %s"
28
  "Transaction is registered. Please proceed payment with Contact payment system using following <b>MONETA.RU</b> account number:","Transaction is registered. Please proceed payment with Contact payment system using following <b>MONETA.RU</b> account number:"
29
+ "Contract number for Elecsnet is: %s","Contract number for Elecsnet is: %s"
30
  "Transaction is registered. Please proceed payment with Elecsnet cash payment terminals using following <b>PayAnyWay</b> account number:","Transaction is registered. Please proceed payment with Elecsnet cash payment terminals using following <b>PayAnyWay</b> account number:"
31
+ "Contract number for Euroset is: %s","Contract number for Euroset is: %s"
32
  "Transaction is registered. Please proceed payment with Euroset using following <b>PayAnyWay</b> account number:","Transaction is registered. Please proceed payment with Euroset using following <b>PayAnyWay</b> account number:"
33
+ "Contract number for Federal system GOROD is: %s","Contract number for Federal system GOROD is: %s"
34
  "Transaction is registered. Please proceed payment with Federal system GOROD using following <b>PayAnyWay</b> account number:","Transaction is registered. Please proceed payment with Federal system GOROD using following <b>PayAnyWay</b> account number:"
35
+ "Contract number for Forward Mobile is: %s","Contract number for Forward Mobile is: %s"
36
  "Transaction is registered. Please proceed payment with Forward Mobile system using following <b>MONETA.RU</b> account number:","Transaction is registered. Please proceed payment with Forward Mobile system using following <b>MONETA.RU</b> account number:"
37
+ "Contract number for MosCreditBank is: %s","Contract number for MosCreditBank is: %s"
38
  "Transaction is registered. Please proceed payment with MosCreditBank cash payment terminals using following <b>MONETA.RU</b> account number:","Transaction is registered. Please proceed payment with MosCreditBank cash payment terminals using following <b>MONETA.RU</b> account number:"
39
+ "Contract number for NovoPlat is: %s","Contract number for NovoPlat is: %s"
40
  "Transaction is registered. Please proceed payment with NovoPlat system using following <b>PayAnyWay</b> account number:","Transaction is registered. Please proceed payment with NovoPlat system using following <b>PayAnyWay</b> account number:"
41
+ "Contract number for PLATiKA is: %s","Contract number for PLATiKA is: %s"
42
  "Transaction is registered. Please proceed payment with PLATiKA system using following <b>MONETA.RU</b> account number:","Transaction is registered. Please proceed payment with PLATiKA system using following <b>MONETA.RU</b> account number:"
43
+ "Contract number for Sberbank is: %s","Contract number for Sberbank is: %s"
44
+ "Transaction is registered. Please proceed payment with Sberbank using following <b>MONETA.RU</b> account number:","Transaction is registered. Please proceed payment with Sberbank using following <b>MONETA.RU</b> account number:"
45
+ "Or click on <a href=""https://online.sberbank.ru/PhizIC/private/payments/servicesPayments/edit.do?recipient=113368&field(_TCM_IDENT_WlsZid1)=%s"">link</a> to pay by SberbankOnline.","Or click on <a href=""https://online.sberbank.ru/PhizIC/private/payments/servicesPayments/edit.do?recipient=113368&field(_TCM_IDENT_WlsZid1)=%s"">link</a> to pay by SberbankOnline."
46
 
47
  "Internet-bank login","Internet-bank login"
48
  "Payment purpose","Payment purpose"
49
  "E-mail in Money@Mail.Ru","E-mail in Money@Mail.Ru"
50
  "Phone number formatted as 10 digits, w/o +7 or 8","Phone number formatted as 10 digits, w/o +7 or 8"
51
+ "Comment","Comment"
52
+
53
+ "Canceled by payment system.","Canceled by payment system."
app/locale/ru_RU/Paw_Payanyway.csv ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Payment has been completed.","Оплата завершена."
2
+ "The order has been canceled.","Заказ был отменен."
3
+ "The customer was redirected to Payanyway.","The customer was redirected to Payanyway."
4
+ "Payanyway Transaction ID: %s","Payanyway Transaction ID: %s"
5
+ "You will be redirected to the payment system page when you place an order.","Вы будете перенаправлены на страницу платежной системы после подтверждения заказа."
6
+ "Invoice will be created after you place an order.","После подтверждения заказа будет создано платежное поручение."
7
+ "Redirecting...","Перенаправление..."
8
+ "Click <a %s>here</a> if nothing has happened","Нажмите на <a %s>ссылку</a>, если ничего не произошло"
9
+ "Phone number","Номер телефона"
10
+ "Phone number in international format. For example +71234567890","Номер телефона в международном формате. Например, +71234567890"
11
+ "E-mail in MoneyMail","E-mail в MoneyMail"
12
+ "Sender ZIP","Индекс отправителя"
13
+ "Sender region","Регион (или город федерального значения) отправителя"
14
+ "Sender address","Адрес отправителя"
15
+ "Sender name","Имя отправителя"
16
+ "Payment system","Платежная система"
17
+ "Invoice was created","Создано платежное поручение"
18
+ "Error occured during creating invoice","В процессе создания платежного поручения возникла ошибка"
19
+ "Total amount: %s","Сумма к оплате: %s"
20
+ "Transaction is registered for processing. To complete your payment please <a onclick='window.open(%s);return false;' href='#'>print receipt</a> and make payment in bank office.","Операция оплаты банковским переводом создана и находится в обработке. Для завершения операции <a onclick='window.open(%s);return false;' href='#'>распечатайте</a> бланк платежного поручения и оплатите квитанцию в любом российском банке."
21
+ "Transaction is registered for processing. To complete your payment please <a target=""_blank"" href=""https://%s/mailofrussiablank.htm?operationId=%s"">print post ticket</a> and proceed with payment in any <a target=""_blank"" href=""http://www.russianpost.ru"">Russian Post</a> post office.To view post ticket in PDF format you should have a program <a target=""_blank"" href=""http://get.adobe.com/reader/"">Adobe Acrobat Reader</a> installed.","Операция оплаты почтовым переводом создана и находится в обработке. Для завершения операции <a target=""_blank"" href=""https://www.payanyway.ru/mailofrussiablank.htm?operationId=%transaction%"">распечатайте</a> бланк почтового перевода и проведите электронный платеж в любом отделении связи <a target=""_blank"" href=""http://www.russianpost.ru"">Почты России</a>. Для просмотра бланка в формате PDF необходимо иметь установленную на Вашем компьютере программу <a target=""_blank"" href=""http://get.adobe.com/reader/"">Adobe Acrobat Reader.</a>"
22
+
23
+ "Contract number for CiberPay is: %s","Для оплаты через CiberPay номер счета для пополнения: %s"
24
+ "Transaction is registered. Please proceed payment with CiberPay system using following <b>MONETA.RU</b> account number:","Операция создана, но не оплачена. Для завершения операции Вам необходимо произвести перечисление средств в систему <b>МОНЕТА.РУ</b> через CiberPay, используя вместо номера счета для пополнения данный код:"
25
+ "Contract number for ComePay is: %s","Для оплаты в ComePay номер счета для пополнения: %s"
26
+ "Transaction is registered. Please proceed payment with ComePay cash payment terminals using following <b>PayAnyWay</b> account number:","Операция создана, но не оплачена. Для завершения операции Вам необходимо произвести перечисление средств в систему <b>PayAnyWay</b> через терминалы ComePay, используя данный код:"
27
+ "Contract number for Contact is: %s","Для оплаты в системе Contact номер счета для пополнения: %s"
28
+ "Transaction is registered. Please proceed payment with Contact payment system using following <b>MONETA.RU</b> account number:","Операция создана, но не оплачена. Для завершения операции Вам необходимо произвести перечисление средств в систему <b>МОНЕТА.РУ</b> через систему Contact, используя вместо номера счета для пополнения данный код:"
29
+ "Contract number for Elecsnet is: %s","Для оплаты в Элекснет номер счета для пополнения: %s"
30
+ "Transaction is registered. Please proceed payment with Elecsnet cash payment terminals using following <b>PayAnyWay</b> account number:","Операция создана, но не оплачена. Для завершения операции Вам необходимо произвести перечисление средств в систему <b>PayAnyWay</b> через терминалы Элекснет, используя данный код:"
31
+ "Contract number for Euroset is: %s","Для оплаты через Евросеть номер счета для пополнения: %s"
32
+ "Transaction is registered. Please proceed payment with Euroset using following <b>PayAnyWay</b> account number:","Операция создана, но не оплачена. Для завершения операции Вам необходимо произвести перечисление средств в систему <b>PayAnyWay</b> через Евросеть, используя данный код:"
33
+ "Contract number for Federal system GOROD is: %s","Для оплаты через Федеральную Систему ГОРОД номер счета для пополнения: %s"
34
+ "Transaction is registered. Please proceed payment with Federal system GOROD using following <b>PayAnyWay</b> account number:","Операция создана, но не оплачена. Для завершения операции Вам необходимо произвести перечисление средств в систему <b>PayAnyWay</b> через Федеральную Систему ГОРОД, используя данный код:"
35
+ "Contract number for Forward Mobile is: %s","Для оплаты через Форвард Мобайл номер счета для пополнения: %s"
36
+ "Transaction is registered. Please proceed payment with Forward Mobile system using following <b>MONETA.RU</b> account number:","Операция создана, но не оплачена. Для завершения операции Вам необходимо произвести перечисление средств в систему <b>МОНЕТА.РУ</b> через Форвард Мобайл, используя вместо номера счета для пополнения данный код:"
37
+ "Contract number for MosCreditBank is: %s","Для оплаты через терминалы МосКредитБанка номер счета для пополнения: %s"
38
+ "Transaction is registered. Please proceed payment with MosCreditBank cash payment terminals using following <b>MONETA.RU</b> account number:","Операция создана, но не оплачена. Для завершения операции Вам необходимо произвести перечисление средств в систему <b>МОНЕТА.РУ</b> через терминалы Московского Кредитного Банка, используя вместо номера счета для пополнения данный код:"
39
+ "Contract number for NovoPlat is: %s","Для оплаты через NovoPlat номер счета для пополнения: %s"
40
+ "Transaction is registered. Please proceed payment with NovoPlat system using following <b>PayAnyWay</b> account number:","Операция создана, но не оплачена. Для завершения операции Вам необходимо произвести перечисление средств в систему <b>PayAnyWay</b> через NovoPlat, используя данный код:"
41
+ "Contract number for PLATiKA is: %s","Для оплаты через PLATiKA номер счета для пополнения: %s"
42
+ "Transaction is registered. Please proceed payment with PLATiKA system using following <b>MONETA.RU</b> account number:","Операция создана, но не оплачена. Для завершения операции Вам необходимо произвести перечисление средств в систему <b>МОНЕТА.РУ</b> через систему PLATiKA, используя вместо номера счета для пополнения данный код:"
43
+ "Contract number for Sberbank is: %s","Для оплаты через Сбербанк номер счета для пополнения: %s"
44
+ "Transaction is registered. Please proceed payment with Sberbank using following <b>MONETA.RU</b> account number:","Операция создана, но не оплачена. Для завершения операции Вам необходимо произвести перечисление средств в систему <b>МОНЕТА.РУ</b> через Сбербанк, используя вместо номера счета для пополнения данный код:"
45
+ "Or click on <a href=""https://online.sberbank.ru/PhizIC/private/payments/servicesPayments/edit.do?recipient=113368&field(_TCM_IDENT_WlsZid1)=%s"">link</a> to pay by SberbankOnline.","Вы также можете перейти по <a href=""https://online.sberbank.ru/PhizIC/private/payments/servicesPayments/edit.do?recipient=113368&amp;field(_TCM_IDENT_WlsZid1)=%transaction%"">ссылке</a> для оплаты с помощью системы СбербанкОнлайн."
46
+
47
+ "Internet-bank login","Логин в интернет-банке"
48
+ "Payment purpose","Назначение платежа"
49
+ "E-mail in Money@Mail.Ru","E-mail в Money@Mail.Ru"
50
+ "Phone number formatted as 10 digits, w/o +7 or 8","Номер телефона в формате: 10 цифр, без +7 или 8"
51
+ "Comment","Комментарий"
52
+
53
+ "Canceled by payment system.","Отменено платежной системой."
package.xml CHANGED
@@ -1,19 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Paw_Payanyway</name>
4
- <version>1.2.0</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License ( GPL )</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>&#x41E;&#x444;&#x438;&#x446;&#x438;&#x430;&#x43B;&#x44C;&#x43D;&#x44B;&#x439; &#x43C;&#x43E;&#x434;&#x443;&#x43B;&#x44C; &#x43E;&#x43F;&#x43B;&#x430;&#x442;&#x44B; PayAnyWay</summary>
10
  <description>&#x41E;&#x444;&#x438;&#x446;&#x438;&#x430;&#x43B;&#x44C;&#x43D;&#x44B;&#x439; &#x43C;&#x43E;&#x434;&#x443;&#x43B;&#x44C; &#x43E;&#x43F;&#x43B;&#x430;&#x442;&#x44B; PayAnyWay</description>
11
- <notes>&#x418;&#x441;&#x43F;&#x440;&#x430;&#x432;&#x43B;&#x435;&#x43D;&#x430; &#x43E;&#x43F;&#x43B;&#x430;&#x442;&#x430; &#x431;&#x430;&#x43D;&#x43A;&#x43E;&#x432;&#x441;&#x43A;&#x438;&#x43C; &#x43F;&#x435;&#x440;&#x435;&#x432;&#x43E;&#x434;&#x43E;&#x43C;.&#xD;
12
- &#x414;&#x43E;&#x431;&#x430;&#x432;&#x43B;&#x435;&#x43D;&#x430; &#x432;&#x43E;&#x437;&#x43C;&#x43E;&#x436;&#x43D;&#x43E;&#x441;&#x442;&#x44C; &#x43E;&#x43F;&#x43B;&#x430;&#x442;&#x44B; &#x43F;&#x43E; &#x43F;&#x435;&#x440;&#x432;&#x43E;&#x43C;&#x443; &#x432;&#x430;&#x440;&#x438;&#x430;&#x43D;&#x442;&#x443; &#x43F;&#x43E;&#x434;&#x43A;&#x43B;&#x44E;&#x447;&#x435;&#x43D;&#x438;&#x44F;.</notes>
 
13
  <authors><author><name>PayAnyWay</name><user>techsupport</user><email>tech.support@moneta.ru</email></author></authors>
14
- <date>2013-11-21</date>
15
- <time>09:48:38</time>
16
- <contents><target name="magecommunity"><dir name="Paw"><dir name="Payanyway"><dir name="Block"><file name="Form.php" hash="df76f48208bd735a804e917ee64117d8"/><file name="Info.php" hash="2b628e593b9ca16fc10f2ae586411aee"/><file name="Invoice.php" hash="84058e7c602de29cd66311ef1455fa76"/><file name="Payment.php" hash="d0a0bd19bf4c56f50eaa076b7f822259"/><file name="Redirect.php" hash="370cc2a41a09a266e77e1fe1e83074d8"/></dir><dir name="Helper"><file name="Data.php" hash="7f52c8d342bb06c56e86fd2f9c99b164"/></dir><dir name="Model"><file name="Abstract.php" hash="981e134b4a79d6b5de67df95ba4d1ea6"/><file name="Alfaclick.php" hash="61b1294a2e5fc4118656bc0802779ca1"/><file name="Banktransfer.php" hash="e6caf63d43db8d28c3fde916290e96c0"/><file name="Ciberpay.php" hash="77e12ec55721c4e107093aeae44346e6"/><file name="Comepay.php" hash="e01055197ee66ce7343d8055cb513a4a"/><file name="Contact.php" hash="41eb628aec1f6e40695fe531818d91db"/><file name="Dengimail.php" hash="920ad0fc40ceb855394a73be0764e6f3"/><file name="Elecsnet.php" hash="baedd0e11c8cbf6a08fdb4c224c1f40f"/><file name="Euroset.php" hash="a8122b70f16ba756a98b3e4f2fe1013e"/><file name="Event.php" hash="284eb1cc479675138b9e3a8dd0fbf83c"/><file name="Faktura.php" hash="726180dc969f9a557f1245b52240dee7"/><file name="Forward.php" hash="9711861ca7d4c0f89da93574ac7153a3"/><file name="Gorod.php" hash="6d528bf8774a8e6abdf2a5f7198f8d10"/><file name="Mcb.php" hash="7066b052d64ab94b03c7d2f2848056c1"/><file name="Moneta.php" hash="71fa31664795dd504d4a2e9030486177"/><file name="Moneymail.php" hash="720047a03d5bfd0ee99a4ebb8bbfc5de"/><file name="Novoplat.php" hash="cb64858508b8def485a7a1419f92e7cc"/><file name="Payanyway.php" hash="e29545fc97ae345599226b44ea3fdb61"/><file name="Paymentaction.php" hash="c4b105a85c2e790d83a37da218c62c53"/><file name="Plastic.php" hash="0754fff16b17be7d08425a3006df6213"/><file name="Platika.php" hash="6572b6fef59d29f6a219c26b4b4b9ad7"/><file name="Post.php" hash="6a57d2a2a10496518b4220b4e7318c67"/><file name="Psb.php" hash="6792f51fcfec041984b37cfa08997090"/><file name="Qiwi.php" hash="7cdf37fcd4584d5bd1df18a1c5804f4d"/><file name="Walletone.php" hash="797645a533310198a93196ce33df8c5d"/><file name="Webmoney.php" hash="c33d780265d4b6fd998af5d6f33ccb4a"/><file name="Yandex.php" hash="372eb0c87de10638e154821444c389eb"/><file name="event.log" hash="7fcca051a5e7a911a1d912ae3f33ad00"/></dir><dir name="controllers"><dir name="Moneta"><file name="MonetaDataTypes.php" hash="cf0857dbf8a4c74eff98017d0da40dd2"/><file name="MonetaWebService.php" hash="889c253a430e5956ca55b3b9d9687da0"/><file name="MonetaWebServiceConnector.php" hash="c9985f8e9d3984741c8c52ce93a32d35"/></dir><file name="PayanywayController.php" hash="b5344b45c00b7959d1b730cabf88980d"/><file name="ProcessingController.php" hash="e92a4aa282ee73e4fa93dd2959bbd071"/></dir><dir name="etc"><file name="config.xml" hash="aacde41871cbb5aa02e72da9de8ef6c7"/><file name="system.xml" hash="509f788e9e96190bc90cb6771d92dde9"/></dir><dir name="sql"><dir name="payanyway_setup"><file name="install-1.0.0.php" hash="0aacd80f284ed3a5a1636e5be43f12c9"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="payanyway"><file name="info.phtml" hash="f4705a0a1a82b6fb3f4f15af222313bb"/><dir name="pdf"><file name="info.phtml" hash="271c876ed4c4e832aa29bf784cdb5f09"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="payanyway.xml" hash="8898264e3ddccccd8f4f444d04b9ab09"/></dir><dir name="template"><dir name="payanyway"><file name="blank.phtml" hash="fd9319bcde8790cb9152773ff4271ca2"/><file name="form.phtml" hash="18d416c9e37373b2f8f166003e9b058d"/><file name="info.phtml" hash="6d1a1093ba31a14d7d9d0d1011e27fd1"/><file name="invoice.phtml" hash="6c0cf63c1f95a9fa846cd49facd8a93a"/><file name="payment.phtml" hash="16373ad445d0e94e6d9c80bb0796f880"/><file name="redirect.phtml" hash="76db44a3ba52b7a221bd5411841249fa"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Paw_Payanyway.xml" hash="2aeb675d424ddd1ed6e44f3791b9ea4d"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Paw_Payanyway.csv" hash="1293a3d4fee086eb1dcbdedc427d8a77"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><file name="validate.js" hash=""/></dir><dir name="images"><dir name="payanyway"><file name="alfaclick.jpg" hash="8096aeebb56a00079dbc492e7a622268"/><file name="banktransfer.jpg" hash="e3b59a2f0f1b47c58986478d5433fa05"/><file name="contact.jpg" hash="9c0007046efca8f14434d68b054f73a0"/><file name="elecsnet.jpg" hash="31a033c33e4700b9e8b26dd379a2d7ca"/><file name="euroset.png" hash="752141fa3dbddc06c60b7e9840060f0f"/><file name="forward.jpg" hash="b478da4ece530cec110fba0aaa6c82d3"/><file name="gorod.jpg" hash="aea243c9c807bb94eadb33b8682ddfca"/><file name="mastercard.png" hash="a633a924323e8d70f91dbfc08f647949"/><file name="mcb.jpg" hash="84a7eea77c55822924e2f286789a1bba"/><file name="moneta.jpg" hash="54ffcd3b80e499b9869650cbef369073"/><file name="payanyway.jpg" hash="1574f46268f3dcf2d9b87dbcbda49a2d"/><file name="post.jpg" hash="dac7a7e4c895599ae4dbd495638b76c2"/><file name="psb.jpg" hash="75713bfc990daa9821ad4be5e4ea6caa"/><file name="visa.jpg" hash="fdff0c54b639e7aa5037f9c80ef27cfc"/><file name="webmoney.jpg" hash="e301edd858914b9aad72acfb2a1a595f"/><file name="yandex.jpg" hash="d42c6a9f942cb9d2efbcef6170d95c1b"/></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><extension><name>soap</name><min></min><max></max></extension><extension><name>libxml</name><min></min><max></max></extension></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Paw_Payanyway</name>
4
+ <version>1.3.0</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License ( GPL )</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>&#x41E;&#x444;&#x438;&#x446;&#x438;&#x430;&#x43B;&#x44C;&#x43D;&#x44B;&#x439; &#x43C;&#x43E;&#x434;&#x443;&#x43B;&#x44C; &#x43E;&#x43F;&#x43B;&#x430;&#x442;&#x44B; PayAnyWay</summary>
10
  <description>&#x41E;&#x444;&#x438;&#x446;&#x438;&#x430;&#x43B;&#x44C;&#x43D;&#x44B;&#x439; &#x43C;&#x43E;&#x434;&#x443;&#x43B;&#x44C; &#x43E;&#x43F;&#x43B;&#x430;&#x442;&#x44B; PayAnyWay</description>
11
+ <notes>- &#x414;&#x43E;&#x431;&#x430;&#x432;&#x43B;&#x435;&#x43D;&#x430; &#x43E;&#x431;&#x440;&#x430;&#x431;&#x43E;&#x442;&#x43A;&#x430; &#x437;&#x430;&#x43F;&#x440;&#x43E;&#x441;&#x430; &#x43F;&#x43E;&#x441;&#x43B;&#x435; &#x43E;&#x442;&#x43C;&#x435;&#x43D;&#x44B; &#x437;&#x430;&#x447;&#x438;&#x441;&#x43B;&#x435;&#x43D;&#x438;&#x44F; &#x441;&#x440;&#x435;&#x434;&#x441;&#x442;&#x432;.&#xD;
12
+ - &#x414;&#x43E;&#x431;&#x430;&#x432;&#x43B;&#x435;&#x43D;&#x430; &#x43E;&#x43F;&#x43B;&#x430;&#x442;&#x430; &#x447;&#x435;&#x440;&#x435;&#x437; &#x421;&#x431;&#x435;&#x440;&#x431;&#x430;&#x43D;&#x43A;&#xD;
13
+ - &#x418;&#x441;&#x43F;&#x440;&#x430;&#x432;&#x43B;&#x435;&#x43D;&#x44B; &#x43E;&#x43F;&#x43B;&#x430;&#x442;&#x44B; &#x447;&#x435;&#x440;&#x435;&#x437; &#x415;&#x432;&#x440;&#x43E;&#x441;&#x435;&#x442;&#x44C; &#x438; &#x41F;&#x43E;&#x447;&#x442;&#x443; &#x420;&#x43E;&#x441;&#x441;&#x438;&#x438;.</notes>
14
  <authors><author><name>PayAnyWay</name><user>techsupport</user><email>tech.support@moneta.ru</email></author></authors>
15
+ <date>2013-12-04</date>
16
+ <time>12:56:10</time>
17
+ <contents><target name="magecommunity"><dir name="Paw"><dir name="Payanyway"><dir name="Block"><file name="Form.php" hash="df76f48208bd735a804e917ee64117d8"/><file name="Info.php" hash="2b628e593b9ca16fc10f2ae586411aee"/><file name="Invoice.php" hash="e9407f01e8656aed7df40bfb534005a9"/><file name="Payment.php" hash="d0a0bd19bf4c56f50eaa076b7f822259"/><file name="Redirect.php" hash="370cc2a41a09a266e77e1fe1e83074d8"/></dir><dir name="Helper"><file name="Data.php" hash="7f52c8d342bb06c56e86fd2f9c99b164"/></dir><dir name="Model"><file name="Abstract.php" hash="4ea2ce10a80d13540a1bed75998c22e5"/><file name="Alfaclick.php" hash="61b1294a2e5fc4118656bc0802779ca1"/><file name="Banktransfer.php" hash="e6caf63d43db8d28c3fde916290e96c0"/><file name="Ciberpay.php" hash="77e12ec55721c4e107093aeae44346e6"/><file name="Comepay.php" hash="e01055197ee66ce7343d8055cb513a4a"/><file name="Contact.php" hash="41eb628aec1f6e40695fe531818d91db"/><file name="Dengimail.php" hash="920ad0fc40ceb855394a73be0764e6f3"/><file name="Elecsnet.php" hash="baedd0e11c8cbf6a08fdb4c224c1f40f"/><file name="Euroset.php" hash="eb6ef22a6f749c48c29a12215a5ff0fb"/><file name="Event.php" hash="9c90e5971ff524d986c56b6ed500b779"/><file name="Faktura.php" hash="726180dc969f9a557f1245b52240dee7"/><file name="Forward.php" hash="9711861ca7d4c0f89da93574ac7153a3"/><file name="Gorod.php" hash="6d528bf8774a8e6abdf2a5f7198f8d10"/><file name="Mcb.php" hash="7066b052d64ab94b03c7d2f2848056c1"/><file name="Moneta.php" hash="71fa31664795dd504d4a2e9030486177"/><file name="Moneymail.php" hash="720047a03d5bfd0ee99a4ebb8bbfc5de"/><file name="Novoplat.php" hash="cb64858508b8def485a7a1419f92e7cc"/><file name="Payanyway.php" hash="e29545fc97ae345599226b44ea3fdb61"/><file name="Paymentaction.php" hash="c4b105a85c2e790d83a37da218c62c53"/><file name="Plastic.php" hash="0754fff16b17be7d08425a3006df6213"/><file name="Platika.php" hash="6572b6fef59d29f6a219c26b4b4b9ad7"/><file name="Post.php" hash="e0a6e296c2202c9bae9f9e9b2a19e64f"/><file name="Psb.php" hash="6792f51fcfec041984b37cfa08997090"/><file name="Qiwi.php" hash="7cdf37fcd4584d5bd1df18a1c5804f4d"/><file name="Sberbank.php" hash="53d31bdd1a3d05f4d0910ebd98889372"/><file name="Walletone.php" hash="797645a533310198a93196ce33df8c5d"/><file name="Webmoney.php" hash="c33d780265d4b6fd998af5d6f33ccb4a"/><file name="Yandex.php" hash="372eb0c87de10638e154821444c389eb"/></dir><dir name="controllers"><dir name="Moneta"><file name="MonetaDataTypes.php" hash="cf0857dbf8a4c74eff98017d0da40dd2"/><file name="MonetaWebService.php" hash="889c253a430e5956ca55b3b9d9687da0"/><file name="MonetaWebServiceConnector.php" hash="c9985f8e9d3984741c8c52ce93a32d35"/></dir><file name="PayanywayController.php" hash="b5344b45c00b7959d1b730cabf88980d"/><file name="ProcessingController.php" hash="fb4ce0ac531fcca5757847d4e6f179d5"/></dir><dir name="etc"><file name="config.xml" hash="3cbdad636dd386456dfbc28ca1a1b096"/><file name="system.xml" hash="a901eb72e22a183a1e2c46d24ba9ec35"/></dir><dir name="sql"><dir name="payanyway_setup"><file name="install-1.0.0.php" hash="0aacd80f284ed3a5a1636e5be43f12c9"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="payanyway"><file name="info.phtml" hash="f4705a0a1a82b6fb3f4f15af222313bb"/><dir name="pdf"><file name="info.phtml" hash="271c876ed4c4e832aa29bf784cdb5f09"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="payanyway.xml" hash="97b7894f4c63a94d99819d0abeb0dd48"/></dir><dir name="template"><dir name="payanyway"><file name="blank.phtml" hash="fd9319bcde8790cb9152773ff4271ca2"/><file name="form.phtml" hash="fba6041bafb8b7721e97846838c72f4b"/><file name="info.phtml" hash="7092c39f51ae9a647f0febdabdd649cc"/><file name="invoice.phtml" hash="add46a191cce2f4a93d0817a2261482d"/><file name="payment.phtml" hash="face9d6d56b6d064ccb6705dfbc6d58f"/><file name="redirect.phtml" hash="76db44a3ba52b7a221bd5411841249fa"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Paw_Payanyway.xml" hash="2aeb675d424ddd1ed6e44f3791b9ea4d"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Paw_Payanyway.csv" hash="4cbdaf5eb3ae511d16b26799b7a17bc1"/></dir><dir name="ru_RU"><file name="Paw_Payanyway.csv" hash="71987dd9349af2a128432a02429f7a48"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><file name="validation.js" hash="8fedc2f2067d43217c16a89f905584eb"/></dir><dir name="images"><dir name="payanyway"><file name="alfaclick.jpg" hash="8096aeebb56a00079dbc492e7a622268"/><file name="banktransfer.jpg" hash="e3b59a2f0f1b47c58986478d5433fa05"/><file name="contact.jpg" hash="9c0007046efca8f14434d68b054f73a0"/><file name="elecsnet.jpg" hash="31a033c33e4700b9e8b26dd379a2d7ca"/><file name="euroset.png" hash="752141fa3dbddc06c60b7e9840060f0f"/><file name="forward.jpg" hash="b478da4ece530cec110fba0aaa6c82d3"/><file name="gorod.jpg" hash="aea243c9c807bb94eadb33b8682ddfca"/><file name="mastercard.png" hash="a633a924323e8d70f91dbfc08f647949"/><file name="mcb.jpg" hash="84a7eea77c55822924e2f286789a1bba"/><file name="moneta.jpg" hash="54ffcd3b80e499b9869650cbef369073"/><file name="payanyway.jpg" hash="1574f46268f3dcf2d9b87dbcbda49a2d"/><file name="post.jpg" hash="dac7a7e4c895599ae4dbd495638b76c2"/><file name="psb.jpg" hash="75713bfc990daa9821ad4be5e4ea6caa"/><file name="sberbank.jpg" hash="3fadf12cc4606b433c461a55eba0e667"/><file name="visa.jpg" hash="fdff0c54b639e7aa5037f9c80ef27cfc"/><file name="webmoney.jpg" hash="e301edd858914b9aad72acfb2a1a595f"/><file name="yandex.jpg" hash="d42c6a9f942cb9d2efbcef6170d95c1b"/></dir></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><extension><name>soap</name><min></min><max></max></extension><extension><name>libxml</name><min></min><max></max></extension></required></dependencies>
20
  </package>
skin/frontend/base/default/images/payanyway/sberbank.jpg ADDED
Binary file
skin/frontend/base/default/js/validation.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ Validation.add('validate-rapidaphone', 'Please enter a valid phone number.', function(v) {
2
+ return Validation.get('IsEmpty').test(v) || /^(\+)(\d|\s|\(|\)){10,20}$/.test(v);
3
+ });
4
+ Validation.add('validate-qiwiuser', 'Please enter a valid phone number.', function(v) {
5
+ return Validation.get('IsEmpty').test(v) || /^[0-9]{10}$/.test(v);
6
+ });