o2ti_moip - Version 1.0.4

Version Notes

Update - Nasp Return transition

Download this release

Release Info

Developer O2TI
Extension o2ti_moip
Version 1.0.4
Comparing to
See all releases


Code changes from version 1.0.3 to 1.0.4

app/code/local/O2TI/Moip/Block/Standard/Form.php CHANGED
@@ -121,7 +121,7 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
121
  }
122
  if ($dataToReturn == 'preview') {
123
  return $textoresumo;
124
- } else if (!$validateBoleto['error']) {
125
  return $descontotexto;
126
  }
127
  }
@@ -150,7 +150,7 @@ class O2TI_Moip_Block_Standard_Form extends Mage_Payment_Block_Form {
150
  }
151
  if ($dataToReturn == 'preview') {
152
  return $textoresumo;
153
- } else if (!$validateBoleto['error']) {
154
  return $descontotexto;
155
  }
156
  }
121
  }
122
  if ($dataToReturn == 'preview') {
123
  return $textoresumo;
124
+ } else if ($dataToReturn == "texto" ) {
125
  return $descontotexto;
126
  }
127
  }
150
  }
151
  if ($dataToReturn == 'preview') {
152
  return $textoresumo;
153
+ } else if ($dataToReturn == "texto") {
154
  return $descontotexto;
155
  }
156
  }
app/code/local/O2TI/Moip/Block/Standard/O do raul Redirect.php DELETED
@@ -1,131 +0,0 @@
1
- <?php
2
- class O2TI_Moip_Block_Standard_Redirect extends Mage_Sales_Block_Order_Totals{
3
- public $data = $this->getRequest()->getParams();
4
- public $token = '';
5
- public $moipToken = Mage::registry('token');
6
- public $tokenpagamento = '';
7
- public $refazerpagamento = '';
8
- public $xmlgerado = Mage::registry('xml');
9
- public $standard = Mage::getSingleton('moip/standard');
10
- public $sale_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
11
- public $realorder_id = Mage::getSingleton('checkout/session')->getLastOrderId();
12
- public $order = Mage::getModel('sales/order')->load($this->realorder_id);
13
- public $address = Mage::getModel('sales/order_address')->load($shippingId);
14
- protected $urldosite = Mage::getBaseUrl('web', true);
15
- public $totalparaparcelado = $order->getGrandTotal();
16
-
17
-
18
- public function __construct() {
19
- parent::__construct();
20
-
21
- if (Mage::registry('erro') !="") {
22
- echo Mage::registry('erro');
23
- Mage::log(Mage::registry('erro'), null, 'O2TI_Moip.log', true);
24
- Mage::log(Mage::registry('xml'), null, 'O2TI_Moip.log', true);
25
- }
26
-
27
- if (!$this->data['token']) {
28
- //primeira compra grava os dados.
29
- if (!$this->moipToken) {
30
- $url = $this->moipToken;
31
- $xml_sent = (string)$this->xmlgerado;
32
- $session = Mage::getSingleton('customer/session');
33
- $customer = $session->getCustomer();
34
- if ($this->order->getIsVirtual()) {
35
- $shippingId = $this->order->getBillingAddress()->getId();
36
- }
37
- else {
38
- $shippingId = $this->order->getShippingAddress()->getId();
39
- }
40
- $status = "Sucesso";
41
- $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
42
- $sql = "SELECT *
43
- FROM moip
44
- WHERE sale_id IN (".$this->sale_id.") AND status ='Sucesso'";
45
- $_venda = $connR->fetchAll($sql);
46
- foreach ($_venda as $venda) {
47
- $tokenpagamento = $venda['xml_return'];
48
- }
49
- if ($tokenpagamento == "") {
50
- $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
51
- $results = $conn->query("INSERT INTO `moip` (`transaction_id` ,`realorder_id` ,`sale_id` ,`xml_sent` ,`xml_return` ,`status` ,`formapg` ,`bandeira` ,`digito` ,`vencimento` ,`datetime`) VALUES (NULL , '".$this->realorder_id."', '".$this->sale_id."', '".$xml_sent."', '".$this->moipToken."', '".$status."', '".$opcaopg['forma_pagamento']."', '".$bandeira."', '', '".$vencpedido."', '".date('Y-m-d H:i:s')."');");
52
- $tokenpagamento = $this->moipToken;
53
- $url = $this->moipToken;
54
- }
55
- }
56
- else {
57
- //usado para o reload da pagina pelos infelizes clientes que navegam com ie.
58
- $tokenpagamento = $this->moipToken;
59
- $url = $tokenpagamento;
60
- $status = "Sucesso";
61
- }
62
- }else {//refaz pedido vindo do my acocunt
63
-
64
- $LastRealOrderId = $data['realorder'];
65
- $conn = Mage::getSingleton('core/resource')->getConnection('core_read');
66
- $sql = "SELECT * FROM moip WHERE sale_id IN ({$LastRealOrderId})";
67
- $_venda = $conn->fetchAll($sql);
68
- foreach ($_venda as $venda) {
69
- $tokenpagamento = $venda['xml_return'];
70
- $url = $venda['xml_return'];
71
- $incrementId = $venda['realorder_id'];
72
- $order = $data['realorder'];
73
- $opcaopg['forma_pagamento'] = $venda['formapg'];
74
- $bandeira = $venda['bandeira'];
75
- $connRW = Mage::getSingleton('core/resource')->getConnection('core_write');
76
- $results = $connRW->query("UPDATE `moip` SET vencimento='".$vencpedido."' WHERE sale_id IN (".$LastRealOrderId.");");
77
- }
78
- $refazerpagamento = 1;
79
- $url = $venda['xml_return'];
80
- $order = Mage::getModel('sales/order')->load($incrementId);
81
- $session = Mage::getSingleton('customer/session');
82
-
83
- $oque = $order->getIsVirtual();
84
- if ($oque) {
85
- $shippingId = $order->getBillingAddress()->getId();
86
- }
87
- else {
88
- $shippingId = $order->getShippingAddress()->getId();
89
- }
90
- }
91
-
92
- $this->setTemplate("O2TI/moip/redirect.phtml");
93
- }
94
- public function getMoipUrl() {
95
- if ($enviapara == "teste") {
96
- Mage::log(Mage::registry('erro'), null, 'O2TI_Moip.log', true);
97
- Mage::log(Mage::registry('xml'), null, 'O2TI_Moip.log', true);
98
- Mage::log(Mage::registry('token'), null, 'O2TI_Moip.log', true);
99
- $urldomoip = "https://desenvolvedor.moip.com.br/sandbox";
100
- }
101
- else {
102
- $urldomoip = "https://www.moip.com.br/";
103
- }
104
- return $urldomoip;
105
- }
106
- public function getGoogleId() {
107
- return Mage::getStoreConfig('o2tiall/google/idgoogle');
108
- }
109
- public function getOpcaoPagamento() {
110
- $opcaopg = Mage::getModel('moip/api')->generatemeiopago(Mage::registry('formapg'));
111
- if ($opcaopg['forma_pagamento'] == "DebitoBancario") {
112
- $bandeira = $opcaopg['debito_instituicao'];
113
- $vencpedido = date('c', strtotime("+2 days"));
114
- }
115
- if ($opcaopg['forma_pagamento'] == "CartaoCredito" || $opcaopg['forma_pagamento'] == "Cofre") {
116
- $bandeira = $opcaopg['credito_instituicao'];
117
- $vencpedido = date('c', strtotime("+2 days"));
118
- }
119
- if ($opcaopg['forma_pagamento'] == "BoletoBancario") {
120
- $bandeira = "Bradesco";
121
- $vencpedido = $opcaopg['timevencimentoboleto'];
122
- }
123
- return array($bandeira, $vencpedido);
124
- }
125
- public function getSiteUrl(){
126
- return $this->urldosite;
127
- }
128
- public function getSalesId(){
129
- return $this->sale_id;
130
- }
131
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/O2TI/Moip/Model/Api.php CHANGED
@@ -47,7 +47,8 @@ class O2TI_Moip_Model_Api {
47
  if ($pgto['parcelamento'] == "0"):
48
  $numeropar = "1";
49
  else:
50
- $numeropar = $pgto['credito_parcelamento'][0];
 
51
  endif;
52
  if ($pgto['forma_pagamento'] == "CartaoCredito"):
53
  $formapgto .= "\"Forma\": \"".$pgto['forma_pagamento']."\",
@@ -187,7 +188,7 @@ class O2TI_Moip_Model_Api {
187
  $Complemento = utf8_encode($data['pagador_complemento']);
188
  $Bairro = utf8_encode($data['pagador_bairro']);
189
  $Cidade = utf8_encode($data['pagador_cidade']);
190
-
191
  $xml = "<EnviarInstrucao>
192
  <InstrucaoUnica TipoValidacao=\"Transparente\">
193
  <Razao>Pagamento do pedido #".$data['id_transacao']." a ". $pgto['apelido'] ."</Razao>
@@ -218,7 +219,7 @@ class O2TI_Moip_Model_Api {
218
  </EnderecoCobranca>
219
  </Pagador>
220
  <Parcelamentos>".$parcelamento2."".$parcelamento1."</Parcelamentos>
221
- <URLNotificacao>".$urldosite."index.php/Moip/standard/success/</URLNotificacao>
222
  </InstrucaoUnica>
223
  </EnviarInstrucao>
224
  ";
47
  if ($pgto['parcelamento'] == "0"):
48
  $numeropar = "1";
49
  else:
50
+ $numeropar_a = $pgto['credito_parcelamento'];
51
+ $numeropar = $numeropar_a['0'];
52
  endif;
53
  if ($pgto['forma_pagamento'] == "CartaoCredito"):
54
  $formapgto .= "\"Forma\": \"".$pgto['forma_pagamento']."\",
188
  $Complemento = utf8_encode($data['pagador_complemento']);
189
  $Bairro = utf8_encode($data['pagador_bairro']);
190
  $Cidade = utf8_encode($data['pagador_cidade']);
191
+ $validacao_nasp = $standard->getConfigData('validador_retorno');
192
  $xml = "<EnviarInstrucao>
193
  <InstrucaoUnica TipoValidacao=\"Transparente\">
194
  <Razao>Pagamento do pedido #".$data['id_transacao']." a ". $pgto['apelido'] ."</Razao>
219
  </EnderecoCobranca>
220
  </Pagador>
221
  <Parcelamentos>".$parcelamento2."".$parcelamento1."</Parcelamentos>
222
+ <URLNotificacao>".$urldosite."index.php/Moip/standard/success/validacao/".$validacao_nasp."/</URLNotificacao>
223
  </InstrucaoUnica>
224
  </EnviarInstrucao>
225
  ";
app/code/local/O2TI/Moip/controllers/StandardController.php CHANGED
@@ -75,10 +75,11 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
75
  }
76
  $this->_redirect('Moip/standard/redirect/', array('_secure' => true));
77
  } else {
78
- $data = $this->getRequest()->getPost();
 
79
  $login = $standard->getConfigData('conta_moip');
80
- $order->loadByIncrementId(ereg_replace($login, "", $data['id_transacao']));
81
- $LastRealOrderId = ereg_replace($login, "", $data['id_transacao']);
82
  $conn = Mage::getSingleton('core/resource')->getConnection('core_read');
83
  $sql = "SELECT * FROM moip WHERE sale_id IN (".$LastRealOrderId.") AND status ='Sucesso'";
84
  $_venda = $conn->fetchAll($sql);
@@ -111,7 +112,7 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
111
  }
112
  switch ($data['status_pagamento']) {
113
  case 1:
114
- if ($_SERVER['SERVER_ADDR'] == "208.82.206.66" || $_SERVER['SERVER_ADDR'] == "69.162.91.38") {
115
  $connRW = Mage::getSingleton('core/resource')->getConnection('core_write');
116
  $query = array("UPDATE `moip` SET num_parcelas='".$data['parcelas']."', ult_dig='".$data['cartao_final']."' WHERE sale_id IN (".$LastRealOrderId.");");
117
  $state = Mage_Sales_Model_Order::STATE_PROCESSING;
@@ -192,7 +193,7 @@ class O2TI_Moip_StandardController extends Mage_Core_Controller_Front_Action {
192
  if($status == 'authorized'){
193
  Mage::dispatchEvent('moip_order_authorize', array("order" => $order));
194
  }
195
- echo 'Processo de retorno concluido para o pedido #'.$data['id_transacao'];
196
  }
197
  }
198
 
75
  }
76
  $this->_redirect('Moip/standard/redirect/', array('_secure' => true));
77
  } else {
78
+ $data_validacao = Mage::app()->getRequest()->getParam('validacao');
79
+ $data = $this->getRequest()->getPost();
80
  $login = $standard->getConfigData('conta_moip');
81
+ $order->loadByIncrementId(str_replace($login, "", $data['id_transacao']));
82
+ $LastRealOrderId = str_replace($login, "", $data['id_transacao']);
83
  $conn = Mage::getSingleton('core/resource')->getConnection('core_read');
84
  $sql = "SELECT * FROM moip WHERE sale_id IN (".$LastRealOrderId.") AND status ='Sucesso'";
85
  $_venda = $conn->fetchAll($sql);
112
  }
113
  switch ($data['status_pagamento']) {
114
  case 1:
115
+ if ($data_validacao == $standard->getConfigData('validador_retorno')) {
116
  $connRW = Mage::getSingleton('core/resource')->getConnection('core_write');
117
  $query = array("UPDATE `moip` SET num_parcelas='".$data['parcelas']."', ult_dig='".$data['cartao_final']."' WHERE sale_id IN (".$LastRealOrderId.");");
118
  $state = Mage_Sales_Model_Order::STATE_PROCESSING;
193
  if($status == 'authorized'){
194
  Mage::dispatchEvent('moip_order_authorize', array("order" => $order));
195
  }
196
+ echo 'Processo de retorno concluido para o pedido #'.$data['id_transacao'].$data_validacao;
197
  }
198
  }
199
 
app/code/local/O2TI/Moip/etc/config.xml CHANGED
@@ -116,16 +116,6 @@
116
  </moip>
117
  </updates>
118
  </layout>
119
- <events>
120
- <adminhtml_block_html_before>
121
- <observers>
122
- <O2TI_Moip_OrderAuthorize>
123
- <class>moip/observer</class>
124
- <method>addOptionToSelect</method>
125
- </O2TI_Moip_OrderAuthorize>
126
- </observers>
127
- </adminhtml_block_html_before>
128
- </events>
129
  </adminhtml>
130
  <crontab>
131
  <jobs>
@@ -155,7 +145,7 @@
155
  <tipoderecebimento>1</tipoderecebimento>
156
  <pagamento_direto>1</pagamento_direto>
157
  <parcelamento>1</parcelamento>
158
- <parcelamento_de1>1</parcelamento_de1>
159
  <parcelamento_ate1>12</parcelamento_ate1>
160
  <parcelamento_juros1>1.99</parcelamento_juros1>
161
  <nummaxparcelamax>12</nummaxparcelamax>
116
  </moip>
117
  </updates>
118
  </layout>
 
 
 
 
 
 
 
 
 
 
119
  </adminhtml>
120
  <crontab>
121
  <jobs>
145
  <tipoderecebimento>1</tipoderecebimento>
146
  <pagamento_direto>1</pagamento_direto>
147
  <parcelamento>1</parcelamento>
148
+ <parcelamento_de1>2</parcelamento_de1>
149
  <parcelamento_ate1>12</parcelamento_ate1>
150
  <parcelamento_juros1>1.99</parcelamento_juros1>
151
  <nummaxparcelamax>12</nummaxparcelamax>
app/code/local/O2TI/Moip/etc/system.xml CHANGED
@@ -69,7 +69,7 @@
69
  </order_status>
70
  <conta_moip translate="label">
71
  <label>Login MoIP</label>
72
- <comment>
73
  <![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
74
  <p>Não utilize o email e sim o login.</p>
75
  </div></div>]]>
@@ -80,10 +80,33 @@
80
  <show_in_website>1</show_in_website>
81
  <show_in_store>1</show_in_store>
82
  </conta_moip>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  <apelido translate="label">
84
  <label>Nome Fantasia da Loja</label>
85
  <frontend_type>text</frontend_type>
86
- <sort_order>5</sort_order>
87
  <show_in_default>1</show_in_default>
88
  <show_in_website>1</show_in_website>
89
  <show_in_store>1</show_in_store>
@@ -96,7 +119,7 @@
96
  </comment>
97
  <frontend_type>select</frontend_type>
98
  <source_model>adminhtml/system_config_source_yesno</source_model>
99
- <sort_order>6</sort_order>
100
  <show_in_default>1</show_in_default>
101
  <show_in_website>1</show_in_website>
102
  <show_in_store>1</show_in_store>
@@ -105,7 +128,7 @@
105
  <label>Usar Transparente</label>
106
  <frontend_type>select</frontend_type>
107
  <source_model>adminhtml/system_config_source_yesno</source_model>
108
- <sort_order>6</sort_order>
109
  <show_in_default>1</show_in_default>
110
  <show_in_website>1</show_in_website>
111
  <show_in_store>1</show_in_store>
@@ -114,7 +137,7 @@
114
  <label>Formas de Pagamento</label>
115
  <frontend_type>multiselect</frontend_type>
116
  <source_model>O2TI_Moip_Model_Source_FormasPagamento</source_model>
117
- <sort_order>7</sort_order>
118
  <show_in_default>1</show_in_default>
119
  <show_in_website>1</show_in_website>
120
  <show_in_store>1</show_in_store>
@@ -123,7 +146,7 @@
123
  <label>Ativar parcelamento?</label>
124
  <frontend_type>select</frontend_type>
125
  <source_model>adminhtml/system_config_source_yesno</source_model>
126
- <sort_order>8</sort_order>
127
  <show_in_default>1</show_in_default>
128
  <show_in_website>1</show_in_website>
129
  <show_in_store>1</show_in_store>
@@ -131,7 +154,7 @@
131
  <parcelamento_de1 translate="label">
132
  <label>1° - Parcelas de:</label>
133
  <frontend_type>text</frontend_type>
134
- <sort_order>10</sort_order>
135
  <show_in_default>1</show_in_default>
136
  <show_in_website>1</show_in_website>
137
  <show_in_store>1</show_in_store>
@@ -139,7 +162,7 @@
139
  <parcelamento_ate1 translate="label">
140
  <label>1° - Parcelas até:</label>
141
  <frontend_type>text</frontend_type>
142
- <sort_order>11</sort_order>
143
  <show_in_default>1</show_in_default>
144
  <show_in_website>1</show_in_website>
145
  <show_in_store>1</show_in_store>
@@ -151,7 +174,7 @@
151
  </div></div>]]>
152
  </comment>
153
  <frontend_type>text</frontend_type>
154
- <sort_order>12</sort_order>
155
  <show_in_default>1</show_in_default>
156
  <show_in_website>1</show_in_website>
157
  <show_in_store>1</show_in_store>
@@ -163,7 +186,7 @@
163
  </div></div>]]>
164
  </comment>
165
  <frontend_type>text</frontend_type>
166
- <sort_order>13</sort_order>
167
  <show_in_default>1</show_in_default>
168
  <show_in_website>1</show_in_website>
169
  <show_in_store>1</show_in_store>
@@ -175,7 +198,7 @@
175
  </div></div>]]>
176
  </comment>
177
  <frontend_type>text</frontend_type>
178
- <sort_order>14</sort_order>
179
  <show_in_default>1</show_in_default>
180
  <show_in_website>1</show_in_website>
181
  <show_in_store>1</show_in_store>
@@ -187,7 +210,7 @@
187
  </div></div>]]>
188
  </comment>
189
  <frontend_type>text</frontend_type>
190
- <sort_order>15</sort_order>
191
  <show_in_default>1</show_in_default>
192
  <show_in_website>1</show_in_website>
193
  <show_in_store>1</show_in_store>
@@ -200,24 +223,16 @@
200
  </div></div>]]>
201
  </comment>
202
  <frontend_type>text</frontend_type>
203
- <sort_order>16</sort_order>
204
  <show_in_default>1</show_in_default>
205
  <show_in_website>1</show_in_website>
206
  <show_in_store>1</show_in_store>
207
  </estoqueboleto>
208
- <ambiente translate="label">
209
- <label>Ambiente</label>
210
- <frontend_type>select</frontend_type>
211
- <source_model>O2TI_Moip_Model_Source_Ambiente</source_model>
212
- <sort_order>19</sort_order>
213
- <show_in_default>1</show_in_default>
214
- <show_in_website>1</show_in_website>
215
- <show_in_store>1</show_in_store>
216
- </ambiente>
217
  <allowspecific translate="label">
218
  <label>Pagamento a partir de países aplicáveis</label>
219
  <frontend_type>allowspecific</frontend_type>
220
- <sort_order>20</sort_order>
221
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
222
  <show_in_default>1</show_in_default>
223
  <show_in_website>1</show_in_website>
69
  </order_status>
70
  <conta_moip translate="label">
71
  <label>Login MoIP</label>
72
+ <comment>
73
  <![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
74
  <p>Não utilize o email e sim o login.</p>
75
  </div></div>]]>
80
  <show_in_website>1</show_in_website>
81
  <show_in_store>1</show_in_store>
82
  </conta_moip>
83
+ <ambiente translate="label">
84
+ <label>Ambiente</label>
85
+ <comment>
86
+ <![CDATA[<br /><div class="custom-options"><div class="box" style="width:243px;">
87
+ <p>Ambiente de teste só pode ser usado pela O2TI.</p>
88
+ </div></div>]]>
89
+ </comment>
90
+ <frontend_type>select</frontend_type>
91
+ <source_model>O2TI_Moip_Model_Source_Ambiente</source_model>
92
+ <sort_order>5</sort_order>
93
+ <show_in_default>1</show_in_default>
94
+ <show_in_website>1</show_in_website>
95
+ <show_in_store>1</show_in_store>
96
+ </ambiente>
97
+ <validador_retorno>
98
+ <label>Chave de validacao para o retorno do Status</label>
99
+ <comment>Informe um código que será analisado no retorno</comment>
100
+ <frontend_type>text</frontend_type>
101
+ <sort_order>6</sort_order>
102
+ <show_in_default>1</show_in_default>
103
+ <show_in_website>1</show_in_website>
104
+ <show_in_store>1</show_in_store>
105
+ </validador_retorno>
106
  <apelido translate="label">
107
  <label>Nome Fantasia da Loja</label>
108
  <frontend_type>text</frontend_type>
109
+ <sort_order>7</sort_order>
110
  <show_in_default>1</show_in_default>
111
  <show_in_website>1</show_in_website>
112
  <show_in_store>1</show_in_store>
119
  </comment>
120
  <frontend_type>select</frontend_type>
121
  <source_model>adminhtml/system_config_source_yesno</source_model>
122
+ <sort_order>8</sort_order>
123
  <show_in_default>1</show_in_default>
124
  <show_in_website>1</show_in_website>
125
  <show_in_store>1</show_in_store>
128
  <label>Usar Transparente</label>
129
  <frontend_type>select</frontend_type>
130
  <source_model>adminhtml/system_config_source_yesno</source_model>
131
+ <sort_order>9</sort_order>
132
  <show_in_default>1</show_in_default>
133
  <show_in_website>1</show_in_website>
134
  <show_in_store>1</show_in_store>
137
  <label>Formas de Pagamento</label>
138
  <frontend_type>multiselect</frontend_type>
139
  <source_model>O2TI_Moip_Model_Source_FormasPagamento</source_model>
140
+ <sort_order>10</sort_order>
141
  <show_in_default>1</show_in_default>
142
  <show_in_website>1</show_in_website>
143
  <show_in_store>1</show_in_store>
146
  <label>Ativar parcelamento?</label>
147
  <frontend_type>select</frontend_type>
148
  <source_model>adminhtml/system_config_source_yesno</source_model>
149
+ <sort_order>11</sort_order>
150
  <show_in_default>1</show_in_default>
151
  <show_in_website>1</show_in_website>
152
  <show_in_store>1</show_in_store>
154
  <parcelamento_de1 translate="label">
155
  <label>1° - Parcelas de:</label>
156
  <frontend_type>text</frontend_type>
157
+ <sort_order>12</sort_order>
158
  <show_in_default>1</show_in_default>
159
  <show_in_website>1</show_in_website>
160
  <show_in_store>1</show_in_store>
162
  <parcelamento_ate1 translate="label">
163
  <label>1° - Parcelas até:</label>
164
  <frontend_type>text</frontend_type>
165
+ <sort_order>13</sort_order>
166
  <show_in_default>1</show_in_default>
167
  <show_in_website>1</show_in_website>
168
  <show_in_store>1</show_in_store>
174
  </div></div>]]>
175
  </comment>
176
  <frontend_type>text</frontend_type>
177
+ <sort_order>14</sort_order>
178
  <show_in_default>1</show_in_default>
179
  <show_in_website>1</show_in_website>
180
  <show_in_store>1</show_in_store>
186
  </div></div>]]>
187
  </comment>
188
  <frontend_type>text</frontend_type>
189
+ <sort_order>15</sort_order>
190
  <show_in_default>1</show_in_default>
191
  <show_in_website>1</show_in_website>
192
  <show_in_store>1</show_in_store>
198
  </div></div>]]>
199
  </comment>
200
  <frontend_type>text</frontend_type>
201
+ <sort_order>16</sort_order>
202
  <show_in_default>1</show_in_default>
203
  <show_in_website>1</show_in_website>
204
  <show_in_store>1</show_in_store>
210
  </div></div>]]>
211
  </comment>
212
  <frontend_type>text</frontend_type>
213
+ <sort_order>17</sort_order>
214
  <show_in_default>1</show_in_default>
215
  <show_in_website>1</show_in_website>
216
  <show_in_store>1</show_in_store>
223
  </div></div>]]>
224
  </comment>
225
  <frontend_type>text</frontend_type>
226
+ <sort_order>18</sort_order>
227
  <show_in_default>1</show_in_default>
228
  <show_in_website>1</show_in_website>
229
  <show_in_store>1</show_in_store>
230
  </estoqueboleto>
231
+
 
 
 
 
 
 
 
 
232
  <allowspecific translate="label">
233
  <label>Pagamento a partir de países aplicáveis</label>
234
  <frontend_type>allowspecific</frontend_type>
235
+ <sort_order>19</sort_order>
236
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
237
  <show_in_default>1</show_in_default>
238
  <show_in_website>1</show_in_website>
app/design/adminhtml/default/default/template/O2TI/moip/form.phtml~ DELETED
@@ -1,665 +0,0 @@
1
- <?php
2
- $standad = Mage::getSingleton('moip/standard');
3
- $api = Mage::getSingleton('moip/api');
4
- $api->setContaMoip($standad->getConfigData('conta_moip'));
5
- $api->setAmbiente($standad->getConfigData('ambiente'));
6
- $pgdireto = $api->hasPagamentoDireto();
7
- $parcelas = "";
8
- $descontotexto = "";
9
- $icone_cartao = $this->getSkinUrl('O2TI/moip/imagem/abacartao.png');
10
- $icone_boleto = $this->getSkinUrl('O2TI/moip/imagem/ababoleto.png');
11
- $icone_transf = $this->getSkinUrl('O2TI/moip/imagem/abatransf.png');
12
- $cartao_visa = $this->getSkinUrl('O2TI/moip/imagem/Visa.png');
13
- $cartao_master = $this->getSkinUrl('O2TI/moip/imagem/Mastercard.png');
14
- $cartao_diners = $this->getSkinUrl('O2TI/moip/imagem/Diners.png');
15
- $cartao_american = $this->getSkinUrl('O2TI/moip/imagem/AmericanExpress.png');
16
- $cartao_hipercard = $this->getSkinUrl('O2TI/moip/imagem/Hipercard.png');
17
- $boleto = $this->getSkinUrl('O2TI/moip/imagem/Bradesco.png');
18
- $cartao_bb = $this->getSkinUrl('O2TI/moip/imagem/BancoDoBrasil.png');
19
- $cartao_bradesco = $this->getSkinUrl('O2TI/moip/imagem/Bradesco.png');
20
- $cartao_itau = $this->getSkinUrl('O2TI/moip/imagem/Itau.png');
21
- $cartao_banrisul = $this->getSkinUrl('O2TI/moip/imagem/Banrisul.png');
22
- if(Mage::getStoreConfig('o2tiall/config/trocar_icone')):
23
- $icone_cartao = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_cartao');
24
- $icone_boleto = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_boleto');
25
- $icone_transf = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/icone_transf');
26
- endif;
27
- if(Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')):
28
- $cartao_visa = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_visa');
29
- $cartao_master = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_master');
30
- $cartao_diners = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_diners');
31
- $cartao_american = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_american');
32
- $cartao_hipercard = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_hipercard');
33
- endif;
34
- if(Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')):
35
- $cartao_bb = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_bb');
36
- $cartao_bradesco = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_bradesco');
37
- $cartao_itau = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_itau');
38
- $cartao_banrisul = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/cartao_banrisul');
39
- endif;
40
- if(Mage::getStoreConfig('o2tiall/config/trocar_bandeira_cartao')):
41
- $boleto = Mage::getBaseUrl('media') . "o2ti/allmoip/". Mage::getStoreConfig('o2tiall/config/boleto');
42
- endif;
43
- $mostraboleto = 1;
44
- $nivelestoque = $standad->getConfigData('estoqueboleto');
45
- $idcount = 0;
46
- $_Produtos = Mage::getSingleton('checkout/cart')->getQuote()->getAllItems();
47
- foreach ($_Produtos as $value)
48
- {
49
- $item_ID = $value->getProductId();
50
- $_Product = Mage::getModel('catalog/product')->load($item_ID);
51
- $model = Mage::getModel('catalog/product');
52
- $_product = $model->load($item_ID);
53
- $stocklevel[$idcount] = (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty();
54
- $nomeprod[$idcount] = $model->getName();
55
- $idcount = $idcount + 1;
56
- }
57
- $idcount = $idcount - 1;
58
- $teste = 0;
59
- while($teste <= $idcount )
60
- {
61
- if ($stocklevel[$teste] <= $nivelestoque){
62
- $prodbaixostock = "O Produto <b>". $nomeprod[$teste] . "</b> está com o estoque baixo (<b>menos de ". $stocklevel[$teste] ." unidades</b>) e não poderá ser pago com boleto. </br>A quantidade mínima de um produto em estoque para compra por boleto deverá ser de: <b>". $nivelestoque . " Produtos.</b> ";
63
- $mostraboleto = 0;
64
- }
65
- $teste++;
66
- }
67
-
68
- $descont_boleto = Mage::getStoreConfig('parcelamento_de2');
69
- $virtual = Mage::helper('onestepcheckout')->onlyProductDownloadable();
70
- if ($virtual){
71
- $data = $standad->getQuote()->getBillingAddress();
72
- }
73
- else {
74
- $data = $standad->getQuote()->getShippingAddress();
75
- }
76
- $valor_pedido = $data->getGrandTotal();
77
- $valor_parc = $data->getGrandTotal();
78
- $valor_parc = number_format($valor_parc,2);
79
-
80
- if($valor_pedido > 5):
81
- $parcelamento = $api->getParcelamento($data->getGrandTotal());
82
- foreach ($parcelamento as $k => $v):
83
- $parcelas .= "<option value=\"".$k."\"> ".$k."x R$ " . $v['valor'] . " | Total: R$ " .$v['total']."</option>";
84
- endforeach;
85
- else:
86
- $parcelas .= "<option value=\"1\"> Pagamento à vista </option>";
87
- endif;
88
-
89
-
90
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/pagamento_boleto')):
91
- if ($valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')):
92
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')."%.";
93
- $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
94
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')/100;
95
- endif;
96
-
97
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ):
98
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')."%.";
99
- $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
100
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')/100;
101
- endif;
102
-
103
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ):
104
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')."%.";
105
- $descontotexto1 = $descontotexto ."<br/>Págavel em qualquer banco, casas lotéricas ou via internet bank.";
106
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')/100;
107
- endif;
108
-
109
-
110
- else:
111
- $descontotexto1 = "Págavel em qualquer banco, casas lotéricas ou via internet bank.";
112
- $desconto = $data->getGrandTotal();
113
- endif;
114
-
115
-
116
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/transf_desc')):
117
- if ($valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor')):
118
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')."%.";
119
- $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
120
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc')/100;
121
- endif;
122
-
123
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor2') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor2') && $valor_pedido < Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ):
124
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')."%.";
125
- $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
126
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc2')/100;
127
- endif;
128
-
129
- if (Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') != "" && $valor_pedido >= Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_valor3') ):
130
- $descontotexto = "Com desconto de: ".Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')."%.";
131
- $descontotexto1 = $descontotexto ."<br/>Págavel únicamente através internet bank.";
132
- $desconto = $data->getGrandTotal() - $data->getGrandTotal() * Mage::getStoreConfig('o2tiall/pagamento_avancado/boleto_desc3')/100;
133
- endif;
134
-
135
-
136
- else:
137
- $descontotexto1 = "Págavel em qualquer banco, casas lotéricas ou via internet bank.";
138
- $desconto = $data->getGrandTotal();
139
- endif;
140
-
141
- if(Mage::getSingleton('customer/session')->isLoggedIn()){
142
- $nome = Mage::getSingleton('customer/session')->getCustomer()->getName();
143
- $telefone = Mage::getSingleton('customer/session')->getCustomer()->getTelephone();
144
- $cpf = Mage::getSingleton('customer/session')->getCustomer()->getTaxvat();
145
- $dn = Mage::getSingleton('customer/session')->getCustomer()->getdob();
146
- $dn = date("d/m/Y", strtotime($dn));
147
- }
148
- ?>
149
-
150
- <script type="text/javascript">
151
-
152
- jQuery(document).ready(function(){
153
- <?php if (!in_array("CartaoCredito", $standad->getFormasPagamento()) ): ?>
154
- jQuery('#linhaparcelas').css({display:"none"});
155
- <?php endif;?>
156
- <?php if (!in_array("BoletoBancario", $standad->getFormasPagamento()) ): ?>
157
- jQuery('#linhaboleto').css({display:"none"});
158
- <?php endif;?>
159
- <?php if (!in_array("DebitoBancario", $standad->getFormasPagamento()) ): ?>
160
- jQuery('#linhatransf').css({display:"none"});
161
- <?php endif;?>
162
- });
163
-
164
- fechar = function(){
165
- <?php if (in_array("CartaoCredito", $standad->getFormasPagamento()) ): ?>
166
- jQuery('#linhacartao').css({display:"none"});
167
- <?php endif;?>
168
- <?php if (in_array("BoletoBancario", $standad->getFormasPagamento()) ): ?>
169
- jQuery('#conteudoboleto').css({display:"none"});
170
- <?php endif;?>
171
- <?php if (in_array("DebitoBancario", $standad->getFormasPagamento()) ): ?>
172
- jQuery('#conteudotransf').css({display:"none"});
173
- <?php endif;?>
174
- }
175
- parcelas = function(){
176
- fechar();
177
- jQuery('#linhacartao').hide();
178
- jQuery("#linhacartao").slideDown("slow");
179
- jQuery('#linhacartao').css({display:"block"});
180
-
181
- }
182
- boleto = function(){
183
- fechar();
184
- jQuery('#conteudoboleto').hide();
185
- jQuery("#conteudoboleto").slideDown("slow");
186
- jQuery('#conteudoboleto').css({display:"block"});
187
- }
188
- transf = function(){
189
- fechar();
190
- jQuery('#conteudotransf').hide();
191
- jQuery("#conteudotransf").slideDown("slow");
192
- jQuery('#conteudotransf').css({display:"block"});
193
- }
194
- function countChar(val) {
195
- var cvv = val.value.length;
196
- if(cvv > 2){
197
- jQuery('#formcli').hide();
198
- jQuery("#formcli").slideDown("slow");
199
- jQuery('#formcli').css({display:"block"});
200
- document.getElementById('credito_portador_nome').value = document.getElementById('billing:firstname').value + ' ' + document.getElementById('billing:lastname').value;
201
- document.getElementById('credito_portador_telefone').value = document.getElementById('billing:telephone').value;
202
- document.getElementById('credito_portador_cpf').value = document.getElementById('billing:taxvat').value;
203
- if(document.getElementById('billing:year').value)
204
- {
205
- document.getElementById('credito_portador_nascimento').value = document.getElementById('billing:day').value + '/' + document.getElementById('billing:month').value + '/' + document.getElementById('billing:year').value
206
- }
207
- }
208
- };
209
- //validacao do moip - inicio
210
- jQuery('.btn-checkout').on("click",function(e)
211
- {
212
- if(jQuery('input[name=payment\\[method\\]]:checked').val() == "o2ti_moip_standard"){
213
- if(!jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val()){
214
- if(!jQuery('#advice-required-o2ti').length)
215
- {
216
- logic=false;
217
- jQuery('#checkout-payment-o2ti').css({display:"block"});
218
- jQuery('#checkout-payment-o2ti').html('Selecione a forma de pagamento.');
219
- }
220
- }
221
- else
222
- jQuery('#checkout-payment-o2ti').css({display:"none"});
223
- jQuery('#advice-required-entry_payment_o2ti').remove();
224
- }
225
- if(jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() == "CartaoCredito")
226
- {
227
- if(!jQuery("input[name=payment\\[credito_instituicao\\]]:checked").val())
228
- {
229
- if(!jQuery('#advice-required-o2ti').length)
230
- {
231
- logic=false;
232
- jQuery('#checkout-payment-bandeira').css({display:"block"});
233
- jQuery('#checkout-payment-bandeira').html('Selecione a bandeira do cart&atilde;o.');
234
- }
235
- }
236
- else
237
- jQuery('#checkout-payment-bandeira').css({display:"none"});
238
- jQuery('#advice-required-entry_payment_bandeira').remove();
239
- }
240
- if(jQuery("input[name=payment\\[forma_pagamento\\]]:checked").val() == "DebitoBancario")
241
- {
242
- if(!jQuery("input[name=payment\\[debito_instituicao\\]]:checked").val())
243
- {
244
- if(!jQuery('#advice-required-o2ti').length)
245
- {
246
- logic=false;
247
- jQuery('#checkout-payment-banco').css({display:"block"});
248
- jQuery('#checkout-payment-banco').html('Selecione o seu banco.');
249
- }
250
-
251
- }
252
- else
253
- jQuery('#checkout-payment-banco').css({display:"none"});
254
- }
255
- });
256
- jQuery.noConflict();
257
- //validacao do moip - fim
258
- bb = function(){
259
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
260
- document.getElementById('debbb').style.opacity='1';
261
- document.getElementById('debbradesco').style.opacity='0.4';
262
- document.getElementById('debitau').style.opacity='0.4';
263
- document.getElementById('Banrisul').style.opacity='0.4';
264
- document.getElementById('pagdebito').style.display='block';
265
- document.getElementById('checkout-payment-banco').style.display='none';
266
- };
267
- bradesco = function(){
268
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
269
- document.getElementById('debbb').style.opacity='0.4';
270
- document.getElementById('debbradesco').style.opacity='1';
271
- document.getElementById('debitau').style.opacity='0.4';
272
- document.getElementById('Banrisul').style.opacity='0.4';
273
- document.getElementById('pagdebito').style.display='block';
274
- document.getElementById('checkout-payment-banco').style.display='none';
275
- };
276
- itau = function(){
277
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
278
- document.getElementById('debbb').style.opacity='0.4';
279
- document.getElementById('debbradesco').style.opacity='0.4';
280
- document.getElementById('debitau').style.opacity='1';
281
- document.getElementById('Banrisul').style.opacity='0.4';
282
- document.getElementById('pagdebito').style.display='block';
283
- document.getElementById('checkout-payment-banco').style.display='none';
284
- };
285
- banrisul = function(){
286
- document.getElementById('checkout-payment-o2ti-deb').style.display='none';
287
- document.getElementById('debbb').style.opacity='0.4';
288
- document.getElementById('debbradesco').style.opacity='0.4';
289
- document.getElementById('debitau').style.opacity='0.4';
290
- document.getElementById('Banrisul').style.opacity='1';
291
- document.getElementById('pagdebito').style.display='block';
292
- document.getElementById('checkout-payment-banco').style.display='none';
293
- };
294
- visa = function(){
295
- document.getElementById('Visa').style.opacity='1';
296
- document.getElementById('Mastercard').style.opacity='0.4';
297
- document.getElementById('Diners').style.opacity='0.4';
298
- document.getElementById('AmericanExpress').style.opacity='0.4';
299
- document.getElementById('Hipercard').style.opacity='0.4';
300
- document.getElementById('checkout-payment-bandeira').style.display='none';
301
- };
302
- mastercard = function(){
303
- document.getElementById('Visa').style.opacity='0.4';
304
- document.getElementById('Mastercard').style.opacity='1';
305
- document.getElementById('Diners').style.opacity='0.4';
306
- document.getElementById('AmericanExpress').style.opacity='0.4';
307
- document.getElementById('Hipercard').style.opacity='0.4';
308
- document.getElementById('checkout-payment-bandeira').style.display='none';
309
- };
310
- americanexpress = function(){
311
- document.getElementById('Visa').style.opacity='0.4';
312
- document.getElementById('Mastercard').style.opacity='0.4';
313
- document.getElementById('Diners').style.opacity='0.4';
314
- document.getElementById('AmericanExpress').style.opacity='1';
315
- document.getElementById('Hipercard').style.opacity='0.4';
316
- document.getElementById('checkout-payment-bandeira').style.display='none';
317
- };
318
- diners = function(){
319
- document.getElementById('Visa').style.opacity='0.4';
320
- document.getElementById('Mastercard').style.opacity='0.4';
321
- document.getElementById('Diners').style.opacity='1';
322
- document.getElementById('AmericanExpress').style.opacity='0.4';
323
- document.getElementById('Hipercard').style.opacity='0.4';
324
- document.getElementById('checkout-payment-bandeira').style.display='none';
325
- };
326
- hipercard = function(){
327
- document.getElementById('Visa').style.opacity='0.4';
328
- document.getElementById('Mastercard').style.opacity='0.4';
329
- document.getElementById('Diners').style.opacity='0.4';
330
- document.getElementById('AmericanExpress').style.opacity='0.4';
331
- document.getElementById('Hipercard').style.opacity='1';
332
- document.getElementById('checkout-payment-bandeira').style.display='none';
333
- };
334
- </script>
335
-
336
- <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('O2TI/moip/css/formulario.css'); ?> "media="all">
337
- <div id="checkouto2ti">
338
- <ul id="payment_form_<?php echo $this->getMethodCode() ?>">
339
-
340
-
341
-
342
-
343
- <?php if ($mostraboleto != "1"): ?>
344
- <label>
345
-
346
- <?php if (!in_array("BoletoBancario", $standad->getFormasPagamento()) ): ?>
347
- <input onclick="boleto();" type="radio" name="payment[forma_pagamento]" title="Boleto" value="" class="forma_pg">
348
- <?php endif;?>
349
- <div id="linhaboleto" onclick="boleto();">
350
- <div id="icone">
351
- <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $icone_boleto; ?>">
352
- </div>
353
- <div id="desc">
354
- <h3>Boleto</h3>
355
- <span class="desc">
356
- Indisponível
357
- </span>
358
- </div>
359
- <div id="valor">
360
- <h3>Valor</h3>
361
- R$ <?php echo number_format($desconto,2) ?>
362
- </div>
363
- </div>
364
- </label>
365
-
366
- <div id="conteudoboleto">
367
- <h3>Boleto Bancário</h3>
368
- <div id="icone">
369
- <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $boleto; ?>">
370
- </div>
371
- <div id="desc2">
372
- <?php echo $prodbaixostock; ?>
373
- </div>
374
- </div>
375
-
376
-
377
- <?php endif; ?>
378
-
379
-
380
-
381
-
382
- <?php if ($mostraboleto == "1"): ?>
383
- <label>
384
- <input onclick="boleto();" type="radio" name="payment[forma_pagamento]" title="Boleto" value="BoletoBancario" class="forma_pg">
385
- <div id="linhaboleto" onclick="boleto();">
386
- <div id="icone">
387
- <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $icone_boleto; ?>">
388
- </div>
389
- <div id="desc">
390
- <h3>Boleto</h3>
391
- <span class="desc">
392
- <?php echo $descontotexto; ?>
393
- </span>
394
- </div>
395
- <div id="valor">
396
- <h3>Valor</h3>
397
- R$ <?php echo number_format($desconto,2) ?>
398
- </div>
399
- </div>
400
- </label>
401
-
402
- <div id="conteudoboleto">
403
- <h3>Boleto Bancário</h3>
404
- <div id="icone">
405
- <img alt="Boleto Bancário" id="imageboleto" src="<?php echo $boleto; ?>">
406
- </div>
407
- <div id="desc2">
408
- <?php echo $descontotexto1; ?>
409
- </div>
410
- </div>
411
- <?php endif; ?>
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
- <label onclick="parcelas();">
424
-
425
-
426
- <?php if (!in_array("CartaoCredito", $standad->getFormasPagamento()) ): ?>
427
- <input onclick="parcelas();" id="cartao_radio" type="radio" name="payment[forma_pagamento]" title="Cartão de Crédito" value="CartaoCredito" class="forma_pg">
428
- <?php endif;?>
429
-
430
- <div id="linhaparcelas">
431
- <div id="icone">
432
- <img alt="Cartão de Crédito" id="imageboleto" src="<?php echo $icone_cartao; ?>">
433
- </div>
434
- <div id="desc">
435
- <h3>Cartão de Crédito</h3>
436
- <span class="desc">
437
- Pague em até <?php echo $k; ?>x
438
- </span>
439
- </div>
440
- <div id="valor">
441
- Parcelas <?php echo $k; ?>x de
442
- R$ <?php echo $v['valor']; ?>
443
- </div>
444
- </div>
445
- </label>
446
-
447
- <div id="linhacartao">
448
- <h3>Cartão de Crédito</h3>
449
- <li class="wide">
450
- <label class="required" for="credito_bandeira" >Selecione a Bandeira:</label>
451
- <div class="input-box" style="text-align:center;">
452
-
453
- <label id="band">
454
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" onclick="visa();" value="Visa"><img src="<?php echo $cartao_visa; ?>" onclick=";" id="Visa" alt="Visa" border="0">
455
- </label>
456
-
457
- <label id="band">
458
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" onclick="mastercard();" value="Mastercard"><img src="<?php echo $cartao_master; ?>" onclick="" id="Mastercard" alt="Mastercard" border="0">
459
- </label>
460
-
461
-
462
- <label id="band">
463
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" onclick="americanexpress();" value="AmericanExpress"><img src="<?php echo $cartao_american; ?>" onclick="" id="AmericanExpress" alt="AmericanExpress" border="0">
464
- </label>
465
- </div>
466
- <div class="input-box" style="text-align:center;">
467
- <label id="band">
468
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" onclick="diners();" value="Diners"> <img onclick="" src="<?php echo $cartao_diners; ?>" id="Diners" alt="Diners" border="0">
469
- </label>
470
-
471
-
472
- <label id="band">
473
- <input id="bandeiramoip" type="radio" name="payment[credito_instituicao]" onclick="hipercard();" value="Hipercard"><img onclick="" src="<?php echo $cartao_hipercard; ?>" id="Hipercard" alt="Hipercard" border="0">
474
- </label>
475
-
476
- </div>
477
- </li>
478
-
479
- <div id="checkout-payment-bandeira" class="validation-advice" style="display:none;position:relative;" ></div>
480
-
481
- <li class="wide">
482
- <label class="required" for="credito_numero">Número:</label>
483
- <div class="input-box">
484
- <input type="text" name="payment[credito_numero]" id="credito_numero" class="input-text required-entry validate-cc-number" >
485
- </div>
486
- </li>
487
-
488
-
489
- <li class="wide">
490
- <label class="required" for="Validade">Validade:</label>
491
- <div class="input-box">
492
- <select name="payment[credito_expiracao_mes]" id="credito_expiracao_mes" class="input-text required-entry" >
493
- <option value="">Mês</option>
494
- <option value="01">01</option>
495
- <option value="02">02</option>
496
- <option value="03">03</option>
497
- <option value="04">04</option>
498
- <option value="05">05</option>
499
- <option value="06">06</option>
500
- <option value="07">07</option>
501
- <option value="08">08</option>
502
- <option value="09">09</option>
503
- <option value="10">10</option>
504
- <option value="11">11</option>
505
- <option value="12">12</option>
506
- </select>
507
- <select name="payment[credito_expiracao_ano]" id="credito_expiracao_ano" class="input-text required-entry" >
508
- <option value="">Ano</option>
509
- <option value="12">12</option>
510
- <option value="13">13</option>
511
- <option value="14">14</option>
512
- <option value="15">15</option>
513
- <option value="16">16</option>
514
- <option value="17">17</option>
515
- <option value="18">18</option>
516
- <option value="19">19</option>
517
- <option value="20">20</option>
518
- <option value="21">21</option>
519
- <option value="22">22</option>
520
- <option value="23">23</option>
521
- <option value="24">24</option>
522
- <option value="25">25</option>
523
- </select>
524
- </div>
525
- </li>
526
- <li class="wide">
527
- <label class="required" for="cvv">Código de segurança:</label>
528
- <div class="input-box">
529
- <span class="tooltip">
530
- <input type="text" name="payment[credito_codigo_seguranca]" onkeyup="countChar(this)" class="input-text required-entry" id="credito_codigo_seguranca" >
531
- <span class="custom help" style=" width:260px;"><em>Código de segurança:</em>Veja no verso do seu cartão.<img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/codigo-seguranca.png'); ?>" id="imageseguramoip" border="0"></span></span>
532
- </div>
533
- </li>
534
- <?php
535
- $data = $standad->getQuote()->getShippingAddress();
536
- $data->getGrandTotal();
537
- ?>
538
- <?php if ($standad->getConfigData('parcelamento')): ?>
539
- <li class="wide">
540
- <label class="required" for="credito_parcela">Opções de pagamento:</label>
541
- <div class="input-box">
542
- <select name="payment[credito_parcelamento]" id="credito_parcelamento" class="input-text required-entry" >
543
- <?php echo $parcelas; ?>
544
- </select>
545
- <?php endif; ?>
546
- <div id="addparcelas">
547
- <?php
548
- $standard = Mage::getSingleton('moip/standard');
549
- $parcelamento = $standard->getInfoParcelamento();
550
- if ($parcelamento['juros1'] == 0)
551
- {
552
- echo "<div id=\"addparcelasdesc\"> Sem juros até ".$parcelamento['ate1']." parcelas ";
553
- if ($parcelamento['ate1'] < 13)
554
- {
555
- echo ", após juros de 1.99 ao mês.</div>";
556
- }
557
- }
558
- if ($parcelamento['juros1'] >= "1.99")
559
- {
560
- echo "<div id=\"addparcelasdesc\"> Com juros de ".$parcelamento['juros1']." ao mês.</div>";
561
- }
562
- ?>
563
- </div>
564
- </div>
565
- </li>
566
-
567
- <div id="formcli" style="display:none;">
568
- <h3>Dados do Titular</h3>
569
- <div id="pjmoip" style="display:none;width:80%; float:left;color:red;">Atenção para Pessoa Júridica você deverá informar os dados do seu cartão empresarial, não os dados da empresa.</div>
570
-
571
- <li class="wide">
572
- <label class="required" for="credito_parcela">Nome no Cartão:</label>
573
- <div class="input-box">
574
- <span class="tooltip" >
575
- <input type="text" name="payment[credito_portador_nome]" value="<?php echo $nome; ?>" class="required-entry" id="credito_portador_nome" >
576
- <span class="custom help"><em>Nome do titular</em>deverá ser obrigatoriamente como descrito no cartão.</span></span>
577
- </div>
578
- </li>
579
- <li class="wide">
580
- <label class="required" for="credito_parcela">CPF:</label>
581
- <div class="input-box">
582
- <input type="text" name="payment[credito_portador_cpf]" class="required-entry validar_cpf" placeholder="Ex. 111.111.111-11" onkeypress="return txtBoxFormat(this, '999.999.999-99', event);" maxlength="14" id="credito_portador_cpf" value="<?php echo $cpf; ?>" >
583
- </div>
584
- </li>
585
- <li class="wide">
586
- <label class="required" for="credito_parcela">Telefone:</label>
587
- <div class="input-box">
588
- <span class="tooltip" >
589
- <input type="text" name="payment[credito_portador_telefone]" id="credito_portador_telefone" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" maxlength="14" value="<?php echo $telefone; ?>" placeholder="Ex. (19)9999-9999" class="input-text required-entry">
590
- <span class="custom help"><em>Telefone de contato</em>Muitas vezes é necessária a confirmação manual de seus dados por nossa equipe de crédito, por favor informe um telefone em que seja fácil te localizar.</span></span>
591
- </div>
592
- </li>
593
- <li class="wide">
594
- <label class="required" for="credito_parcela">Data nascimento:</label>
595
- <div class="input-box">
596
- <input type="text" name="payment[credito_portador_nascimento]" id="credito_portador_nascimento" onkeypress="return txtBoxFormat(this, '99/99/9999', event);" maxlength="10" value="<?php if ($dn !='') { echo $dn; } ?>" placeholder="Ex. 10/10/1985" class="input-text required-entry" >
597
- </div>
598
- </li>
599
- </div>
600
- </div>
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
-
609
- <label>
610
-
611
- <?php if (!in_array("DebitoBancario", $standad->getFormasPagamento()) ): ?>
612
- <input onclick="transf();" type="radio" class="forma_pg" name="payment[forma_pagamento]" value="DebitoBancario" >
613
- <?php endif;?>
614
- <div id="linhatransf" onclick="transf();">
615
- <div id="icone">
616
- <img alt="Transferência Bancária" id="imageboleto" src="<?php echo $icone_transf; ?>">
617
- </div>
618
- <div id="desc">
619
- <h3>Transferência Bancária</h3>
620
- <span class="desc">
621
- <?php echo $descontotexto; ?>
622
- </span>
623
- </div>
624
- <div id="valor">
625
- <h3>Valor</h3>
626
- R$ <?php echo number_format($desconto,2) ?>
627
- </div>
628
- </div>
629
- </label>
630
- <div id="conteudotransf">
631
- <h3>Transferência Online</h3>
632
- <div id="pagdebito">
633
- Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
634
- <?php echo $descontotexto1; ?>
635
- </br>
636
- </div>
637
- <div id="moip_debito_bandeiras">
638
- <label>
639
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="bb();" value="BancoDoBrasil">
640
- <img src="<?php echo $cartao_bb; ?>" alt="Banco do Brasil" id="debbb" >
641
- </label>
642
- <label>
643
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="bradesco();" value="Bradesco">
644
- <img src="<?php echo $cartao_bradesco; ?>" id="debbradesco" alt="Bradesco">
645
- </label>
646
- <label>
647
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="itau();" value="Itau" >
648
- <img src="<?php echo $cartao_itau; ?>" id="debitau" alt="Itaú" >
649
- </label>
650
- <label>
651
- <input type="radio" id="debito_instituicao" name="payment[debito_instituicao]" onclick="banrisul();" value="Banrisul">
652
- <img src="<?php echo $cartao_banrisul; ?>" id="Banrisul" alt="Banrisul" >
653
- </label>
654
- </div>
655
- <div id="checkout-payment-banco" class="validation-advice" style="position:relative;display:none;"></div>
656
- <div id="checkout-payment-o2ti-deb" class="validation-advice" style="position:relative;display:none;" >
657
- Por favor, selecione o banco!
658
- </div>
659
- </div>
660
-
661
-
662
- </ul>
663
- </div>
664
- <div id="checkout-payment-o2ti" class="validation-advice" style="position:relative;display:none;"></div>
665
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/O2TI/moip/info.phtml CHANGED
@@ -2,21 +2,18 @@
2
  <?php
3
 
4
  $standard = Mage::getModel('moip/standard');
 
5
  $validopara_moip = $standard->getConfigData('validopara_moip');
6
- $html = '';
7
- $order = Mage::getModel('sales/order');
8
- $titulo = $this->getMethod()->getTitle();
9
  $moip = $this->getMoip();
10
- $order = (int) $this->getRequest()->getParam('order_id');
11
- /* Mage::getModel("sales/order")->getCollection()->getLastItem()->getIncrementId(); */
12
-
13
  $sale_id = "";
14
-
15
- //Mage::log($order);
16
- echo $orderId;
17
-
18
-
19
-
20
  if ($sale_id != ""){
21
  $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
22
  $sql = "SELECT *
@@ -27,7 +24,7 @@ echo $orderId;
27
  {
28
  $tokenpagamento = $venda['xml_return'];
29
  $bandeira = $venda['bandeira'];
30
- $Formadepagamento = $venda['formapg'];
31
  $orderid = $venda['sale_id'];
32
  }
33
  }
@@ -38,38 +35,52 @@ echo $orderId;
38
  FROM moip
39
  WHERE realorder_id IN (".$order.") AND status ='Sucesso'";
40
  $_venda = $connR->fetchAll($sql);
 
41
  foreach($_venda as $venda)
42
  {
43
  $tokenpagamento = $venda['xml_return'];
44
  $bandeira = $venda['bandeira'];
45
- $Formadepagamento = $venda['formapg'];
46
  $orderid = $venda['sale_id'];
47
- $num_parcelas = $venda['num_parcelas'];
48
- $ult_dig = $venda['ult_dig'];
 
49
  }
50
  }
51
-
52
  $imagem = $this->getSkinUrl('O2TI/moip/imagem/'.$bandeira.'.png');
53
- if($Formadepagamento == "BoletoBancario"){
54
- $html = "<b> Pago via </b>". $titulo .", por: </br><b>" . $formadepagamento . "</b></br><img src='" . $imagem . "' style='width:80px;float:left;margin:5px;' border='0'>" . "<div id='repagar'><a href='https://www.moip.com.br/Instrucao.do?token=".$tokenpagamento."' style='background: none repeat scroll 0 0 #337BAA;margin:10px;border-radius:3px;padding:10px 5px;width:140px;float:left; text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif'>Imprimir Boleto</a></div>";
55
- }
56
- if($Formadepagamento == "DebitoBancario"){
57
- $html = "<b> Pago via </b>". $titulo .", por: </br><b>" . $formadepagamento . "</b></br><img src='" . $imagem . "' style='width:80px;float:left;margin:5px;' border='0'>" . "<div id='repagar'><a href='https://www.moip.com.br/Instrucao.do?token=".$tokenpagamento."' style='background: none repeat scroll 0 0 #337BAA;margin:10px;border-radius:3px;padding:10px 5px;width:140px;float:left; text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif'>Realizar Transferência</a></div>";
58
- }
59
- if($Formadepagamento == "CartaoCredito"){
60
 
61
 
62
- $params = array(
63
- 'token' => $venda['xml_return'],
64
- 'orderId' => $venda['sale_id'],
65
- 'realorder' => $venda['realorder_id'],
66
- );
67
- $urldosite = Mage::getBaseUrl('web', true);
68
- $url = $urldosite."Moip/standard/redirect/";
69
- $html = "<div><b> Pago via </b>". $titulo .", por: </br><b>" . $formadepagamento . "</b></br><img src='" . $imagem . "' style='width:80px;float:left;margin:5px;' border='0'>" . "<div id='repagar'><a href='".$url."token/".$tokenpagamento."/orderId/".$venda['realorder_id']."/realorder/".$venda['sale_id']."' style='background: none repeat scroll 0 0 #337BAA;margin:10px;border-radius:3px;padding:10px 5px;width:140px;float:left; text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif'>Ja pagou? Pagar Agora</a></div>
70
- <div>Bandeira:<b> {$bandeira}</b></div>
71
- <div>Pago em: <b>{$num_parcelas}</b> parcela(s)</div>
72
- <div>4 últimos dígitos do cartão: <b>{$ult_dig}</b></div</div>";
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  }
74
 
75
 
2
  <?php
3
 
4
  $standard = Mage::getModel('moip/standard');
5
+ $formadepagamento = "";
6
  $validopara_moip = $standard->getConfigData('validopara_moip');
7
+ $html = '';
8
+ $order = Mage::getModel('sales/order');
9
+ $titulo = $this->getMethod()->getTitle();
10
  $moip = $this->getMoip();
11
+ $order = (int) $this->getRequest()->getParam('order_id');
 
 
12
  $sale_id = "";
13
+ if($order == ""):
14
+ $order = $this->getInfo()->getOrder()->getquote_id();
15
+ $sale_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
16
+ endif;
 
 
17
  if ($sale_id != ""){
18
  $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
19
  $sql = "SELECT *
24
  {
25
  $tokenpagamento = $venda['xml_return'];
26
  $bandeira = $venda['bandeira'];
27
+ $formadepagamento = $venda['formapg'];
28
  $orderid = $venda['sale_id'];
29
  }
30
  }
35
  FROM moip
36
  WHERE realorder_id IN (".$order.") AND status ='Sucesso'";
37
  $_venda = $connR->fetchAll($sql);
38
+
39
  foreach($_venda as $venda)
40
  {
41
  $tokenpagamento = $venda['xml_return'];
42
  $bandeira = $venda['bandeira'];
43
+ $formadepagamento = $venda['formapg'];
44
  $orderid = $venda['sale_id'];
45
+ $num_parcelas = $venda['num_parcelas'];
46
+ $ult_dig = $venda['ult_dig'];
47
+
48
  }
49
  }
 
50
  $imagem = $this->getSkinUrl('O2TI/moip/imagem/'.$bandeira.'.png');
51
+ if($formadepagamento == "BoletoBancario"){
52
+ $html = "<b> Pago via </b>". $titulo .", por: </br><b>" . $formadepagamento . "</b></br><img src='" . $imagem . "' style='width:80px;float:left;margin:5px;' border='0'>" . "<div id='repagar'><a href='https://www.moip.com.br/Instrucao.do?token=".$tokenpagamento."' style='background: none repeat scroll 0 0 #337BAA;margin:10px;border-radius:3px;padding:10px 5px;width:140px;float:left; text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif' target='_blank'>Imprimir Boleto</a></div>";
53
+ }
54
+ if($formadepagamento == "DebitoBancario"){
55
+ $html = "<b> Pago via </b>". $titulo .", por: </br><b>" . $formadepagamento . "</b></br><img src='" . $imagem . "' style='width:80px;float:left;margin:5px;' border='0'>" . "<div id='repagar'><a href='https://www.moip.com.br/Instrucao.do?token=".$tokenpagamento."' style='background: none repeat scroll 0 0 #337BAA;margin:10px;border-radius:3px;padding:10px 5px;width:140px;float:left; text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif' target='_blank'>Realizar Transferência</a></div>";
56
+ }
57
+ if($formadepagamento == "CartaoCredito"){
58
 
59
 
60
+ $params = array(
61
+ 'token' => $venda['xml_return'],
62
+ 'orderId' => $venda['sale_id'],
63
+ 'realorder' => $venda['realorder_id'],
64
+ );
65
+ $urldosite = Mage::getBaseUrl('web', true);
66
+ $url = $urldosite."Moip/standard/redirect/";
67
+ if ($num_parcelas == "")
68
+ {
69
+ $num_parcelas = "Acesse seu cadastro";
70
+ }
71
+ if ($ult_dig == "")
72
+ {
73
+ $ult_dig = "Acesse seu cadastro";
74
+ }
75
+ $html = "<div>
76
+ <b> Pago via </b>{$titulo}, por: </br>
77
+ <b>{$formadepagamento}</b></br>
78
+ <img src='{$imagem}' style='width:80px;float:left;margin:5px;' border='0'>" . "
79
+ <div>Bandeira:<b> {$bandeira}</b></div>
80
+ <div>Pago em: <b>{$num_parcelas}</b> parcela(s)</div>
81
+ <div>4 últimos dígitos do cartão: <b>{$ult_dig}</b></div>
82
+ </div>";
83
+
84
  }
85
 
86
 
app/design/adminhtml/default/default/template/O2TI/moip/redirect.phtml~ DELETED
@@ -1,486 +0,0 @@
1
- <?php
2
- $data = $this->getRequest()->getParams();
3
- $standard = Mage::getModel('moip/standard');
4
- $form = new Varien_Data_Form();
5
- $api = Mage::getModel('moip/api');
6
- $api->setAmbiente($standard->getConfigData('ambiente'));
7
- $idgoogle = $standard->getConfigData('idgoogle');
8
- $meio = $api->generatemeip(Mage::registry('formapgto'));
9
- $opcaopg = $api->generatemeiopago(Mage::registry('formapg'));
10
- $parcelamento = $standard->getInfoParcelamento();
11
- $enviapara = $standard->getConfigData('ambiente');
12
- if ($enviapara == "teste") {
13
- $urldomoip = "https://desenvolvedor.moip.com.br/sandbox";
14
- }
15
- else {
16
- $urldomoip = "https://www.moip.com.br/";
17
- }
18
- if ($opcaopg['forma_pagamento'] == "DebitoBancario") {
19
- $bandeira = $opcaopg['debito_instituicao'];
20
- $vencpedido = date('c', strtotime("+2 days"));
21
- }
22
- if ($opcaopg['forma_pagamento'] == "CartaoCredito") {
23
- $bandeira = $opcaopg['credito_instituicao'];
24
- $vencpedido = date('c', strtotime("+2 days"));
25
- }
26
- if ($opcaopg['forma_pagamento'] == "BoletoBancario") {
27
- $bandeira = "Bradesco";
28
- $vencpedido = $opcaopg['timevencimentoboleto'];
29
- }
30
- $status_pgdireto = Mage::registry('StatusPgdireto');
31
- $html = $this->__('');
32
- if (!$data['token']) {
33
-
34
- //primeira compra grava os dados.
35
-
36
- if (!$moipToken) {
37
- $moipToken = Mage::registry('token');
38
- $url = $moipToken;
39
- $xmlgerado = Mage::registry('xml');
40
- $xml_sent = (string)$xmlgerado;
41
- $standard = Mage::getSingleton('moip/standard');
42
- $sale_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
43
- $realorder_id = Mage::getSingleton('checkout/session')->getLastOrderId();
44
- $incrementId = $realorder_id;
45
- $status = "Sucesso";
46
- $connR = Mage::getSingleton('core/resource')->getConnection('core_read');
47
- $sql = "SELECT *
48
- FROM moip
49
- WHERE sale_id IN (".$sale_id.") AND status ='Sucesso'";
50
- $_venda = $connR->fetchAll($sql);
51
- foreach ($_venda as $venda) {
52
- $tokenpagamento = $venda['xml_return'];
53
- }
54
- if ($tokenpagamento == "") {
55
- $conn = Mage::getSingleton('core/resource')->getConnection('core_write');
56
- $results = $conn->query("INSERT INTO `moip` (`transaction_id` ,`realorder_id` ,`sale_id` ,`xml_sent` ,`xml_return` ,`status` ,`formapg` ,`bandeira` ,`digito` ,`vencimento` ,`datetime`) VALUES (NULL , '".$realorder_id."', '".$sale_id."', '".$xml_sent."', '".$moipToken."', '".$status."', '".$opcaopg['forma_pagamento']."', '".$bandeira."', '', '".$vencpedido."', '".date('Y-m-d H:i:s')."');");
57
- $tokenpagamento = $moipToken;
58
- $url = $moipToken;
59
- }
60
- }
61
- else {
62
- //usado para o reload da pagina pelos infelizes clientes que navegam com ie.
63
- $tokenpagamento = $moipToken;
64
- $url = $tokenpagamento;
65
- $status = "Sucesso";
66
- }
67
- }
68
-
69
- //refaz o pedido vindo do my account.
70
- else {
71
-
72
- $LastRealOrderId = $data['realorder'];
73
- $conn = Mage::getSingleton('core/resource')->getConnection('core_read');
74
- $sql = "SELECT * FROM moip WHERE sale_id IN ({$LastRealOrderId})";
75
- $_venda = $conn->fetchAll($sql);
76
- foreach ($_venda as $venda) {
77
- $tokenpagamento = $venda['xml_return'];
78
- $url = $venda['xml_return'];
79
- $incrementId = $venda['realorder_id'];
80
- $order = $data['realorder'];
81
- $opcaopg['forma_pagamento'] = $venda['formapg'];
82
- $bandeira = $venda['bandeira'];
83
- $connRW = Mage::getSingleton('core/resource')->getConnection('core_write');
84
- $results = $connRW->query("UPDATE `moip` SET vencimento='".$vencpedido."' WHERE sale_id IN (".$LastRealOrderId.");");
85
- }
86
- $refazerpagamento = 1;
87
- $url = $venda['xml_return'];
88
- }
89
-
90
- $order = Mage::getModel('sales/order')->load($incrementId);
91
- $session = Mage::getSingleton('customer/session');
92
- $customer = $session->getCustomer();
93
- try{
94
- $order->sendNewOrderEmail();
95
- }
96
- catch (Exception $ex) { };
97
- $oque = $order->getIsVirtual();
98
- if ($oque) {
99
- $shippingId = $order->getBillingAddress()->getId();
100
- }
101
- else {
102
- $shippingId = $order->getShippingAddress()->getId();
103
- }
104
- $address = Mage::getModel('sales/order_address')->load($shippingId);
105
- $urldosite = Mage::getBaseUrl('web', true);
106
- $totalparaparcelado = $order->getGrandTotal();
107
- ?>
108
- <!-- entrou no pagamento -->
109
- <script type="text/javascript">
110
- var _gaq = _gaq || [];
111
- _gaq.push(['_setAccount', '<?php echo $idgoogle ?>']);
112
- _gaq.push(['_setDomainName', '<?php echo $urldosite ?>']);
113
- _gaq.push(['_addIgnoreRef', '<?php echo $urldosite ?>']);//dominio para evitar duplicidade
114
- _gaq.push(['_trackPageview']);
115
- _gaq.push(['_addTrans',
116
- '<?php echo $sale_id ?>',
117
- '<?php echo Mage::app()->getStore() ?>',
118
- '<?php echo ($totalparaparcelado - $order->getShippingAmount()) ?>',
119
- '0',
120
- '<?php echo $order->getShippingAmount() ?>',
121
- '<?php echo $address->getCity() ?>',
122
- '<?php echo $address->getRegion() ?>',
123
- '<?php echo $address->getCountry_id() ?>'
124
- ]);
125
- <?php $orderItems = $order -> getItemsCollection();
126
- foreach ($orderItems as $item) {
127
- $product_sku = $item -> sku;
128
- $product_name = $item -> getName();
129
- $_product = Mage::getModel('catalog/product') -> load($item->getProductId());
130
- $cats = $_product -> getCategoryIds();
131
- $category_name = Mage::getModel('catalog/category') -> load($cats[0]) -> getName();
132
- $price = $item->getPrice();
133
- $qty = $item -> getQtyOrdered();
134
- echo "
135
- _gaq.push(['_addItem',
136
- '$incrementId',
137
- '$product_sku',
138
- '$product_name',
139
- '$category_name',
140
- '$price',
141
- '$qty'
142
- ]);
143
- ";
144
- }
145
- ?>
146
- _gaq.push(['_trackTrans']);
147
- (function() {
148
- var ga = document.createElement('script');
149
- ga.type = 'text/javascript';
150
- ga.async = true;
151
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
152
- var s = document.getElementsByTagName('script')[0];
153
- s.parentNode.insertBefore(ga, s);
154
- })();
155
- </script>
156
-
157
-
158
-
159
-
160
- <!-- Corpo comum ao pagamento -->
161
- <div id="moip_corpo">
162
-
163
- <script type='text/javascript' charset="ISO-8859-1" src='<?php echo $urldomoip ?>/transparente/MoipWidget-v2.js'></script>
164
- <div id="MoipWidget" data-token="<?php echo $url ?>" callback-method-error="erroValidacao" callback-method-success="sucesso" ></div>
165
- <h2>Pedido realizado via Moip S/A</h2>
166
- <div class="row-fluid">
167
- <div class="span3">
168
- <div id="icone_pg" >
169
- <img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/logomoip.png'); ?>" border="0" >
170
- <img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/'.$bandeira.'.png'); ?>" border="0" >
171
- </div>
172
- </div>
173
- <div class="span9">
174
-
175
- </div>
176
- </div>
177
-
178
-
179
- <div id="Descr_pg">
180
- <?php if($opcaopg['forma_pagamento'] == "DebitoBancario"):?>
181
- <meta http-equiv='Refresh' content='5;URL=<?php echo $urldomoip ?>/Instrucao.do?token=<?php echo $url ?>'>
182
- <h3>Transferência Bancária</h3>
183
- <p>Você será redirecionado para o seu banco em 5 segundos, caso isto não ocorra, por favor clique no link abaixo para ser redirecionado ao seu banco.</p>
184
- </br>
185
- <button type="button" title="Finalizar compra" class="button btn-proceed-checkout btn-checkout" onclick="window.location='<?php echo $urldomoip ?>/Instrucao.do?token=<?php echo $url ?>'"><span><span>Ir ao Banco</span></span></button>
186
- <?php endif; ?>
187
- <?php if($opcaopg['forma_pagamento']== "BoletoBancario"):?>
188
-
189
- <script type="text/javascript"> jQuery(document).ready(function(){
190
- jQuery('#showXml').modal('toggle');
191
- });</script>
192
- <h3>Boleto Bancário</h3>
193
- <h3>Clique no botão abaixo para imprimir o seu boleto.</h3>
194
- <button class="btn btn-primary btn buttonmoip" data-toggle="modal" href="#showXml" >Imprimir Boleto</button>
195
- </div>
196
- <div class="modal" id="showXml" >
197
- <div class="modal-header">
198
- <button class="close" data-dismiss="modal">x</button>
199
- <h3>Boleto Bancário - Bradesco</h3>
200
- </div>
201
- <div class="modal-body"></div>
202
- </div>
203
- <?php endif; ?>
204
- <?php
205
-
206
- $tipoderecebimento = $standard->getConfigData('tipoderecebimento');
207
- if($tipoderecebimento == "0"){
208
- $tipoderecebimento = "Parcelado";
209
- }else{
210
- $tipoderecebimento = "AVista";
211
- }
212
- if($opcaopg['forma_pagamento'] == "CartaoCredito"): ?>
213
- <h3>Cartão de Crédito</h3>
214
- <div class="loader"/>Por favor, aguarde!</br><img src="<?php echo $this->getSkinUrl('O2TI/moip/imagem/ajax-loader.gif'); ?>" border="0"></div>
215
- <div id="Errocartao"></div>
216
- <script type="text/javascript">
217
- jQuery(document).ready(function() {
218
- jQuery("#token").val(jQuery("#MoipWidget").attr("data-token"));
219
- jQuery("#sendToMoip2").click(function() {
220
- sendToCreditCard2();
221
- jQuery(".loader").css({
222
- display: "block"
223
- });
224
- jQuery("#Errocartao").css({
225
- display: "none"
226
- });
227
- jQuery("#statusmoip").css({
228
- display: "none"
229
- });
230
- jQuery("#moiperro").css({
231
- display: "none"
232
- });
233
- jQuery("#statusmoipadd").css({
234
- display: "none"
235
- });
236
- jQuery("#idmoip").css({
237
- display: "none"
238
- });
239
- });
240
- });
241
- sendToCreditCard2 = function() {
242
- var settings = {
243
- "Forma": "CartaoCredito",
244
- "Instituicao": jQuery("#instituicao").val(),
245
- "Parcelas": jQuery("#Parcelas").val(),
246
- "Recebimento": "<?php echo $tipoderecebimento ?>",
247
- "CartaoCredito": {
248
- "Numero": jQuery("input[name=Numero]").val(),
249
- "Expiracao": jQuery("input[name=Expiracao]").val(),
250
- "CodigoSeguranca": jQuery("input[name=CodigoSeguranca]").val(),
251
- "Portador": {
252
- "Nome": jQuery("input[name=Portador]").val(),
253
- "DataNascimento": jQuery("input[name=DataNascimento]").val(),
254
- "Telefone": jQuery("input[name=Telefone]").val(),
255
- "Identidade": jQuery("input[name=CPF]").val()
256
- }
257
- }
258
- }
259
- MoipWidget(settings);
260
- };
261
- </script>
262
- <div id="refazercartao" style="display:none;width:87%;">
263
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('O2TI/moip/js/novamascara.js');?>"></script>
264
- <script type="text/javascript" src="<?php echo $this->getSkinUrl('O2TI/moip/js/validacao.js');?>"></script>
265
- <div class="well">
266
- <h3>Não foi possível concluir o pagamento, por favor reveja os dados e tente novamente.</h3>
267
- <ul class="repay-form">
268
- <li>
269
- <h3>Dados do Cartão</h3>
270
- </li>
271
- <li>
272
- <label>Parcelas:</label>
273
- <select id="Parcelas" >
274
- <?php
275
- $valor = $totalparaparcelado;
276
- $parcelamento = $api->getParcelamento(number_format($valor, 2, ".", "."));
277
- ?>
278
- <?php foreach ($parcelamento as $k => $v):?>
279
- <option value="<?php echo $k ?>"><?php echo $k . "x R$ " . $v['valor'] . " | Total: R$ " .$v['total']."" ?></option>
280
- <?php endforeach; ?>
281
- </select>
282
- </li>
283
- <li>
284
- <label>Institui&ccedil;&atilde;o:</label>
285
- <select id="instituicao">
286
- <option value="Visa">Visa</option>
287
- <option value="Mastercard">Mastercard</option>
288
- <option value="AmericanExpress">AmericanExpress</option>
289
- <option value="Hipercard">Hipercard</option>
290
- <option value="Diners">Diners</option>
291
- </select>
292
- </li>
293
- <li>
294
- <div>
295
- <label>Numero do Cart&atilde;o:</label>
296
- <input type="text" id="Numero" name="Numero" value="">
297
- </div>
298
- <div>
299
- <label>CVV:</label>
300
- <input type="text" id="CodigoSeguranca" name="CodigoSeguranca" value="" size="4">
301
- </div>
302
- </li>
303
- <li>
304
- <label>Expira&ccedil;&atilde;o:</label>
305
- <input type="text" id="Expiracao" name="Expiracao" value="" onkeypress="return txtBoxFormat(this, '99/99', event);" maxlength="5" placeholder="Ex. 10/15" size="5">
306
- </li>
307
- <li>
308
- <h3>Dados do Títular do Cartão</h3>
309
- </li>
310
- <li>
311
- <label>Portador:</label>
312
- <input type="text" id="Portador" name="Portador" value="">
313
- </li>
314
- <li>
315
- <label>CPF:</label>
316
- <input type="text" id="CPF" name="CPF" value="">
317
- </li>
318
- <li>
319
- <label>Data Nascimento:</label>
320
- <input type="text" id="DataNascimento" name="DataNascimento" onkeypress="return txtBoxFormat(this, '99/99/9999', event);" maxlength="10" placeholder="Ex. 10/10/1985" value=""><br>
321
- </li>
322
- <li>
323
- <label>Telefone:</label>
324
- <input type="text" id="Telefone" name="Telefone" value="" onkeypress="return txtBoxFormat(this, '(99)9999-9999', event);" placeholder="Ex. (11)9999-9999" maxlength="14" ><br>
325
- </li>
326
- <li>
327
- <button id="sendToMoip2" class="btn buttonmoip">Pagar Agora</button>
328
- </li>
329
- </ul>
330
- </div>
331
- </div>
332
- <div id="pgcartao">
333
- <div id="statusmoip"></div>
334
- <div id="statusmoipadd"></div>
335
- <div id="moiperro"></div>
336
- <div id="idmoip"></div>
337
- </div>
338
-
339
- <?php endif; ?>
340
-
341
- </div>
342
-
343
- <div id="Descr_pedido" >
344
- <h3>Detalhes de seu pedido</h3>
345
- <div id="Descr_corpo">
346
- <h4>O Número do seu pedido é:</h4>
347
- #<?php echo $sale_id ?>
348
- <h4>Seu pedido será enviado por:</h4>
349
- <?php echo $order->getShippingDescription(); ?>
350
- </div>
351
- <div id="Descr_produto" >
352
- <h4>Descrição do seu pedido</h4>
353
- <?php echo $this->getChildHtml('order_items') ?>
354
-
355
- <div class="nome_prod_label">Nome</div>
356
- <div class="qty_prod_label">Qtd</div>
357
- <div class="price_prod_label">Preço</div>
358
- <?php $orderItems = $order -> getItemsCollection();
359
- foreach ($orderItems as $item) {
360
- $product_sku = $item -> sku;
361
- $product_name = $item -> getName();
362
- $_product = Mage::getModel('catalog/product') -> load($item->getProductId());
363
- $cats = $_product -> getCategoryIds();
364
- $category_name = Mage::getModel('catalog/category') -> load($cats[0]) -> getName();
365
- $price = $item->getPrice();
366
- $qty = $item -> getQtyOrdered();
367
- $product_image = $item -> getThumbnailUrl();
368
- echo '<div class="nome_prod_label">'.$product_name.'</div>';
369
- echo '<div class="qty_prod_label">'.number_format($qty, 0).'</div>';
370
- echo '<div class="price_prod_label">R$ '.number_format($price,2).'</div>';
371
- }
372
- echo '<div class="total_prod_label">Valor do pedido com eventuais descontos e frete de R$ '.number_format($order->getGrandTotal(),2).'</div>';
373
-
374
- ?>
375
- </div>
376
- </div>
377
- <script type="text/javascript">
378
- jQuery(document).ready(function(){
379
- jQuery("#resultado").hide();
380
- jQuery("#token").val("<?php echo $url; ?>");
381
- jQuery("#boleto").ready(function(){
382
- sendTomoip();
383
- });
384
- });
385
- sendTomoip = function() {
386
- var settings = {
387
- <?php if($refazerpagamento != "1") { echo $meio; } ?>
388
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "BoletoBancario" ) { echo ('"Forma": "BoletoBancario"');} ?>
389
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "DebitoBancario" ) { echo ('"Forma": "DebitoBancario","Instituicao":"'.$bandeira.'"');} ?>
390
- };
391
- MoipWidget(settings);
392
- <?php
393
- if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo ('jQuery("#refazercartao").css({display:"block"});');
394
- echo('jQuery("#Errocartao").css({display:"none"});');
395
- }
396
- ?>
397
- };
398
- var sucesso = function(data){
399
- meio = data.TaxaMoIP;
400
- jQuery("#statusmoip").html("");
401
- jQuery("#statusmoipadd").html("");
402
- jQuery("#idmoip").html("");
403
- jQuery("#moiperro").html("");
404
- jQuery("#Errocartao").css({display:"block"});
405
- jQuery("#statusmoip").css({display:"block"});
406
- jQuery("#moiperro").css({display:"block"});
407
- jQuery("#statusmoipadd").css({display:"block"});
408
- jQuery("#idmoip").css({display:"block"});
409
-
410
- if (meio == undefined){
411
- jQuery(".loader").css({display:"none"});
412
- jQuery("#pgboletoedeb").removeAttr('disabled');
413
- <?php if($opcaopg['forma_pagamento'] == "BoletoBancario"): ?>
414
- jQuery(".modal-body").append("<iframe hspace=\"0\" vspace=\"0\" width=\"650\" height=\"900\" scrolling= \"no\" frameBorder=\"0\" allowtransparency=\"true\" src=\"<?php echo $urldomoip ?>/Instrucao.do?token=<?php echo $url ?>\"> </iframe>");
415
- <?php endif; ?>
416
- }else{
417
- jQuery("#pgcartao").removeAttr('disabled');
418
- if (data.Status == "Cancelado"){
419
- jQuery("#refazercartao").css({display:"block"});
420
- jQuery(".loader").css({display:"none"});
421
- jQuery("#statusmoip").html("<h3>Pagamento Cancelado</h3>");
422
- jQuery("#statusmoipadd").html("Transação não aprovada.");
423
- jQuery("#idmoip").html("O número de sua transação no Moip é: ");
424
- jQuery("#idmoip").html(data.CodigoMoIP);
425
- jQuery("#moiperro").html("<h4>Motivo:</h4>");
426
- var motivo = JSON.stringify(data.Classificacao.Descricao);
427
- if(motivo == '"Desconhecido"'){
428
- jQuery("#moiperro").html("Seus dados estão incorretos ou não podemos envia-los a operadora de crédito.");
429
- }
430
- if(motivo == '"Transação não processada"'){
431
- jQuery("#moiperro").html("O pagamento não pode ser processado.</br>Por favor, tente novamente.</br>Caso o erro persista, entre em contato com o nosso atendimento.");
432
- }
433
- if(motivo == '"Política de segurança do Moip"'){
434
- jQuery("#moiperro").html("Pagamento não autorizado.</br>Entre em contato com o seu banco antes de uma nova tentativa.");
435
- }
436
- if(motivo == '"Política de segurança do Banco Emissor"'){
437
- jQuery("#moiperro").html("O pagamento não foi autorizado pelo Banco Emissor do seu Cartão.</br>Entre em contato com o Banco para entender o motivo e refazer o pagamento..");
438
- }
439
- if(motivo == '"Cartão vencido"'){
440
- jQuery("#moiperro").html("A validade do seu Cartão expirou.</br>Escolha outra forma de pagamento para concluir o pagamento.");
441
- }
442
- if(motivo == '"Dados inválidos"'){
443
- jQuery("#moiperro").html("Dados informados inválidos.</br>Você digitou algo errado durante o preenchimento dos dados do seu Cartão.</br>Certifique-se de que está usando o Cartão correto e faça uma nova tentativa.");
444
- }
445
- }
446
- if (data.Status == "EmAnalise"){
447
- jQuery(".loader").css({display:"none"});
448
- jQuery("#statusmoip").html("<h3>Pagamento Aguardando Aprovação</h3>");
449
- jQuery("#statusmoipadd").html("Por favor, aguarde a em analise da transação. Assim que for alterado o status você será informado via e-mail.");
450
- jQuery("#idmoip").html("O número de sua transação no Moip é: ");
451
- jQuery("#idmoip").html(data.CodigoMoIP);
452
- }
453
- if (data.Status == "Autorizado"){
454
- jQuery(".loader").css({display:"none"});
455
- jQuery("#statusmoip").html("<h3>Pagamento Aprovado</h3>");
456
- jQuery("#statusmoipadd").html("Por favor, aguarde o processo de envio.");
457
- jQuery("#idmoip").html("O número de sua transação no Moip é: ");
458
- jQuery("#idmoip").html(data.CodigoMoIP);
459
- }
460
- }
461
- };
462
- var erroValidacao = function(data) {
463
- for (i=0; i<data.length; i++) {
464
- Moip = data[i];
465
- infosMoip = 'Ops, parece que há algo errado:';
466
- for(j in Moip){
467
- atributo = j;
468
- if(atributo == "Mensagem"){
469
- valor = Moip[j];
470
- infosMoip += '<li class="erro" style="list-style: none;margin-left: 29px;font-weight: bold;">'+valor +'</li>';
471
- if(valor != "Informe o token da Instrução"){
472
- jQuery("#refazercartao").css({display:"block"});
473
- }
474
- }
475
- }
476
- jQuery("#Errocartao").html("");
477
- jQuery("#Errocartao").css({display:"block"});
478
- jQuery("#Errocartao").html(infosMoip);
479
- infosMoip = '';
480
- jQuery(".loader").css({display:"none"});
481
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo('jQuery("#Errocartao").html("");'); } ?>
482
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo('jQuery("#Errocartao2").html(infosMoip);'); } ?>
483
- <?php if($refazerpagamento == "1" && $opcaopg['forma_pagamento'] == "CartaoCredito" ) { echo('jQuery(".loader").css({display:"none"});'); } ?>
484
- }
485
- };
486
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/O2TI/moip/horizontal_form.phtml CHANGED
@@ -225,7 +225,7 @@ jQuery(document).ready(function() {
225
  </div>
226
  <div class="span9">
227
  <h3>Boleto</h3>
228
- <p class="desc"><?php echo $this->getTextoBoleto() ?></p>
229
  <?php if(!$this->boletoDisponivel('valid')): ?>
230
  <div class="method-price">Valor</div>
231
  <?php endif; ?>
@@ -251,7 +251,7 @@ jQuery(document).ready(function() {
251
  <h3>Transferência Online</h3>
252
  <div id="pagdebito">
253
  Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
254
- <?php echo $this->getTextoTranferencia(); ?>
255
  <div class="method-price">Valor</div>
256
  <p class="method-price"><?php echo $this->getTransferenciaPrice(); ?></p>
257
  </div>
225
  </div>
226
  <div class="span9">
227
  <h3>Boleto</h3>
228
+ <p class="desc"><?php echo $this->getTextoBoleto("texto") ?></p>
229
  <?php if(!$this->boletoDisponivel('valid')): ?>
230
  <div class="method-price">Valor</div>
231
  <?php endif; ?>
251
  <h3>Transferência Online</h3>
252
  <div id="pagdebito">
253
  Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
254
+ <?php echo $this->getTextoTranferencia("texto"); ?>
255
  <div class="method-price">Valor</div>
256
  <p class="method-price"><?php echo $this->getTransferenciaPrice(); ?></p>
257
  </div>
app/design/frontend/default/default/template/O2TI/moip/info.phtml CHANGED
@@ -2,6 +2,7 @@
2
  <?php
3
 
4
  $standard = Mage::getModel('moip/standard');
 
5
  $validopara_moip = $standard->getConfigData('validopara_moip');
6
  $html = '';
7
  $order = Mage::getModel('sales/order');
@@ -23,7 +24,7 @@
23
  {
24
  $tokenpagamento = $venda['xml_return'];
25
  $bandeira = $venda['bandeira'];
26
- $Formadepagamento = $venda['formapg'];
27
  $orderid = $venda['sale_id'];
28
  }
29
  }
@@ -34,25 +35,26 @@
34
  FROM moip
35
  WHERE realorder_id IN (".$order.") AND status ='Sucesso'";
36
  $_venda = $connR->fetchAll($sql);
 
37
  foreach($_venda as $venda)
38
  {
39
  $tokenpagamento = $venda['xml_return'];
40
  $bandeira = $venda['bandeira'];
41
- $Formadepagamento = $venda['formapg'];
42
  $orderid = $venda['sale_id'];
43
  $num_parcelas = $venda['num_parcelas'];
44
  $ult_dig = $venda['ult_dig'];
 
45
  }
46
  }
47
-
48
  $imagem = $this->getSkinUrl('O2TI/moip/imagem/'.$bandeira.'.png');
49
- if($Formadepagamento == "BoletoBancario"){
50
  $html = "<b> Pago via </b>". $titulo .", por: </br><b>" . $formadepagamento . "</b></br><img src='" . $imagem . "' style='width:80px;float:left;margin:5px;' border='0'>" . "<div id='repagar'><a href='https://www.moip.com.br/Instrucao.do?token=".$tokenpagamento."' style='background: none repeat scroll 0 0 #337BAA;margin:10px;border-radius:3px;padding:10px 5px;width:140px;float:left; text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif' target='_blank'>Imprimir Boleto</a></div>";
51
  }
52
- if($Formadepagamento == "DebitoBancario"){
53
  $html = "<b> Pago via </b>". $titulo .", por: </br><b>" . $formadepagamento . "</b></br><img src='" . $imagem . "' style='width:80px;float:left;margin:5px;' border='0'>" . "<div id='repagar'><a href='https://www.moip.com.br/Instrucao.do?token=".$tokenpagamento."' style='background: none repeat scroll 0 0 #337BAA;margin:10px;border-radius:3px;padding:10px 5px;width:140px;float:left; text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif' target='_blank'>Realizar Transferência</a></div>";
54
  }
55
- if($Formadepagamento == "CartaoCredito"){
56
 
57
 
58
  $params = array(
2
  <?php
3
 
4
  $standard = Mage::getModel('moip/standard');
5
+ $formadepagamento = "";
6
  $validopara_moip = $standard->getConfigData('validopara_moip');
7
  $html = '';
8
  $order = Mage::getModel('sales/order');
24
  {
25
  $tokenpagamento = $venda['xml_return'];
26
  $bandeira = $venda['bandeira'];
27
+ $formadepagamento = $venda['formapg'];
28
  $orderid = $venda['sale_id'];
29
  }
30
  }
35
  FROM moip
36
  WHERE realorder_id IN (".$order.") AND status ='Sucesso'";
37
  $_venda = $connR->fetchAll($sql);
38
+
39
  foreach($_venda as $venda)
40
  {
41
  $tokenpagamento = $venda['xml_return'];
42
  $bandeira = $venda['bandeira'];
43
+ $formadepagamento = $venda['formapg'];
44
  $orderid = $venda['sale_id'];
45
  $num_parcelas = $venda['num_parcelas'];
46
  $ult_dig = $venda['ult_dig'];
47
+
48
  }
49
  }
 
50
  $imagem = $this->getSkinUrl('O2TI/moip/imagem/'.$bandeira.'.png');
51
+ if($formadepagamento == "BoletoBancario"){
52
  $html = "<b> Pago via </b>". $titulo .", por: </br><b>" . $formadepagamento . "</b></br><img src='" . $imagem . "' style='width:80px;float:left;margin:5px;' border='0'>" . "<div id='repagar'><a href='https://www.moip.com.br/Instrucao.do?token=".$tokenpagamento."' style='background: none repeat scroll 0 0 #337BAA;margin:10px;border-radius:3px;padding:10px 5px;width:140px;float:left; text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif' target='_blank'>Imprimir Boleto</a></div>";
53
  }
54
+ if($formadepagamento == "DebitoBancario"){
55
  $html = "<b> Pago via </b>". $titulo .", por: </br><b>" . $formadepagamento . "</b></br><img src='" . $imagem . "' style='width:80px;float:left;margin:5px;' border='0'>" . "<div id='repagar'><a href='https://www.moip.com.br/Instrucao.do?token=".$tokenpagamento."' style='background: none repeat scroll 0 0 #337BAA;margin:10px;border-radius:3px;padding:10px 5px;width:140px;float:left; text-align:center;color:#ffffff;font-weight:normal;font-size:13px;display:block;text-decoration:none;font-family:Arial,Helvetica,sans-serif' target='_blank'>Realizar Transferência</a></div>";
56
  }
57
+ if($formadepagamento == "CartaoCredito"){
58
 
59
 
60
  $params = array(
app/design/frontend/default/default/template/O2TI/moip/redirect.phtml CHANGED
@@ -3,7 +3,10 @@ $token = "";
3
  $moipToken = "";
4
  $tokenpagamento = "";
5
  $refazerpagamento = "";
6
- $data = $this->getRequest()->getParams();
 
 
 
7
  $standard = Mage::getModel('moip/standard');
8
  $form = new Varien_Data_Form();
9
  $api = Mage::getModel('moip/api');
@@ -46,8 +49,6 @@ if ($opcaopg['forma_pagamento'] == "BoletoBancario") {
46
  $vencpedido = $opcaopg['timevencimentoboleto'];
47
  }
48
 
49
- if (!$data['token']) {
50
-
51
  //primeira compra grava os dados.
52
 
53
  if (!$moipToken) {
@@ -109,38 +110,6 @@ if (!$data['token']) {
109
  $url = $tokenpagamento;
110
  $status = "Sucesso";
111
  }
112
- }
113
-
114
- //refaz o pedido vindo do my account.
115
- else {
116
-
117
- $LastRealOrderId = $data['realorder'];
118
- $conn = Mage::getSingleton('core/resource')->getConnection('core_read');
119
- $sql = "SELECT * FROM moip WHERE sale_id IN ({$LastRealOrderId})";
120
- $_venda = $conn->fetchAll($sql);
121
- foreach ($_venda as $venda) {
122
- $tokenpagamento = $venda['xml_return'];
123
- $url = $venda['xml_return'];
124
- $incrementId = $venda['realorder_id'];
125
- $order = $data['realorder'];
126
- $opcaopg['forma_pagamento'] = $venda['formapg'];
127
- $bandeira = $venda['bandeira'];
128
- $connRW = Mage::getSingleton('core/resource')->getConnection('core_write');
129
- $results = $connRW->query("UPDATE `moip` SET vencimento='".$vencpedido."' WHERE sale_id IN (".$LastRealOrderId.");");
130
- }
131
- $refazerpagamento = 1;
132
- $url = $venda['xml_return'];
133
- $order = Mage::getModel('sales/order')->load($incrementId);
134
- $session = Mage::getSingleton('customer/session');
135
-
136
- $oque = $order->getIsVirtual();
137
- if ($oque) {
138
- $shippingId = $order->getBillingAddress()->getId();
139
- }
140
- else {
141
- $shippingId = $order->getShippingAddress()->getId();
142
- }
143
- }
144
 
145
 
146
 
@@ -158,7 +127,7 @@ $totalparaparcelado = $order->getGrandTotal();
158
  _gaq.push(['_trackPageview']);
159
  _gaq.push(['_addTrans',
160
  '<?php echo $sale_id ?>',
161
- '<?php echo Mage::app()->getStore() ?>',
162
  '<?php echo ($totalparaparcelado - $order->getShippingAmount()) ?>',
163
  '0',
164
  '<?php echo $order->getShippingAmount() ?>',
3
  $moipToken = "";
4
  $tokenpagamento = "";
5
  $refazerpagamento = "";
6
+ if(!$this->getRequest()->getParams())
7
+ $data = $this->getRequest()->getParams();
8
+ else
9
+ $data = "";
10
  $standard = Mage::getModel('moip/standard');
11
  $form = new Varien_Data_Form();
12
  $api = Mage::getModel('moip/api');
49
  $vencpedido = $opcaopg['timevencimentoboleto'];
50
  }
51
 
 
 
52
  //primeira compra grava os dados.
53
 
54
  if (!$moipToken) {
110
  $url = $tokenpagamento;
111
  $status = "Sucesso";
112
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
 
114
 
115
 
127
  _gaq.push(['_trackPageview']);
128
  _gaq.push(['_addTrans',
129
  '<?php echo $sale_id ?>',
130
+ 'Loja',
131
  '<?php echo ($totalparaparcelado - $order->getShippingAmount()) ?>',
132
  '0',
133
  '<?php echo $order->getShippingAmount() ?>',
app/design/frontend/default/default/template/O2TI/moip/vertical_form.phtml CHANGED
@@ -217,7 +217,7 @@ jQuery(document).ready(function() {
217
  </div>
218
  <div class="span9">
219
  <h3>Boleto</h3>
220
- <p class="desc"><?php echo $this->getTextoBoleto() ?></p>
221
  <p class="method-price"><?php if(!$this->boletoDisponivel('valid')){echo $this->getBoletoPrice();}else{echo $this->boletoDisponivel('text');} ?></p>
222
  </div>
223
  </div>
@@ -225,7 +225,7 @@ jQuery(document).ready(function() {
225
  <h3>Transferência Online</h3>
226
  <div id="pagdebito">
227
  Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
228
- <?php echo $this->getTextoTranferencia(); ?>
229
  <p class="method-price"><?php echo $this->getBoletoPrice(); ?></p>
230
  </div>
231
  <ul class="inline input-switcher input-switcher-4">
217
  </div>
218
  <div class="span9">
219
  <h3>Boleto</h3>
220
+ <p class="desc"><?php echo $this->getTextoBoleto("texto") ?></p>
221
  <p class="method-price"><?php if(!$this->boletoDisponivel('valid')){echo $this->getBoletoPrice();}else{echo $this->boletoDisponivel('text');} ?></p>
222
  </div>
223
  </div>
225
  <h3>Transferência Online</h3>
226
  <div id="pagdebito">
227
  Após finalizar o pedido você será redirecionado ao site do seu banco...</br>
228
+ <?php echo $this->getTextoTranferencia("texto"); ?>
229
  <p class="method-price"><?php echo $this->getBoletoPrice(); ?></p>
230
  </div>
231
  <ul class="inline input-switcher input-switcher-4">
app/design/frontend/default/default/template/O2TI/onestepcheckout/daskboard/onepage/billing/billing_form.phtml CHANGED
@@ -2,11 +2,16 @@
2
  $myStatus = Mage::getSingleton('customer/session')->isLoggedIn();
3
  if (Mage::getSingleton('customer/session')->isLoggedIn()) {
4
  $customer = Mage::getSingleton('customer/session')->getCustomer();
5
- $fullname = $customer->getName();
6
  $firstname = $customer->getFirstname();
7
  $lastname = $customer->getLastname();
8
  $region_select = $this->escapeHtml($this->getAddress()->getRegion());
9
  $taxvat = $customer->getTaxvat();
 
 
 
 
 
 
10
  }
11
  $_dob = $this->getLayout()->createBlock('customer/widget_dob');
12
  $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
@@ -19,7 +24,7 @@ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
19
  <li class="customer-name field">
20
  <label for="billing:firstname" class="required"><em>*</em>Nome</label>
21
  <div class="input-box">
22
- <input type="text" id="billing:firstname" name="billing[firstname]" value="<?php echo $fullname; ?>" title="Nome" class="input-text required-entry" autocomplete="off">
23
  </div>
24
  </li>
25
  <li class="field name-lastname">
2
  $myStatus = Mage::getSingleton('customer/session')->isLoggedIn();
3
  if (Mage::getSingleton('customer/session')->isLoggedIn()) {
4
  $customer = Mage::getSingleton('customer/session')->getCustomer();
 
5
  $firstname = $customer->getFirstname();
6
  $lastname = $customer->getLastname();
7
  $region_select = $this->escapeHtml($this->getAddress()->getRegion());
8
  $taxvat = $customer->getTaxvat();
9
+ } else {
10
+ $fullname = "";
11
+ $firstname = "";
12
+ $lastname = "";
13
+ $region_select = "";
14
+ $taxvat = "";
15
  }
16
  $_dob = $this->getLayout()->createBlock('customer/widget_dob');
17
  $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat');
24
  <li class="customer-name field">
25
  <label for="billing:firstname" class="required"><em>*</em>Nome</label>
26
  <div class="input-box">
27
+ <input type="text" id="billing:firstname" name="billing[firstname]" value="<?php echo $firstname; ?>" title="Nome" class="input-text required-entry" autocomplete="off">
28
  </div>
29
  </li>
30
  <li class="field name-lastname">
app/design/frontend/default/default/template/O2TI/onestepcheckout/daskboard/onepage/shipping/shipping_form.phtml CHANGED
@@ -8,6 +8,14 @@
8
  $taxvat = $customer->getTaxvat();
9
 
10
  }
 
 
 
 
 
 
 
 
11
  ?>
12
  <script type="text/javascript" src="<?php echo $this->getJsUrl('O2TI/onestepcheckout/shipping.js') ?>"></script>
13
 
8
  $taxvat = $customer->getTaxvat();
9
 
10
  }
11
+ else
12
+ {
13
+ $fullname = "";
14
+ $firstname = "";
15
+ $lastname = "";
16
+ $region_select = "";
17
+ $taxvat = "";
18
+ }
19
  ?>
20
  <script type="text/javascript" src="<?php echo $this->getJsUrl('O2TI/onestepcheckout/shipping.js') ?>"></script>
21
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>o2ti_moip</name>
4
- <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://o2ti.com/licensa_checkout_moip.txt">Free to use with MoIP</license>
7
  <channel>community</channel>
@@ -31,11 +31,11 @@ Repayment, if you customer input wrong date he can try repaying it without have
31
  Multi store split rates&#xD;
32
  Store terms and conditions (Mandatory in all stores following the federal law (http://legislacao.planalto.gov.br/legisla/legislacao.nsf/Viw_Identificacao/DEC%207.962-2013?OpenDocument) N&#xBA; 7.962, DE 15 DE MAR&#xC7;O DE 2013&lt;/a&gt;)&#xD;
33
  &lt;/ul&gt;</description>
34
- <notes>Update - Adding taxvat and dob</notes>
35
  <authors><author><name>O2TI</name><user>o2ti</user><email>contato@o2ti.com</email></author></authors>
36
  <date>2013-11-23</date>
37
- <time>16:38:38</time>
38
- <contents><target name="magelocal"><dir name="O2TI"><dir name="All"><dir name="Helper"><file name="Data.php" hash="5cfce5f56526da7a17ac2e402b39dd6e"/></dir><dir name="etc"><file name="config.xml" hash="b4343acf6c3f25bb750a287f0b4fa7fc"/><file name="system.xml" hash="9bad1e5078f470994567ce7a68d71688"/></dir></dir><dir name="Moip"><dir name="Block"><dir name="Adminhtml"><dir name="moip"><dir name="Info"><file name="Customermessages.php" hash="bf0e3f76f8ab4dde138a4125fe2fb07c"/><file name="Info.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><file name="Info.php" hash="4853c2ffc2f36c75120e9902bf5dff8c"/><dir name="Standard"><file name="Form.php" hash="49fa15ffa539e7612ce4c591c2007f8f"/><file name="Info.php" hash="f4e7f00836f8ba5867a2ec1157523b03"/><file name="O do raul Redirect.php" hash="feadd9ccc7dcd52a463ccb7470276f32"/><file name="Redirect.php" hash="4a34f719a3d37c3af9e3850c305400fc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="36af3c64c424820d5e6124528959d296"/></dir><dir name="Model"><file name="Api.php" hash="a933d57e29c3f00d4eda47506fed3b06"/><file name="Observer.php" hash="80db718dbfb7e493ad235e3bdf4d6baf"/><file name="Orders.php" hash="a6023047810e0652e9e6248d67704b44"/><dir name="Source"><file name="Ambiente.php" hash="439a9f70669af322f1de30937551a1f0"/><file name="FormasPagamento.php" hash="bfa5931fe39fc22841acc789e71e6e92"/><file name="Layout.php" hash="4cc1e4fb27e773ce93a1c6b9bc571158"/></dir><file name="Standard.php" hash="e1f6ff1a99a69cd2b63d792a80fb209e"/></dir><dir name="controllers"><file name="IndexController.php" hash="9e6de72f21ef42c17eb2f1682c48f647"/><file name="StandardController.php" hash="8e13730c492d46420afd4325f3ee7c72"/></dir><dir name="etc"><file name="adminhtml.xml" hash="75bde86c187ceb24042233abde0f88b0"/><file name="config.xml" hash="a2a6ea2a5db2060d674de7cf981770fc"/><file name="system.xml" hash="095eed9864b7901df117b42e68ddf8c2"/></dir><dir name="sql"><dir name="moip_setup"><file name="mysql4-install-0.1.0.php" hash="bff338f70822b4af170073029558b511"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="f09a912732a76ff087f3d2b01539a202"/><file name="mysql4-upgrade-0.1.0-0.2.1.php" hash="441725100d074d7d212bae4bc07db841"/><file name="mysql4-upgrade-0.2.1-0.2.2.php" hash="7e22a5f81d536e1b024e07d60df808d7"/><file name="mysql4-upgrade-0.2.1-0.2.3.php" hash="b6a1c02303eb5be5ac7c2c9bee962bb0"/></dir></dir></dir><dir name="Onestepcheckout"><dir name="Block"><dir name="Adminhtml"><dir name="Form"><dir name="Renderer"><dir name="Config"><file name="Createfield.php" hash="bca92a144c0564105091fb78ec75a235"/></dir></dir></dir><dir name="Onestepcheckout"><dir name="Edit"><file name="Form.php" hash="011556489a4e2e987d622bbc193ca5db"/><dir name="Tab"><file name="Form.php" hash="786a5a8d580250f8ab5c9def49f197c4"/></dir><file name="Tabs.php" hash="3e49037ed0f2ba7d930e7675398a6fd6"/></dir><file name="Edit.php" hash="b4a2a6c99cea16750408cb5c89c97ad8"/><file name="Grid.php" hash="8aa5742a2357b1c632ef26ce2a71e217"/><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="e23140dfc8b567ba7d957afeabee6643"/><dir name="View"><dir name="Tab"><dir name="Info"><file name="Customermessages.php" hash="bf0e3f76f8ab4dde138a4125fe2fb07c"/><file name="Deliverydate.php" hash="64ea9d43321c8b51d74621ee90916553"/></dir></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Addtimerange.php" hash="08419845203bd4dd3421cdcab5cf241d"/></dir></dir></dir></dir></dir><file name="Onestepcheckout.php" hash="d0253394f7c3515fcc4ba81f34f192d4"/></dir><dir name="Checkout"><dir name="Onepage"><dir name="Billing"><file name="Sortbilling.php" hash="c92c36496e94fd9dc6da3aa8e53dda86"/></dir><file name="Billing.php" hash="ef4f0f010d7e288c6664002060fa5b8a"/><dir name="Review"><file name="Options.php" hash="67b005f43191b0be294d4ecf50c37485"/></dir><dir name="Shipping"><file name="Sortshipping.php" hash="9af5fa1281bf34c37e4c92fb40a4873c"/></dir><file name="Shipping.php" hash="a56afd3502132baab34c4a9419aa7e3c"/><dir name="Shippingmethod"><file name="Deliverydate.php" hash="36ba92c13f59f21c33902ea1146d6cdc"/></dir></dir><file name="Top.php" hash="70e323dbbb57a29579c13412a8a2443f"/></dir><file name="Onestepcheckout.php" hash="e8b954f14acebf579bb0910813e899e4"/><dir name="Sales"><dir name="Info"><file name="Customermessages.php" hash="6666cedaeb9597e0c5f90cf7cc2934ae"/><file name="Deliverydate.php" hash="225859a718283767ca44b1ddccfd4bfb"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="fb1897f58ca16ce27184dc0790f0ecf2"/></dir><dir name="Model"><dir name="Customer"><file name="Customer.php" hash="b1b26b8e170bd4ed90b27fb9fcea8481"/></dir><dir name="Entity"><file name="Tipopessoa.php" hash="af14c8d054fe25c7f8cef5f89fcb65da"/></dir><dir name="Mysql4"><dir name="Onestepcheckout"><file name="Collection.php" hash="13781c0c51fcde3c6afc4f31054a6e03"/></dir><file name="Onestepcheckout.php" hash="5777de55ec60a045e86dc9de10f768bd"/></dir><file name="Observer.php" hash="44377bd0b109de1eda91457b46e4b7de"/><file name="Onestepcheckout.php" hash="3630794e4b1fda8229b82826e49a702f"/><dir name="Sales"><dir name="Quote"><file name="Address.php" hash="09cba85a351b58f16b4daba5be0d5595"/></dir></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="801e98156ee12fd5fa08f30c37b64086"/></dir><file name="Status.php" hash="3e1d737e4f8cef4b6a591240efdafd83"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Checkuncheck.php" hash="a232182e727d089f1a730d1e0bb05996"/><file name="Disablefield.php" hash="d5a2192f21d68175ed7375f3a6e7f85a"/><file name="Formatdate.php" hash="7e3eeae0c5a8ebba85ed501ef513b192"/><file name="Optionaddfield.php" hash="3b9cf9f6a67931b7d56c21c9e8cb48b3"/><file name="Optionhidefield.php" hash="847e6415e5d037ae3b3572e1df28f347"/><file name="Pagelayout.php" hash="676dd09a7aad20c0e3cfdb74e9f7f87f"/><dir name="Payment"><file name="Allowedmethods.php" hash="ea276b37bfdf6bcdbc302a76df966523"/></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="801e98156ee12fd5fa08f30c37b64086"/></dir><file name="Subscribenewletter.php" hash="48dd4e572839e532e5321854bdd07750"/><dir name="form"><file name="Createfield.php" hash="6cc825f91bc3f787b7a84e5369422f39"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="OnestepcheckoutController.php" hash="260a95696953ed372ed3d22ab52e7c85"/></dir><file name="IndexController.php" hash="48992c41e4c2d3b3bd49af4111342bb6"/><file name="TestController.php" hash="b7814c4a88338b9e031f26274bd7d07a"/></dir><dir name="etc"><file name="config.xml" hash="a8cd520ee0f0b93c00a01d95951da4fa"/><file name="system.xml" hash="4f4a7ba947697496e254bee6e13e1eb7"/></dir><dir name="sql"><dir name="onestepcheckout_setup"><file name="mysql4-install-0.1.0.php" hash="0bcce57d95b0c63e8efb86faad1d798c"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="6d20a03343747545eb10c276631114c8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="o2ti_moip.xml" hash="13a5c858c1cdf8e638749179a6f97d2c"/><file name="o2ti_onestepcheckout.xml" hash="98ea87bd4113f491aade48e87c3fde46"/></dir><dir name="template"><dir name="O2TI"><dir name="cadastro"><dir name="customer"><dir name="form"><file name="edit.phtml" hash="1cdb3179dd883809bd7357409ca0a5d0"/></dir></dir><dir name="persistent"><dir name="checkout"><dir name="onepage"><file name="billing.phtml" hash="5fc8ba027dfb92482c1a85d88e211cda"/></dir></dir><dir name="customer"><dir name="form"><file name="register.phtml" hash="08b5b692abfce0e689d243c3478de77e"/></dir></dir></dir></dir><dir name="moip"><file name="horizontal_form.phtml" hash="c4e233a61dd36ffa4f53e43957bcb01e"/><file name="info.phtml" hash="36f9702366b28218c528f5c9224299ac"/><file name="redirect.phtml" hash="4855c866b9a245880812dd5b0c1dd575"/><file name="vertical_form.phtml" hash="052e5fbbab1b5958a68f6e249faa7c26"/></dir><dir name="onestepcheckout"><dir name="daskboard"><dir name="onepage"><file name="agreements.phtml" hash="5b762aa76287b160fcbec8fed8b789e8"/><dir name="billing"><file name="billing_form.phtml" hash="20a5d9317b1692ed781a57a292b7fd20"/></dir><file name="billing.phtml" hash="3ace016f656dd99a2f18b35ec13740a5"/><file name="correio.phtml" hash="461b88fcbf6adffc4f23c5905932bafa"/><file name="coupon.phtml" hash="7e3ffcc7e51d78c7607d91bc40ed68db"/><file name="forgotpassword.phtml" hash="2fb80e3ec1a8151dde497743b149c6e9"/><file name="local.xml" hash="08c7ce351c502056fb9ee3a14a9b065a"/><file name="login.phtml" hash="85198c4e290aec3eaf72057cf04d5ca8"/><dir name="payment"><file name="methods.phtml" hash="235eecfb6272e525a70cab79785852e2"/></dir><file name="payment.phtml" hash="3501af6f3b4c108f11bc2bc6d58a9d87"/><dir name="review"><file name="button.phtml" hash="4d5c7c5a2d70f85ec324e79c7e81946b"/><file name="info.phtml" hash="68556313d6d0943c153d69ebd00c8c4b"/><file name="item.phtml" hash="6d03f032beb41906fbdb5217248d7fba"/><dir name="options"><file name="additional.phtml" hash="724b44c70421d206a77f72c2c151cf40"/></dir><file name="options.phtml" hash="c0281a5dc15905296ac8e93a9d13071b"/><file name="totals.phtml" hash="6e857d144768ed8faa0be977b547b32f"/></dir><file name="review.phtml" hash="763347e2b03553d1bf791b3c6df093a3"/><dir name="shipping"><file name="shipping_form.phtml" hash="0936e1db3b68284036a1a3209e419233"/></dir><file name="shipping.phtml" hash="69f97ed0e0eb2e391b1e761bb8b1ffc7"/><dir name="shipping_method"><file name="available.phtml" hash="beb161e099aa19eed56299ed2a1297a6"/></dir><file name="shipping_method.phtml" hash="81273ccaacec7232626afcabf851141d"/></dir></dir><file name="daskboard.phtml" hash="2b0c8ac8715c4b8cf86f3aa04df99ece"/><file name="emptyupdate.phtml" hash="7bf34446254428a5c42740731127b435"/><file name="onepage.phtml" hash="149f7077a5a959968afc0da9a0d952db"/><dir name="sales"><dir name="order"><dir name="info"><file name="customermessages.phtml" hash="1d783fb503426ca094f02525dd1a827b"/><file name="customermessages.phtml~" hash="aa6199bb564edbf6d950fa154b624c02"/><file name="deliverydate.phtml" hash="24d4d3fafafca91bb44b2159695c24bc"/><file name="deliverydate.phtml~" hash="75709e72398a0df41305dee259dc3de2"/></dir><file name="info.phtml" hash="a5b6b9223ec3d5da923e04f8becc84f3"/><dir name="view"><dir name="tab"><dir name="info"><file name="customermessages.phtml" hash="7de74c4598eceef2d17215585252f740"/><file name="deliverydate.phtml" hash="6e1260a32a1f6801ac185ef38a33114c"/></dir><file name="info.phtml" hash="57f4718dbfaa448976954368c1932b2b"/></dir></dir></dir></dir></dir></dir><dir name="customer"><dir><dir name="widget"><file name="dob.phtml" hash="7ac1cc016c90251d0c423d7347e9d715"/><file name="taxvat.phtml" hash="67333f779d3c7503209ce057a3b44c34"/></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="O2TI"><dir name="moip"><file name="form.phtml" hash="e381151a9b66f0fdc6cd74d019cefb5e"/><file name="form.phtml~" hash="d18dc2a82a6b8b1ded39ed9e542af22a"/><file name="info.phtml" hash="096244f0df0969b073bd2ca7490fff43"/><file name="redirect.phtml" hash="a928915ad38266f0ca462a6e434cbb77"/><file name="redirect.phtml~" hash="80c02137afddf8f2c4b4d8c75cfda1a4"/></dir><dir name="onestepcheckout"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><dir name="info"><file name="Customermessages.phtml" hash="bfaea7d5c4300ae8c73c31f3472c5a14"/><file name="Deliverydate.phtml" hash="b5040d3cb30cc31c0c63bfaa81d3c7ac"/></dir><file name="info.phtml" hash="1b6b38d40668d878487f1710a28c1e69"/></dir></dir></dir></dir></dir><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="c6aa8255f5c494857c557a21a59e3367"/></dir></dir></dir></dir></dir><dir name="layout"><file name="o2ti_onestepcheckout.xml" hash="b601985811c14292e18b3e242ac6cc93"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="O2TI_All.xml" hash="0112972a847c93755903dd13239eae1f"/><file name="O2TI_Moip.xml" hash="e2cef22a0e5c667be681851c03dbffd4"/><file name="O2TI_Onestepcheckout.xml" hash="dbcbe66be4612fd2942b6f6847b834c9"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="O2TI_Onestepcheckout.csv" hash="4bff2b6a4c9e13f8d9ea2a287c10c85f"/><dir name="template"><dir name="email"><file name="statusmail_cancelado_o2ti.html" hash="867805dc1d9ecd61f96e1134cdacecf1"/><file name="statusmail_cancelado_o2ti.html~" hash="cb69a0a0e730655677332354bf3dd4a2"/></dir></dir></dir><dir name="pt_BR"><file name="O2TI_Onestepcheckout.csv" hash="4bff2b6a4c9e13f8d9ea2a287c10c85f"/><dir name="template"><dir name="email"><file name="statusmail_cancelado_o2ti.html" hash="867805dc1d9ecd61f96e1134cdacecf1"/><file name="statusmail_cancelado_o2ti.html~" hash="cb69a0a0e730655677332354bf3dd4a2"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="O2TI"><dir name="moip"><dir name="css"><file name="bootstrap.css" hash="5ebc088f9c8fdbfba712a95e41dff8df"/><file name="formulario.css" hash="dba3b96839a8e49fd4dff529ded7a2db"/><file name="formulario_horizontal.css" hash="66643c0d1384786bc0b120285d7518cd"/><file name="prettify.css" hash="ecd4a5d6c0cbee10b168f6aa000c64ea"/></dir><dir name="imagem"><file name="AmericanExpress.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="BancoDoBrasil.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="Banrisul.png" hash="d4ac02772b3f521a92542b849e679092"/><file name="Bradesco.png" hash="ceb6a2aaf263fc359fabaf6f102cb8db"/><file name="Diners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="Hipercard.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="Itau.png" hash="40d639fe4b14d063d810589577f0eb7d"/><file name="Mastercard.png" hash="836466c092121163320e9e6279f11f8b"/><file name="Visa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><dir name="azul"><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/></dir><file name="bank-icon.png" hash="3f73473ce94841328abffa85fe314f3e"/><file name="bank-title.png" hash="3d33028c41f80b1042ef5500ea05c0d1"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto-icon.png" hash="c4560588cb6e12ca7756788648493ad3"/><file name="boleto.png" hash="fe1b591868a937c40e1a095b1313e3ed"/><dir name="branco"><file name="ababoleto.png" hash="f3baeeaf41a6528905b97d825ac67cf7"/><file name="abacartao.png" hash="684d8a48644f55f2c3504da1f51a350b"/><file name="abatransf.png" hash="ea6f42607620ea8f8dca34c1fc98b42b"/><file name="e-sedex.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="e-sedex.png" hash="19c04d68032987d594c4da51e3b66094"/><file name="pac.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pac.png" hash="17aaff70f9924a8e37166429ceae549e"/><file name="sedex.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><file name="sedex.png" hash="15e2831cad72756b9a9bf99a6e2af5e5"/></dir><file name="cc-title.png" hash="f3064bbd55a468c5bb717762e93a8a3b"/><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="flatrate_flatrate.gif" hash="a27796835310fe5e57ed11b5792d5530"/><file name="freeshipping_freeshipping.gif" hash="80af8e1da4c9cf03b1856f47bf7e27a4"/><file name="info.png" hash="051e3f3601ab034ba27615e42dd5cfdf"/><file name="logomoip.png" hash="0f09942428d649b8aa6b8999f0c60c0b"/><file name="logomoipck.png" hash="684da020f45d07cbee27cc231920d72a"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moipamerican.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="moipbanner2.png" hash="1c24f42b0cbb05f00ea779d3a719ebe1"/><file name="moipdiners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="pedroteixeira_correios_40010.gif" hash="e260acafdeaf0f493350cfa5c34b8be1"/><file name="pedroteixeira_correios_40096.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="pedroteixeira_correios_41068.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pedroteixeira_correios_41106.gif" hash="dcb56e6f42c1730736b44363d7c01e11"/><file name="pedroteixeira_correios_81019.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><dir name="preto"><file name="ababoleto.png" hash="a728ac886e7e57744e62bba2c7b0b969"/><file name="abacartao.png" hash="50b6103cb5b7e51a27f3c26eaa7411d0"/><file name="abatransf.png" hash="61eec388356aea3230fc5d811ef996ea"/></dir><file name="printer.png" hash="f4bfc0849dceba778a6e7f252b7a3b9c"/><dir name="verde"><file name="ababoleto.png" hash="3c3e047acb513328ebdfd6bfc9c339fa"/><file name="abacartao.png" hash="809d7e21263b3474d1685087a91ca18a"/><file name="abatransf.png" hash="0e3e6bdba002a69be78e126f3e7e775f"/></dir><dir name="vermelho"><file name="ababoleto.png" hash="0d84f05b75c8e964122c4f087268bd1c"/><file name="abacartao.png" hash="63b85e98d5b77c6a373bc351080e60f4"/><file name="abatransf.png" hash="0bef9fec6108a914ebc108f3c600c013"/></dir><file name="warning.png" hash="3fbeef48124ccb146e082a9d20977b3e"/></dir></dir><dir name="onestepcheckout"><dir name="css"><file name="960grid_onestepcheckout.css" hash="0c8bb8b5a5519baf105c81be27fb8213"/><dir name="images"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="f6ccaf1eda8a79a2bd44643e5a346990"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="95f9cceeb9d742dd3e917ec16ed754f8"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="f040b255ca13e693da34ab33c7d6b554"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c18cd01623c7fed23c80d53e2f5e7c78"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="5f1847175ba18c41322cb9cb0581e0fb"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="d26e8f463195a7b86f86b7d550cfc114"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e5a8f32e28fd5c27bf0fed33c8a8b9b5"/><file name="ui-bg_gloss-wave_35_000_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="384c3f17709ba0f809b023b6e7b10b84"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="b806658954cb4d16ade8977af737f486"/><file name="ui-icons_222222_256x240.png" hash="ebe6b6902a408fbf9cac6379a1477525"/><file name="ui-icons_228ef1_256x240.png" hash="ff1768bb6731566603303d106e298bec"/><file name="ui-icons_ef8c08_256x240.png" hash="ef9a6ccfe3b14041928ddc708665b226"/><file name="ui-icons_ffd27a_256x240.png" hash="ab8c30acc0e3608fb79e01fccf832c70"/><file name="ui-icons_ffffff_256x240.png" hash="342bc03f6264c75d3f1d7f99e34295b9"/></dir><file name="jquery.fancybox-1.3.1.css" hash="cc35aa3ea29cb379c994b32050f313b6"/><file name="onestepcheckout.css" hash="776267da336ae7dabe485db3189bfb95"/></dir><dir name="images"><file name="01.png" hash="89fcfa0fa3fe73b65ca2420269c26158"/><file name="02.png" hash="dab59c7515b3366465a4dd57d2d9deb2"/><file name="03.png" hash="dcaf4232529a8f9ac304db7553397450"/><file name="04.png" hash="68ae3a414c70c12f340e7c801d854c53"/><file name="05.png" hash="6e8fe636f0593ed3cf00d140e68d2308"/><file name="2_clock.png" hash="bb35645e06d8687f818a583202ad1615"/><file name="ajax-loader-tr.gif" hash="7a46575a4d543082fd6174c593aa762a"/><file name="bkg-giftmessage.png" hash="e0dc9f84c687af088bcc04e3ea200e0b"/><file name="bkg-step-review.png" hash="589914598419e9625c9358df8f68d49c"/><file name="bkg_form-search.gif" hash="2ca36eb80ea705e063409153f3821f78"/><file name="bkg_header.jpg" hash="0211c47be1493bd0ec72949c47932b81"/><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="btn_checkout.gif" hash="d2060501e14e86c29e28137130e5726e"/><file name="clock.gif" hash="c6d5badd40d31d332470c32a03d2e98c"/><file name="clock.png" hash="73f0648c150bde4ef647db7e9c14ca3e"/><file name="demo-large_03.png" hash="86628bc4358a1c1f655534d4ae15be45"/><file name="demo-large_04.png" hash="0d5f289d2bf808165be000b318a50591"/><file name="demo-large_05.png" hash="5fd1386a147ea4768553c3990d9db804"/><file name="demo-large_051.png" hash="452556661a99a8fb20c6d507ce9506f0"/><file name="demo-large_06.png" hash="247e5412b0e70bf164a428374b15a82d"/><file name="demo-large_07.png" hash="9deac604cfb692b2e17f0f53c3aebbf4"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="7a46575a4d543082fd6174c593aa762a"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="grid-cal.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="line-gradient.gif" hash="bef9df2d426124dbe3d496407219190b"/><file name="loja_segura.jpg" hash="5e65fd40952db665746dc485d67fdf35"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="validation_advice_bg.gif" hash="b85432906de8985a8b14eeb2dc652d3c"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="O2TI"><dir name="moip"><dir name="css"><file name="bootstrap.css" hash="1899fb29f3f5bdeeaecd6d16485614e6"/><file name="formulario.css" hash="54920765fd12d894d8db2fbcdb3e62d5"/><file name="prettify.css" hash="ecd4a5d6c0cbee10b168f6aa000c64ea"/></dir><dir name="imagem"><file name="AmericanExpress.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="BancoDoBrasil.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="Banrisul.png" hash="d4ac02772b3f521a92542b849e679092"/><file name="Bradesco.png" hash="ceb6a2aaf263fc359fabaf6f102cb8db"/><file name="Diners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="Hipercard.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="Itau.png" hash="40d639fe4b14d063d810589577f0eb7d"/><file name="Mastercard.png" hash="836466c092121163320e9e6279f11f8b"/><file name="Visa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="ababoleto.png" hash="f99320f749bda4f07e6bc9b43d4d98ad"/><file name="abacartao.png" hash="b9a2891519c51bb19ac1647dd5640be3"/><file name="abatransf.png" hash="86de71f37be51f0f19838c8952dd34b5"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto.png" hash="fe1b591868a937c40e1a095b1313e3ed"/><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="flatrate_flatrate.gif" hash="a27796835310fe5e57ed11b5792d5530"/><file name="freeshipping_freeshipping.gif" hash="80af8e1da4c9cf03b1856f47bf7e27a4"/><file name="info.png" hash="051e3f3601ab034ba27615e42dd5cfdf"/><file name="logomoip.png" hash="0f09942428d649b8aa6b8999f0c60c0b"/><file name="logomoipck.png" hash="684da020f45d07cbee27cc231920d72a"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moipamerican.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="moipdiners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="pedroteixeira_correios_40010.gif" hash="3defbbdc7b3d5ca86d76643260182320"/><file name="pedroteixeira_correios_40096.gif" hash="33cd0845f40648cf0584b13fa65c942a"/><file name="pedroteixeira_correios_41068.gif" hash="f317b7dff693b6598c78829c1592b2b7"/><file name="pedroteixeira_correios_41106.gif" hash="f317b7dff693b6598c78829c1592b2b7"/><file name="pedroteixeira_correios_81019.gif" hash="3defbbdc7b3d5ca86d76643260182320"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="O2TI"><dir name="all"><file name="logo.png" hash="7523d376189aad175dad07c900ab1ec4"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="O2TI"><file name="jquery.js" hash="f8e2833ce2f57ec673b178be7eefbd82"/><dir name="moip"><file name="bootstrap-modal.js" hash="3a3af727bfc923a064aad1b02681ffce"/><file name="bootstrap.min.js" hash="5eb1cb055ddcf2f7b2b662f73f56cf1f"/></dir><dir name="onestepcheckout"><file name="billing.js" hash="9f72ed92f8f51401ebc2fe98395c6af0"/><file name="change-events.js" hash="5f2255559e09fc56f24c72acd80e70b7"/><file name="jquery.fancybox-1.3.1.js" hash="9a060de18420a5bbe26cfa42b8470323"/><file name="noConflict.js" hash="afdd9b4ecb226d898fe655136f849752"/><file name="novamascara.js" hash="b9e977ef39649ce38245bb62a855551b"/><file name="shipping.js" hash="d9045d07a8adddeaddf25a757e86cf44"/><file name="validacao.js" hash="73cb3aaf10be38fda611e8cff9abd550"/></dir></dir></dir><dir name="."><file name="MOIP_README.md" hash="4dfe78832a2ea8f2f065cd150c846658"/><file name="MOIP_SQL_MANUAL_INSTALATION.txt" hash="57eca9f3b60792f0e4925ff14b8eba0e"/></dir></target></contents>
39
  <compatible/>
40
  <dependencies><required><php><min>4.0.0</min><max>5.5.5</max></php><extension><name>openssl</name><min>1</min><max>1</max></extension><extension><name>PDO</name><min>1</min><max>1</max></extension><extension><name>mcrypt</name><min>1</min><max>1</max></extension></required></dependencies>
41
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>o2ti_moip</name>
4
+ <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://o2ti.com/licensa_checkout_moip.txt">Free to use with MoIP</license>
7
  <channel>community</channel>
31
  Multi store split rates&#xD;
32
  Store terms and conditions (Mandatory in all stores following the federal law (http://legislacao.planalto.gov.br/legisla/legislacao.nsf/Viw_Identificacao/DEC%207.962-2013?OpenDocument) N&#xBA; 7.962, DE 15 DE MAR&#xC7;O DE 2013&lt;/a&gt;)&#xD;
33
  &lt;/ul&gt;</description>
34
+ <notes>Update - Nasp Return transition</notes>
35
  <authors><author><name>O2TI</name><user>o2ti</user><email>contato@o2ti.com</email></author></authors>
36
  <date>2013-11-23</date>
37
+ <time>18:32:03</time>
38
+ <contents><target name="magelocal"><dir name="O2TI"><dir name="All"><dir name="Helper"><file name="Data.php" hash="5cfce5f56526da7a17ac2e402b39dd6e"/></dir><dir name="etc"><file name="config.xml" hash="b4343acf6c3f25bb750a287f0b4fa7fc"/><file name="system.xml" hash="9bad1e5078f470994567ce7a68d71688"/></dir></dir><dir name="Moip"><dir name="Block"><dir name="Adminhtml"><dir name="moip"><dir name="Info"><file name="Customermessages.php" hash="bf0e3f76f8ab4dde138a4125fe2fb07c"/><file name="Info.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><file name="Info.php" hash="4853c2ffc2f36c75120e9902bf5dff8c"/><dir name="Standard"><file name="Form.php" hash="f93521922122f4d4d5f829a67c0754c2"/><file name="Info.php" hash="f4e7f00836f8ba5867a2ec1157523b03"/><file name="Redirect.php" hash="4a34f719a3d37c3af9e3850c305400fc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="36af3c64c424820d5e6124528959d296"/></dir><dir name="Model"><file name="Api.php" hash="7665643700d3250f738ceafcf711d0e9"/><file name="Observer.php" hash="80db718dbfb7e493ad235e3bdf4d6baf"/><file name="Orders.php" hash="a6023047810e0652e9e6248d67704b44"/><dir name="Source"><file name="Ambiente.php" hash="439a9f70669af322f1de30937551a1f0"/><file name="FormasPagamento.php" hash="bfa5931fe39fc22841acc789e71e6e92"/><file name="Layout.php" hash="4cc1e4fb27e773ce93a1c6b9bc571158"/></dir><file name="Standard.php" hash="e1f6ff1a99a69cd2b63d792a80fb209e"/></dir><dir name="controllers"><file name="IndexController.php" hash="9e6de72f21ef42c17eb2f1682c48f647"/><file name="StandardController.php" hash="a650ac7deec89cb7954b84a4ce9510b3"/></dir><dir name="etc"><file name="adminhtml.xml" hash="75bde86c187ceb24042233abde0f88b0"/><file name="config.xml" hash="2b34d5356eaeefbcd13e7eeb657b7ac7"/><file name="system.xml" hash="abf7ba5636a5c869d7782e1177e78839"/></dir><dir name="sql"><dir name="moip_setup"><file name="mysql4-install-0.1.0.php" hash="bff338f70822b4af170073029558b511"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="f09a912732a76ff087f3d2b01539a202"/><file name="mysql4-upgrade-0.1.0-0.2.1.php" hash="441725100d074d7d212bae4bc07db841"/><file name="mysql4-upgrade-0.2.1-0.2.2.php" hash="7e22a5f81d536e1b024e07d60df808d7"/><file name="mysql4-upgrade-0.2.1-0.2.3.php" hash="b6a1c02303eb5be5ac7c2c9bee962bb0"/></dir></dir></dir><dir name="Onestepcheckout"><dir name="Block"><dir name="Adminhtml"><dir name="Form"><dir name="Renderer"><dir name="Config"><file name="Createfield.php" hash="bca92a144c0564105091fb78ec75a235"/></dir></dir></dir><dir name="Onestepcheckout"><dir name="Edit"><file name="Form.php" hash="011556489a4e2e987d622bbc193ca5db"/><dir name="Tab"><file name="Form.php" hash="786a5a8d580250f8ab5c9def49f197c4"/></dir><file name="Tabs.php" hash="3e49037ed0f2ba7d930e7675398a6fd6"/></dir><file name="Edit.php" hash="b4a2a6c99cea16750408cb5c89c97ad8"/><file name="Grid.php" hash="8aa5742a2357b1c632ef26ce2a71e217"/><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="e23140dfc8b567ba7d957afeabee6643"/><dir name="View"><dir name="Tab"><dir name="Info"><file name="Customermessages.php" hash="bf0e3f76f8ab4dde138a4125fe2fb07c"/><file name="Deliverydate.php" hash="64ea9d43321c8b51d74621ee90916553"/></dir></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Addtimerange.php" hash="08419845203bd4dd3421cdcab5cf241d"/></dir></dir></dir></dir></dir><file name="Onestepcheckout.php" hash="d0253394f7c3515fcc4ba81f34f192d4"/></dir><dir name="Checkout"><dir name="Onepage"><dir name="Billing"><file name="Sortbilling.php" hash="c92c36496e94fd9dc6da3aa8e53dda86"/></dir><file name="Billing.php" hash="ef4f0f010d7e288c6664002060fa5b8a"/><dir name="Review"><file name="Options.php" hash="67b005f43191b0be294d4ecf50c37485"/></dir><dir name="Shipping"><file name="Sortshipping.php" hash="9af5fa1281bf34c37e4c92fb40a4873c"/></dir><file name="Shipping.php" hash="a56afd3502132baab34c4a9419aa7e3c"/><dir name="Shippingmethod"><file name="Deliverydate.php" hash="36ba92c13f59f21c33902ea1146d6cdc"/></dir></dir><file name="Top.php" hash="70e323dbbb57a29579c13412a8a2443f"/></dir><file name="Onestepcheckout.php" hash="e8b954f14acebf579bb0910813e899e4"/><dir name="Sales"><dir name="Info"><file name="Customermessages.php" hash="6666cedaeb9597e0c5f90cf7cc2934ae"/><file name="Deliverydate.php" hash="225859a718283767ca44b1ddccfd4bfb"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="fb1897f58ca16ce27184dc0790f0ecf2"/></dir><dir name="Model"><dir name="Customer"><file name="Customer.php" hash="b1b26b8e170bd4ed90b27fb9fcea8481"/></dir><dir name="Entity"><file name="Tipopessoa.php" hash="af14c8d054fe25c7f8cef5f89fcb65da"/></dir><dir name="Mysql4"><dir name="Onestepcheckout"><file name="Collection.php" hash="13781c0c51fcde3c6afc4f31054a6e03"/></dir><file name="Onestepcheckout.php" hash="5777de55ec60a045e86dc9de10f768bd"/></dir><file name="Observer.php" hash="44377bd0b109de1eda91457b46e4b7de"/><file name="Onestepcheckout.php" hash="3630794e4b1fda8229b82826e49a702f"/><dir name="Sales"><dir name="Quote"><file name="Address.php" hash="09cba85a351b58f16b4daba5be0d5595"/></dir></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="801e98156ee12fd5fa08f30c37b64086"/></dir><file name="Status.php" hash="3e1d737e4f8cef4b6a591240efdafd83"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Checkuncheck.php" hash="a232182e727d089f1a730d1e0bb05996"/><file name="Disablefield.php" hash="d5a2192f21d68175ed7375f3a6e7f85a"/><file name="Formatdate.php" hash="7e3eeae0c5a8ebba85ed501ef513b192"/><file name="Optionaddfield.php" hash="3b9cf9f6a67931b7d56c21c9e8cb48b3"/><file name="Optionhidefield.php" hash="847e6415e5d037ae3b3572e1df28f347"/><file name="Pagelayout.php" hash="676dd09a7aad20c0e3cfdb74e9f7f87f"/><dir name="Payment"><file name="Allowedmethods.php" hash="ea276b37bfdf6bcdbc302a76df966523"/></dir><dir name="Shipping"><file name="Allowedmethods.php" hash="801e98156ee12fd5fa08f30c37b64086"/></dir><file name="Subscribenewletter.php" hash="48dd4e572839e532e5321854bdd07750"/><dir name="form"><file name="Createfield.php" hash="6cc825f91bc3f787b7a84e5369422f39"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="OnestepcheckoutController.php" hash="260a95696953ed372ed3d22ab52e7c85"/></dir><file name="IndexController.php" hash="48992c41e4c2d3b3bd49af4111342bb6"/><file name="TestController.php" hash="b7814c4a88338b9e031f26274bd7d07a"/></dir><dir name="etc"><file name="config.xml" hash="a8cd520ee0f0b93c00a01d95951da4fa"/><file name="system.xml" hash="4f4a7ba947697496e254bee6e13e1eb7"/></dir><dir name="sql"><dir name="onestepcheckout_setup"><file name="mysql4-install-0.1.0.php" hash="0bcce57d95b0c63e8efb86faad1d798c"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="6d20a03343747545eb10c276631114c8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="o2ti_moip.xml" hash="13a5c858c1cdf8e638749179a6f97d2c"/><file name="o2ti_onestepcheckout.xml" hash="98ea87bd4113f491aade48e87c3fde46"/></dir><dir name="template"><dir name="O2TI"><dir name="cadastro"><dir name="customer"><dir name="form"><file name="edit.phtml" hash="1cdb3179dd883809bd7357409ca0a5d0"/></dir></dir><dir name="persistent"><dir name="checkout"><dir name="onepage"><file name="billing.phtml" hash="5fc8ba027dfb92482c1a85d88e211cda"/></dir></dir><dir name="customer"><dir name="form"><file name="register.phtml" hash="08b5b692abfce0e689d243c3478de77e"/></dir></dir></dir></dir><dir name="moip"><file name="horizontal_form.phtml" hash="903a0d8de7ac81e312fd233cce2d1617"/><file name="info.phtml" hash="ea1a3b7be6db68bb6625575355c21d07"/><file name="redirect.phtml" hash="1d302d419b7855d702b5f04078062024"/><file name="vertical_form.phtml" hash="be6ba2e46561296e833d64143699f77d"/></dir><dir name="onestepcheckout"><dir name="daskboard"><dir name="onepage"><file name="agreements.phtml" hash="5b762aa76287b160fcbec8fed8b789e8"/><dir name="billing"><file name="billing_form.phtml" hash="7088aaade4b7cc82514b66573f72e64d"/></dir><file name="billing.phtml" hash="3ace016f656dd99a2f18b35ec13740a5"/><file name="correio.phtml" hash="461b88fcbf6adffc4f23c5905932bafa"/><file name="coupon.phtml" hash="7e3ffcc7e51d78c7607d91bc40ed68db"/><file name="forgotpassword.phtml" hash="2fb80e3ec1a8151dde497743b149c6e9"/><file name="local.xml" hash="08c7ce351c502056fb9ee3a14a9b065a"/><file name="login.phtml" hash="85198c4e290aec3eaf72057cf04d5ca8"/><dir name="payment"><file name="methods.phtml" hash="235eecfb6272e525a70cab79785852e2"/></dir><file name="payment.phtml" hash="3501af6f3b4c108f11bc2bc6d58a9d87"/><dir name="review"><file name="button.phtml" hash="4d5c7c5a2d70f85ec324e79c7e81946b"/><file name="info.phtml" hash="68556313d6d0943c153d69ebd00c8c4b"/><file name="item.phtml" hash="6d03f032beb41906fbdb5217248d7fba"/><dir name="options"><file name="additional.phtml" hash="724b44c70421d206a77f72c2c151cf40"/></dir><file name="options.phtml" hash="c0281a5dc15905296ac8e93a9d13071b"/><file name="totals.phtml" hash="6e857d144768ed8faa0be977b547b32f"/></dir><file name="review.phtml" hash="763347e2b03553d1bf791b3c6df093a3"/><dir name="shipping"><file name="shipping_form.phtml" hash="87bf26552fb0c331c012a2b40c7ce059"/></dir><file name="shipping.phtml" hash="69f97ed0e0eb2e391b1e761bb8b1ffc7"/><dir name="shipping_method"><file name="available.phtml" hash="beb161e099aa19eed56299ed2a1297a6"/></dir><file name="shipping_method.phtml" hash="81273ccaacec7232626afcabf851141d"/></dir></dir><file name="daskboard.phtml" hash="2b0c8ac8715c4b8cf86f3aa04df99ece"/><file name="emptyupdate.phtml" hash="7bf34446254428a5c42740731127b435"/><file name="onepage.phtml" hash="149f7077a5a959968afc0da9a0d952db"/><dir name="sales"><dir name="order"><dir name="info"><file name="customermessages.phtml" hash="1d783fb503426ca094f02525dd1a827b"/><file name="customermessages.phtml~" hash="aa6199bb564edbf6d950fa154b624c02"/><file name="deliverydate.phtml" hash="24d4d3fafafca91bb44b2159695c24bc"/><file name="deliverydate.phtml~" hash="75709e72398a0df41305dee259dc3de2"/></dir><file name="info.phtml" hash="a5b6b9223ec3d5da923e04f8becc84f3"/><dir name="view"><dir name="tab"><dir name="info"><file name="customermessages.phtml" hash="7de74c4598eceef2d17215585252f740"/><file name="deliverydate.phtml" hash="6e1260a32a1f6801ac185ef38a33114c"/></dir><file name="info.phtml" hash="57f4718dbfaa448976954368c1932b2b"/></dir></dir></dir></dir></dir></dir><dir name="customer"><dir><dir name="widget"><file name="dob.phtml" hash="7ac1cc016c90251d0c423d7347e9d715"/><file name="taxvat.phtml" hash="67333f779d3c7503209ce057a3b44c34"/></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="O2TI"><dir name="moip"><file name="form.phtml" hash="e381151a9b66f0fdc6cd74d019cefb5e"/><file name="info.phtml" hash="ea1a3b7be6db68bb6625575355c21d07"/><file name="redirect.phtml" hash="a928915ad38266f0ca462a6e434cbb77"/></dir><dir name="onestepcheckout"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><dir name="info"><file name="Customermessages.phtml" hash="bfaea7d5c4300ae8c73c31f3472c5a14"/><file name="Deliverydate.phtml" hash="b5040d3cb30cc31c0c63bfaa81d3c7ac"/></dir><file name="info.phtml" hash="1b6b38d40668d878487f1710a28c1e69"/></dir></dir></dir></dir></dir><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="c6aa8255f5c494857c557a21a59e3367"/></dir></dir></dir></dir></dir><dir name="layout"><file name="o2ti_onestepcheckout.xml" hash="b601985811c14292e18b3e242ac6cc93"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="O2TI_All.xml" hash="0112972a847c93755903dd13239eae1f"/><file name="O2TI_Moip.xml" hash="e2cef22a0e5c667be681851c03dbffd4"/><file name="O2TI_Onestepcheckout.xml" hash="dbcbe66be4612fd2942b6f6847b834c9"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="O2TI_Onestepcheckout.csv" hash="4bff2b6a4c9e13f8d9ea2a287c10c85f"/><dir name="template"><dir name="email"><file name="statusmail_cancelado_o2ti.html" hash="867805dc1d9ecd61f96e1134cdacecf1"/><file name="statusmail_cancelado_o2ti.html~" hash="cb69a0a0e730655677332354bf3dd4a2"/></dir></dir></dir><dir name="pt_BR"><file name="O2TI_Onestepcheckout.csv" hash="4bff2b6a4c9e13f8d9ea2a287c10c85f"/><dir name="template"><dir name="email"><file name="statusmail_cancelado_o2ti.html" hash="867805dc1d9ecd61f96e1134cdacecf1"/><file name="statusmail_cancelado_o2ti.html~" hash="cb69a0a0e730655677332354bf3dd4a2"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="O2TI"><dir name="moip"><dir name="css"><file name="bootstrap.css" hash="5ebc088f9c8fdbfba712a95e41dff8df"/><file name="formulario.css" hash="dba3b96839a8e49fd4dff529ded7a2db"/><file name="formulario_horizontal.css" hash="66643c0d1384786bc0b120285d7518cd"/><file name="prettify.css" hash="ecd4a5d6c0cbee10b168f6aa000c64ea"/></dir><dir name="imagem"><file name="AmericanExpress.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="BancoDoBrasil.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="Banrisul.png" hash="d4ac02772b3f521a92542b849e679092"/><file name="Bradesco.png" hash="ceb6a2aaf263fc359fabaf6f102cb8db"/><file name="Diners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="Hipercard.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="Itau.png" hash="40d639fe4b14d063d810589577f0eb7d"/><file name="Mastercard.png" hash="836466c092121163320e9e6279f11f8b"/><file name="Visa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><dir name="azul"><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/></dir><file name="bank-icon.png" hash="3f73473ce94841328abffa85fe314f3e"/><file name="bank-title.png" hash="3d33028c41f80b1042ef5500ea05c0d1"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto-icon.png" hash="c4560588cb6e12ca7756788648493ad3"/><file name="boleto.png" hash="fe1b591868a937c40e1a095b1313e3ed"/><dir name="branco"><file name="ababoleto.png" hash="f3baeeaf41a6528905b97d825ac67cf7"/><file name="abacartao.png" hash="684d8a48644f55f2c3504da1f51a350b"/><file name="abatransf.png" hash="ea6f42607620ea8f8dca34c1fc98b42b"/><file name="e-sedex.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="e-sedex.png" hash="19c04d68032987d594c4da51e3b66094"/><file name="pac.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pac.png" hash="17aaff70f9924a8e37166429ceae549e"/><file name="sedex.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><file name="sedex.png" hash="15e2831cad72756b9a9bf99a6e2af5e5"/></dir><file name="cc-title.png" hash="f3064bbd55a468c5bb717762e93a8a3b"/><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="flatrate_flatrate.gif" hash="a27796835310fe5e57ed11b5792d5530"/><file name="freeshipping_freeshipping.gif" hash="80af8e1da4c9cf03b1856f47bf7e27a4"/><file name="info.png" hash="051e3f3601ab034ba27615e42dd5cfdf"/><file name="logomoip.png" hash="0f09942428d649b8aa6b8999f0c60c0b"/><file name="logomoipck.png" hash="684da020f45d07cbee27cc231920d72a"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moipamerican.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="moipbanner2.png" hash="1c24f42b0cbb05f00ea779d3a719ebe1"/><file name="moipdiners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="pedroteixeira_correios_40010.gif" hash="e260acafdeaf0f493350cfa5c34b8be1"/><file name="pedroteixeira_correios_40096.gif" hash="9d0af24408b3798ab687094ab9b76199"/><file name="pedroteixeira_correios_41068.gif" hash="fc1373622266269e8b0986b637e93851"/><file name="pedroteixeira_correios_41106.gif" hash="dcb56e6f42c1730736b44363d7c01e11"/><file name="pedroteixeira_correios_81019.gif" hash="9b6771f2d93f8f73dbbc8f5584a7f580"/><dir name="preto"><file name="ababoleto.png" hash="a728ac886e7e57744e62bba2c7b0b969"/><file name="abacartao.png" hash="50b6103cb5b7e51a27f3c26eaa7411d0"/><file name="abatransf.png" hash="61eec388356aea3230fc5d811ef996ea"/></dir><file name="printer.png" hash="f4bfc0849dceba778a6e7f252b7a3b9c"/><dir name="verde"><file name="ababoleto.png" hash="3c3e047acb513328ebdfd6bfc9c339fa"/><file name="abacartao.png" hash="809d7e21263b3474d1685087a91ca18a"/><file name="abatransf.png" hash="0e3e6bdba002a69be78e126f3e7e775f"/></dir><dir name="vermelho"><file name="ababoleto.png" hash="0d84f05b75c8e964122c4f087268bd1c"/><file name="abacartao.png" hash="63b85e98d5b77c6a373bc351080e60f4"/><file name="abatransf.png" hash="0bef9fec6108a914ebc108f3c600c013"/></dir><file name="warning.png" hash="3fbeef48124ccb146e082a9d20977b3e"/></dir></dir><dir name="onestepcheckout"><dir name="css"><file name="960grid_onestepcheckout.css" hash="0c8bb8b5a5519baf105c81be27fb8213"/><dir name="images"><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="f6ccaf1eda8a79a2bd44643e5a346990"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="95f9cceeb9d742dd3e917ec16ed754f8"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="f040b255ca13e693da34ab33c7d6b554"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c18cd01623c7fed23c80d53e2f5e7c78"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="5f1847175ba18c41322cb9cb0581e0fb"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="d26e8f463195a7b86f86b7d550cfc114"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="e5a8f32e28fd5c27bf0fed33c8a8b9b5"/><file name="ui-bg_gloss-wave_35_000_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="5038a7d5d5bc3c3a565c585079798dca"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="384c3f17709ba0f809b023b6e7b10b84"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="b806658954cb4d16ade8977af737f486"/><file name="ui-icons_222222_256x240.png" hash="ebe6b6902a408fbf9cac6379a1477525"/><file name="ui-icons_228ef1_256x240.png" hash="ff1768bb6731566603303d106e298bec"/><file name="ui-icons_ef8c08_256x240.png" hash="ef9a6ccfe3b14041928ddc708665b226"/><file name="ui-icons_ffd27a_256x240.png" hash="ab8c30acc0e3608fb79e01fccf832c70"/><file name="ui-icons_ffffff_256x240.png" hash="342bc03f6264c75d3f1d7f99e34295b9"/></dir><file name="jquery.fancybox-1.3.1.css" hash="cc35aa3ea29cb379c994b32050f313b6"/><file name="onestepcheckout.css" hash="776267da336ae7dabe485db3189bfb95"/></dir><dir name="images"><file name="01.png" hash="89fcfa0fa3fe73b65ca2420269c26158"/><file name="02.png" hash="dab59c7515b3366465a4dd57d2d9deb2"/><file name="03.png" hash="dcaf4232529a8f9ac304db7553397450"/><file name="04.png" hash="68ae3a414c70c12f340e7c801d854c53"/><file name="05.png" hash="6e8fe636f0593ed3cf00d140e68d2308"/><file name="2_clock.png" hash="bb35645e06d8687f818a583202ad1615"/><file name="ajax-loader-tr.gif" hash="7a46575a4d543082fd6174c593aa762a"/><file name="bkg-giftmessage.png" hash="e0dc9f84c687af088bcc04e3ea200e0b"/><file name="bkg-step-review.png" hash="589914598419e9625c9358df8f68d49c"/><file name="bkg_form-search.gif" hash="2ca36eb80ea705e063409153f3821f78"/><file name="bkg_header.jpg" hash="0211c47be1493bd0ec72949c47932b81"/><file name="blank.gif" hash="325472601571f31e1bf00674c368d335"/><file name="btn_checkout.gif" hash="d2060501e14e86c29e28137130e5726e"/><file name="clock.gif" hash="c6d5badd40d31d332470c32a03d2e98c"/><file name="clock.png" hash="73f0648c150bde4ef647db7e9c14ca3e"/><file name="demo-large_03.png" hash="86628bc4358a1c1f655534d4ae15be45"/><file name="demo-large_04.png" hash="0d5f289d2bf808165be000b318a50591"/><file name="demo-large_05.png" hash="5fd1386a147ea4768553c3990d9db804"/><file name="demo-large_051.png" hash="452556661a99a8fb20c6d507ce9506f0"/><file name="demo-large_06.png" hash="247e5412b0e70bf164a428374b15a82d"/><file name="demo-large_07.png" hash="9deac604cfb692b2e17f0f53c3aebbf4"/><file name="fancy_close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="fancy_loading.png" hash="b1d54c240cf06e7f41e372d56919b738"/><file name="fancy_nav_left.png" hash="3f3e406102152cd8236383568a40ba35"/><file name="fancy_nav_right.png" hash="216e4bde5bddeeaa60dc3d692890a68e"/><file name="fancy_overlay.png" hash="7a46575a4d543082fd6174c593aa762a"/><file name="fancy_shadow_e.png" hash="fd4f491080d29fade5080877f1ba4c8b"/><file name="fancy_shadow_n.png" hash="18cde16379b2ceadef714d9b346d09ec"/><file name="fancy_shadow_ne.png" hash="63adf788acf193d4e4f3642d7d793125"/><file name="fancy_shadow_nw.png" hash="c820c878aedb7a7f9ebd7135a58e7c65"/><file name="fancy_shadow_s.png" hash="9b9e5c888028aaef40fe5b6a363f1e29"/><file name="fancy_shadow_se.png" hash="a8afd5a008884380ee712d177105268f"/><file name="fancy_shadow_sw.png" hash="f81cc0fee5581d76ad3cebe47e7e791b"/><file name="fancy_shadow_w.png" hash="59b0e63eb059e58d932cfd53da4d87e6"/><file name="fancy_title_left.png" hash="1582ac2d3bef6a6445bf02ceca2741cd"/><file name="fancy_title_main.png" hash="38dad6c1ed4bdc81c0bec721b2deb8c2"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="fancy_title_right.png" hash="6cbe0c935511e7f9a2555ccb6a7324c4"/><file name="fancybox-x.png" hash="168696d8a694214090ef90e029cdf393"/><file name="fancybox-y.png" hash="36a58859beb9a6b19322a37466b9f78e"/><file name="fancybox.png" hash="11e57e492ee0311540967cc7a1e6e3e2"/><file name="grid-cal.gif" hash="b1468e5239504974c689eea5d93f86d4"/><file name="line-gradient.gif" hash="bef9df2d426124dbe3d496407219190b"/><file name="loja_segura.jpg" hash="5e65fd40952db665746dc485d67fdf35"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="validation_advice_bg.gif" hash="b85432906de8985a8b14eeb2dc652d3c"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="O2TI"><dir name="moip"><dir name="css"><file name="bootstrap.css" hash="1899fb29f3f5bdeeaecd6d16485614e6"/><file name="formulario.css" hash="54920765fd12d894d8db2fbcdb3e62d5"/><file name="prettify.css" hash="ecd4a5d6c0cbee10b168f6aa000c64ea"/></dir><dir name="imagem"><file name="AmericanExpress.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="BancoDoBrasil.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="Banrisul.png" hash="d4ac02772b3f521a92542b849e679092"/><file name="Bradesco.png" hash="ceb6a2aaf263fc359fabaf6f102cb8db"/><file name="Diners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="Hipercard.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="Itau.png" hash="40d639fe4b14d063d810589577f0eb7d"/><file name="Mastercard.png" hash="836466c092121163320e9e6279f11f8b"/><file name="Visa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="ababoleto.png" hash="f99320f749bda4f07e6bc9b43d4d98ad"/><file name="abacartao.png" hash="b9a2891519c51bb19ac1647dd5640be3"/><file name="abatransf.png" hash="86de71f37be51f0f19838c8952dd34b5"/><file name="ajax-loader.gif" hash="57ca1a2085d82f0574e3ef740b9a5ead"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto.png" hash="fe1b591868a937c40e1a095b1313e3ed"/><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="flatrate_flatrate.gif" hash="a27796835310fe5e57ed11b5792d5530"/><file name="freeshipping_freeshipping.gif" hash="80af8e1da4c9cf03b1856f47bf7e27a4"/><file name="info.png" hash="051e3f3601ab034ba27615e42dd5cfdf"/><file name="logomoip.png" hash="0f09942428d649b8aa6b8999f0c60c0b"/><file name="logomoipck.png" hash="684da020f45d07cbee27cc231920d72a"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moipamerican.png" hash="40ea216476033961d50f452bf4bca4df"/><file name="moipdiners.png" hash="0f4264379e7b8ba6b1a30a3d69240ae2"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><file name="pedroteixeira_correios_40010.gif" hash="3defbbdc7b3d5ca86d76643260182320"/><file name="pedroteixeira_correios_40096.gif" hash="33cd0845f40648cf0584b13fa65c942a"/><file name="pedroteixeira_correios_41068.gif" hash="f317b7dff693b6598c78829c1592b2b7"/><file name="pedroteixeira_correios_41106.gif" hash="f317b7dff693b6598c78829c1592b2b7"/><file name="pedroteixeira_correios_81019.gif" hash="3defbbdc7b3d5ca86d76643260182320"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="O2TI"><dir name="all"><file name="logo.png" hash="7523d376189aad175dad07c900ab1ec4"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="O2TI"><file name="jquery.js" hash="f8e2833ce2f57ec673b178be7eefbd82"/><dir name="moip"><file name="bootstrap-modal.js" hash="3a3af727bfc923a064aad1b02681ffce"/><file name="bootstrap.min.js" hash="5eb1cb055ddcf2f7b2b662f73f56cf1f"/></dir><dir name="onestepcheckout"><file name="billing.js" hash="9f72ed92f8f51401ebc2fe98395c6af0"/><file name="change-events.js" hash="5f2255559e09fc56f24c72acd80e70b7"/><file name="jquery.fancybox-1.3.1.js" hash="9a060de18420a5bbe26cfa42b8470323"/><file name="noConflict.js" hash="afdd9b4ecb226d898fe655136f849752"/><file name="novamascara.js" hash="b9e977ef39649ce38245bb62a855551b"/><file name="shipping.js" hash="d9045d07a8adddeaddf25a757e86cf44"/><file name="validacao.js" hash="73cb3aaf10be38fda611e8cff9abd550"/></dir></dir></dir><dir name="."><file name="MOIP_README.md" hash="4dfe78832a2ea8f2f065cd150c846658"/><file name="MOIP_SQL_MANUAL_INSTALATION.txt" hash="57eca9f3b60792f0e4925ff14b8eba0e"/></dir></target></contents>
39
  <compatible/>
40
  <dependencies><required><php><min>4.0.0</min><max>5.5.5</max></php><extension><name>openssl</name><min>1</min><max>1</max></extension><extension><name>PDO</name><min>1</min><max>1</max></extension><extension><name>mcrypt</name><min>1</min><max>1</max></extension></required></dependencies>
41
  </package>