Tray_CheckoutApi - Version 1.1.6

Version Notes

Versão 0.1.0

- Primeira versão liberada do TrayCheckout

Versão 0.2.0

- Correção no envio do número de telefone.
- Melhorias no envio dos dados.

Versão 0.3.0

- Correções de integração com a API de Simulação de Parcelamento.
- Envio de um valor padrão ao finalizar por boleto e transferência online.
- Ajuste no envio das requisições para as APIs do TrayCheckout.
- Incrementado log personalizado no módulo.

Versão 0.4.0

- Ajustes nas URLs de integração com o TrayCheckout.

Versão 0.5.0

- Melhorias no código de integração com o TrayCheckout

Versão 0.6.0

- Melhorias na exibição das bandeiras de cartão de crédito
- Melhorias na exibição dos dados de parcelamento

Versão 0.7.0

- Melhorias no NAS (Notificação Automática de Status).

Versão 0.8.0

- Ajuste na validação dos campos enviados na integração.

Versão 0.9.0

- Ajustes no NAS (Notificação Automática de Status).

Versão 1.1.0

- Melhoria nos dados capturados para realização da análise de risco.

Versão 1.1.1

- Ajuste na captura e atualização dos dados do pedido

Versão 1.1.2

- Ajuste na exibição do link de pagamento (Detalhes do Pedido)

Versão 1.1.3

- Segregar meios de pagamento (à vista / à prazo
- Cancelamento de transação pelo painel administrativo da loja
- Seleção automática das bandeiras de cartão.
- Adicionada as Bandeiras Hiper / Hipercard
- Adicionado o pagamento por HSBC

Versão 1.1.4

- Ajustes no botão de configuração.
- Melhorias no script de finger print.

Versão 1.1.5

- Ajustes na exibição da forma de pagamento nos detalhes do pedido.
- Correção para exibir o botão de efetuar pagamento HSBC na finalização de compra.
- Exibindo a imagem da bandeira de cartão.

Versão 1.1.6

- Ajustes na exibição do parcelamento consultando direto das configurações da conta no TrayCheckout.
- Ajustes no retorno automático para atualização de status.

Download this release

Release Info

Developer TrayCheckout
Extension Tray_CheckoutApi
Version 1.1.6
Comparing to
See all releases


Code changes from version 1.1.5 to 1.1.6

app/code/community/Tray/CheckoutApi/Block/Form/Standard.php CHANGED
@@ -49,45 +49,4 @@ class Tray_CheckoutApi_Block_Form_Standard extends Mage_Payment_Block_Form
49
  }
50
  return $years;
51
  }
52
-
53
- public function getSplitSimulate($totalValue = "0")
54
- {
55
- $tcStandard = Mage::getModel('checkoutapi/standard');
56
- $tcNoSplitTaxRate = $tcStandard->getConfigData('tcNoSplitTaxRate');
57
-
58
- $tcNoSplitTaxRate = explode(",",$tcNoSplitTaxRate);
59
-
60
- $params = array(
61
- "token_account" => $tcStandard->getConfigData('token'),
62
- "payment_method_id" => "3",
63
- "price" => $totalValue
64
- );
65
-
66
-
67
- if(sizeof($tcNoSplitTaxRate) > 1){
68
- for($itc = 0; $itc < sizeof($tcNoSplitTaxRate);$itc++){
69
- $params["splits[$itc][split_transaction]"] = $tcNoSplitTaxRate[$itc];
70
- $params["splits[$itc][percentage]"] = $tcStandard->getConfigData('splitTax');
71
- }
72
- }else{
73
- $params["splits[][split_transaction]"] = "1";
74
- $params["splits[][percentage]"] = $tcStandard->getConfigData('splitTax');
75
- }
76
-
77
- $params = preg_replace("/splits\%5B\d+\%5D/","splits%5B%5D", http_build_query($params));
78
-
79
- $tcResponse = simplexml_load_string($tcStandard->getTrayCheckoutRequest("/edge/seller_splits/simulate_split",$params));
80
- $splitSimulate = array(""=>'Parcela(s)');
81
-
82
- for($iTc = 0; $iTc < (int)$tcStandard->getConfigData('tcQtdSplit'); $iTc++){
83
- if($iTc < count($tcResponse->data_response->splittings->splitting)){
84
- $splittings = $tcResponse->data_response->splittings->splitting[$iTc];
85
- $splitSimulate[(int)$splittings->split] = (string)$splittings->split . " x de R$" . number_format((float)$splittings->value_split, 2, ',','');
86
- }
87
- }
88
-
89
- $this->setData('splitSimulate', $splitSimulate);
90
-
91
- return $splitSimulate;
92
- }
93
  }
49
  }
50
  return $years;
51
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  }
app/code/community/Tray/CheckoutApi/Model/Standard.php CHANGED
@@ -656,7 +656,7 @@ class Tray_CheckoutApi_Model_Standard extends Mage_Payment_Model_Method_Abstract
656
  $frase = 'Tray - Aprovado. Pagamento (fatura) confirmado automaticamente.';
657
 
658
  $order->addStatusToHistory(
659
- $order->getStatus(), //continue setting current order status
660
  Mage::helper('checkoutapi')->__($frase), true
661
  );
662
 
656
  $frase = 'Tray - Aprovado. Pagamento (fatura) confirmado automaticamente.';
657
 
658
  $order->addStatusToHistory(
659
+ Mage_Sales_Model_Order::STATE_PROCESSING,
660
  Mage::helper('checkoutapi')->__($frase), true
661
  );
662
 
app/code/community/Tray/CheckoutApi/controllers/StandardController.php CHANGED
@@ -385,8 +385,9 @@ class Tray_CheckoutApi_StandardController extends Mage_Core_Controller_Front_Act
385
 
386
  $frase = 'Tray - Aprovado. Pagamento (fatura) confirmado automaticamente.';
387
 
 
388
  $order->addStatusToHistory(
389
- $order->getStatus(), //continue setting current order status
390
  Mage::helper('checkoutapi')->__($frase), true
391
  );
392
 
@@ -423,5 +424,35 @@ class Tray_CheckoutApi_StandardController extends Mage_Core_Controller_Front_Act
423
  }
424
  }
425
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
426
 
427
  }
385
 
386
  $frase = 'Tray - Aprovado. Pagamento (fatura) confirmado automaticamente.';
387
 
388
+
389
  $order->addStatusToHistory(
390
+ Mage_Sales_Model_Order::STATE_PROCESSING,
391
  Mage::helper('checkoutapi')->__($frase), true
392
  );
393
 
424
  }
425
  }
426
  }
427
+
428
+ public function getsplitAction()
429
+ {
430
+ $tcStandard = Mage::getModel('checkoutapi/standard');
431
+
432
+ $params = array(
433
+ "token_account" => $tcStandard->getConfigData('token'),
434
+ "price" => $this->getRequest()->getParam('price', false)
435
+ );
436
+
437
+ $method = $this->getRequest()->getParam('method', false);
438
+
439
+ $tcResponse = simplexml_load_string($tcStandard->getTrayCheckoutRequest("/edge/transactions/simulate_splitting",$params));
440
+
441
+ foreach ($tcResponse->data_response->payment_methods->payment_method as $payment_method){
442
+ if(intval($payment_method->payment_method_id) == intval($method)){
443
+ $splittings = $payment_method->splittings->splitting;
444
+ //echo "<p>Método: $payment_method->payment_method_id - $payment_method->payment_method_name </p>";
445
+ }
446
+ }
447
+
448
+
449
+ for($auxS = 0; $auxS < (int)$tcStandard->getConfigData('tcQtdSplit') && $auxS < sizeof($splittings); $auxS++){
450
+ $splitting = $splittings[$auxS];
451
+ $splitSimulate[(int)$splitting->split] = (string)$splitting->split . " x de R$" . number_format((float)$splitting->value_split, 2, ',','') . (((float)$splitting->split_rate == 0) ? " sem " : " com ") . "juros";
452
+ }
453
+
454
+ echo json_encode($splitSimulate);
455
+
456
+ }
457
 
458
  }
app/code/community/Tray/CheckoutApi/etc/config.xml CHANGED
@@ -21,7 +21,7 @@
21
  <config>
22
  <modules>
23
  <Tray_CheckoutApi>
24
- <version>1.1.5</version>
25
  </Tray_CheckoutApi>
26
  </modules>
27
  <global>
@@ -186,7 +186,6 @@
186
  <order_status>pending</order_status>
187
  <title>TrayCheckout</title>
188
  <allowspecific>1</allowspecific>
189
- <splitTax>1.99</splitTax>
190
  </traycheckoutapi>
191
  <traycheckoutapi_bankslip>
192
  <active>0</active>
@@ -194,7 +193,6 @@
194
  <order_status>pending</order_status>
195
  <title>TrayCheckout - Boleto Bancário</title>
196
  <allowspecific>1</allowspecific>
197
- <splitTax>1.99</splitTax>
198
  </traycheckoutapi_bankslip>
199
  <traycheckoutapi_onlinetransfer>
200
  <active>0</active>
@@ -202,7 +200,6 @@
202
  <order_status>pending</order_status>
203
  <title>TrayCheckout - Transferência Online</title>
204
  <allowspecific>1</allowspecific>
205
- <splitTax>1.99</splitTax>
206
  </traycheckoutapi_onlinetransfer>
207
  </payment>
208
  <checkoutapi>
21
  <config>
22
  <modules>
23
  <Tray_CheckoutApi>
24
+ <version>1.1.6</version>
25
  </Tray_CheckoutApi>
26
  </modules>
27
  <global>
186
  <order_status>pending</order_status>
187
  <title>TrayCheckout</title>
188
  <allowspecific>1</allowspecific>
 
189
  </traycheckoutapi>
190
  <traycheckoutapi_bankslip>
191
  <active>0</active>
193
  <order_status>pending</order_status>
194
  <title>TrayCheckout - Boleto Bancário</title>
195
  <allowspecific>1</allowspecific>
 
196
  </traycheckoutapi_bankslip>
197
  <traycheckoutapi_onlinetransfer>
198
  <active>0</active>
200
  <order_status>pending</order_status>
201
  <title>TrayCheckout - Transferência Online</title>
202
  <allowspecific>1</allowspecific>
 
203
  </traycheckoutapi_onlinetransfer>
204
  </payment>
205
  <checkoutapi>
app/code/community/Tray/CheckoutApi/etc/system.xml CHANGED
@@ -142,23 +142,6 @@
142
  <show_in_website>1</show_in_website>
143
  <show_in_store>1</show_in_store>
144
  </tcQtdSplit>
145
- <tcNoSplitTaxRate translate="label">
146
- <label>Parcelas sem Acréscimo</label>
147
- <frontend_type>select</frontend_type>
148
- <sort_order>8</sort_order>
149
- <source_model>checkoutapi/source_qtdsplit</source_model>
150
- <show_in_default>1</show_in_default>
151
- <show_in_website>1</show_in_website>
152
- <show_in_store>1</show_in_store>
153
- </tcNoSplitTaxRate>
154
- <splitTax translate="label">
155
- <label>Taxa de Acréscimo</label>
156
- <frontend_type>text</frontend_type>
157
- <sort_order>10</sort_order>
158
- <show_in_default>1</show_in_default>
159
- <show_in_website>1</show_in_website>
160
- <show_in_store>0</show_in_store>
161
- </splitTax>
162
  <allowspecific translate="label">
163
  <label>Tipos de Países Permitidos</label>
164
  <frontend_type>select</frontend_type>
142
  <show_in_website>1</show_in_website>
143
  <show_in_store>1</show_in_store>
144
  </tcQtdSplit>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  <allowspecific translate="label">
146
  <label>Tipos de Países Permitidos</label>
147
  <frontend_type>select</frontend_type>
app/code/community/Tray/CheckoutApi/sql/checkoutapi_setup/mysql4-install-1.1.4.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte@tray.net.br so we can send you a copy immediately.
14
+ *
15
+ * @category Tray
16
+ * @package Tray_CheckoutApi
17
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
+ */
19
+
20
+ /** @var $installer Mage_Paypal_Model_Resource_Setup */
21
+ $installer = $this;
22
+
23
+ /**
24
+ * Prepare database for install
25
+ */
26
+ $installer->startSetup();
27
+
28
+ /**
29
+ * Add paypal attributes to the:
30
+ * - sales/flat_quote_payment_item table
31
+ * - sales/flat_order table
32
+ */
33
+ //$installer->addAttribute('quote_payment', 'traycheckout_transaction_id', array());
34
+ //$installer->addAttribute('quote_payment', 'traycheckout_split_number', array());
35
+ //$installer->addAttribute('quote_payment', 'traycheckout_split_value', array());
36
+ //$installer->addAttribute('quote_payment', 'traycheckout_token_transaction', array());
37
+ //$installer->addAttribute('quote_payment', 'traycheckout_url_payment', array());
38
+ //$installer->addAttribute('quote_payment', 'traycheckout_typeful_line', array());
39
+
40
+
41
+ $installer->run("
42
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_transaction_id` VARCHAR( 255 ) NULL DEFAULT NULL;
43
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_split_number` VARCHAR( 255 ) NULL DEFAULT NULL;
44
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_split_value` VARCHAR( 255 ) NULL DEFAULT NULL;
45
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_token_transaction` VARCHAR( 255 ) NULL DEFAULT NULL;
46
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_url_payment` VARCHAR( 255 ) NULL DEFAULT NULL;
47
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_typeful_line` VARCHAR( 255 ) NULL DEFAULT NULL;
48
+
49
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_transaction_id` VARCHAR( 255 ) NULL DEFAULT NULL;
50
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_split_number` VARCHAR( 255 ) NULL DEFAULT NULL;
51
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_split_value` VARCHAR( 255 ) NULL DEFAULT NULL;
52
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_token_transaction` VARCHAR( 255 ) NULL DEFAULT NULL;
53
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_url_payment` VARCHAR( 255 ) NULL DEFAULT NULL;
54
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_typeful_line` VARCHAR( 255 ) NULL DEFAULT NULL;
55
+ ");
56
+ /**
57
+ * Prepare database after install
58
+ */
59
+
60
+ $installer->endSetup();
app/code/community/Tray/CheckoutApi/sql/checkoutapi_setup/mysql4-install-1.1.5.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte@tray.net.br so we can send you a copy immediately.
14
+ *
15
+ * @category Tray
16
+ * @package Tray_CheckoutApi
17
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
+ */
19
+
20
+ /** @var $installer Mage_Paypal_Model_Resource_Setup */
21
+ $installer = $this;
22
+
23
+ /**
24
+ * Prepare database for install
25
+ */
26
+ $installer->startSetup();
27
+
28
+ /**
29
+ * Add paypal attributes to the:
30
+ * - sales/flat_quote_payment_item table
31
+ * - sales/flat_order table
32
+ */
33
+ //$installer->addAttribute('quote_payment', 'traycheckout_transaction_id', array());
34
+ //$installer->addAttribute('quote_payment', 'traycheckout_split_number', array());
35
+ //$installer->addAttribute('quote_payment', 'traycheckout_split_value', array());
36
+ //$installer->addAttribute('quote_payment', 'traycheckout_token_transaction', array());
37
+ //$installer->addAttribute('quote_payment', 'traycheckout_url_payment', array());
38
+ //$installer->addAttribute('quote_payment', 'traycheckout_typeful_line', array());
39
+
40
+
41
+ $installer->run("
42
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_transaction_id` VARCHAR( 255 ) NULL DEFAULT NULL;
43
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_split_number` VARCHAR( 255 ) NULL DEFAULT NULL;
44
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_split_value` VARCHAR( 255 ) NULL DEFAULT NULL;
45
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_token_transaction` VARCHAR( 255 ) NULL DEFAULT NULL;
46
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_url_payment` VARCHAR( 255 ) NULL DEFAULT NULL;
47
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_typeful_line` VARCHAR( 255 ) NULL DEFAULT NULL;
48
+
49
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_transaction_id` VARCHAR( 255 ) NULL DEFAULT NULL;
50
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_split_number` VARCHAR( 255 ) NULL DEFAULT NULL;
51
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_split_value` VARCHAR( 255 ) NULL DEFAULT NULL;
52
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_token_transaction` VARCHAR( 255 ) NULL DEFAULT NULL;
53
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_url_payment` VARCHAR( 255 ) NULL DEFAULT NULL;
54
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_typeful_line` VARCHAR( 255 ) NULL DEFAULT NULL;
55
+ ");
56
+ /**
57
+ * Prepare database after install
58
+ */
59
+
60
+ $installer->endSetup();
app/code/community/Tray/CheckoutApi/sql/checkoutapi_setup/mysql4-install-1.1.6.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to suporte@tray.net.br so we can send you a copy immediately.
14
+ *
15
+ * @category Tray
16
+ * @package Tray_CheckoutApi
17
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
+ */
19
+
20
+ /** @var $installer Mage_Paypal_Model_Resource_Setup */
21
+ $installer = $this;
22
+
23
+ /**
24
+ * Prepare database for install
25
+ */
26
+ $installer->startSetup();
27
+
28
+ /**
29
+ * Add paypal attributes to the:
30
+ * - sales/flat_quote_payment_item table
31
+ * - sales/flat_order table
32
+ */
33
+ //$installer->addAttribute('quote_payment', 'traycheckout_transaction_id', array());
34
+ //$installer->addAttribute('quote_payment', 'traycheckout_split_number', array());
35
+ //$installer->addAttribute('quote_payment', 'traycheckout_split_value', array());
36
+ //$installer->addAttribute('quote_payment', 'traycheckout_token_transaction', array());
37
+ //$installer->addAttribute('quote_payment', 'traycheckout_url_payment', array());
38
+ //$installer->addAttribute('quote_payment', 'traycheckout_typeful_line', array());
39
+
40
+
41
+ $installer->run("
42
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_transaction_id` VARCHAR( 255 ) NULL DEFAULT NULL;
43
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_split_number` VARCHAR( 255 ) NULL DEFAULT NULL;
44
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_split_value` VARCHAR( 255 ) NULL DEFAULT NULL;
45
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_token_transaction` VARCHAR( 255 ) NULL DEFAULT NULL;
46
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_url_payment` VARCHAR( 255 ) NULL DEFAULT NULL;
47
+ ALTER TABLE {$this->getTable('sales_flat_quote_payment')} ADD `traycheckout_typeful_line` VARCHAR( 255 ) NULL DEFAULT NULL;
48
+
49
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_transaction_id` VARCHAR( 255 ) NULL DEFAULT NULL;
50
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_split_number` VARCHAR( 255 ) NULL DEFAULT NULL;
51
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_split_value` VARCHAR( 255 ) NULL DEFAULT NULL;
52
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_token_transaction` VARCHAR( 255 ) NULL DEFAULT NULL;
53
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_url_payment` VARCHAR( 255 ) NULL DEFAULT NULL;
54
+ ALTER TABLE {$this->getTable('sales_flat_order_payment')} ADD `traycheckout_typeful_line` VARCHAR( 255 ) NULL DEFAULT NULL;
55
+ ");
56
+ /**
57
+ * Prepare database after install
58
+ */
59
+
60
+ $installer->endSetup();
app/design/adminhtml/default/default/layout/tray_checkoutapi.xml CHANGED
@@ -18,7 +18,7 @@
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  -->
21
- <layout version="1.1.5">
22
  <adminhtml_system_config_edit>
23
  <reference name="head">
24
  <action method="addItem">
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  -->
21
+ <layout version="1.1.6">
22
  <adminhtml_system_config_edit>
23
  <reference name="head">
24
  <action method="addItem">
app/design/frontend/base/default/layout/tray_checkoutapi.xml CHANGED
@@ -18,7 +18,7 @@
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  -->
21
- <layout version="1.1.5">
22
  <default>
23
  <reference name="head">
24
  <action method="addJs">
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  -->
21
+ <layout version="1.1.6">
22
  <default>
23
  <reference name="head">
24
  <action method="addJs">
app/design/frontend/base/default/template/tray/checkoutapi/form/standard.phtml CHANGED
@@ -27,7 +27,7 @@
27
  $strTcPaymentMethods = $_standardPD->getConfigData("tcPaymentMethods");
28
 
29
  if($strTcPaymentMethods == "" || $strTcPaymentMethods == null){
30
- $tcPaymentMethods = explode(",","3,4,2,5,18,16,15,19,14,7,22,23,6,20,25");
31
  }else{
32
  $tcPaymentMethods = explode(",",$strTcPaymentMethods);
33
  }
@@ -88,7 +88,7 @@
88
  ?>
89
  <li class="tcPaymentMethod" >
90
  <!--input type="radio" name="tcPaymentMethodR" value="<?php echo $idTcPayment;?>" onclick="document.getElementById('tcPaymentMethod').value = this.value;"/-->
91
- <img src="<?php echo $this->getSkinUrl('tray/checkoutapi/images/'.$imgSrc.'-flag.svg') ?>" class="tcPaymentFlag" id="tcPaymentFlag<?php echo $idTcPayment;?>" onclick="selectCreditCardTc('<?php echo $idTcPayment;?>')">
92
  </li>
93
  <?php
94
  }
@@ -108,7 +108,7 @@
108
  <li>
109
  <div class="input-box">
110
  <label for="<?php echo $_code ?>_cc_number"><?php echo Mage::helper('payment')->__('Credit Card Number') ?> <span class="required">*</span></label><br/>
111
- <input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo Mage::helper('payment')->__('Credit Card Number') ?>" class="required-entry input-text validate-cc-number" value="<?php echo $this->getInfoData('cc_number')?>" onkeyup="identifyCreditCardTc(this.value)"/>
112
  </div>
113
  </li>
114
  <li>
@@ -121,7 +121,7 @@
121
  <?php endforeach ?>
122
  </select>
123
  <?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
124
- <select id="<?php echo $_code ?>_expiration_yr" style="width:103px;" name="payment[cc_exp_year]" class="required-entry">
125
  <?php foreach ($this->getCcYears() as $k=>$v): ?>
126
  <option value="<?php echo $k ? $k : '' ?>" <?php if($k==$_ccExpYear): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
127
  <?php endforeach ?>
@@ -132,11 +132,8 @@
132
  <div class="input-box">
133
  <input type="hidden" id="<?php echo $_code ?>_split_value" name="payment[traycheckout_split_value]" value="<?php echo $this->getInfoData('traycheckout_split_value')?>"/>
134
  <label for="<?php echo $_code ?>_split"><?php echo Mage::helper('payment')->__('Parcelas') ?> <span class="required">*</span></label><br/>
135
- <select id="<?php echo $_code ?>_split" style="width:140px;" name="payment[traycheckout_split_number]" class="required-entry" onchange="document.getElementById('<?php echo $_code ?>_split_value').value = this.options[this.selectedIndex].text.replace(/.*R\$/,'').replace(/\,/,'.');">
136
- <?php $_ccSplitSimulator = $this->getInfoData('traycheckout_split_number') ?>
137
- <?php foreach ($this->getSplitSimulate($totals->grand_total) as $k=>$v): ?>
138
- <option value="<?php echo $k ?>" <?php if($k==$_ccSplitSimulator): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
139
- <?php endforeach ?>
140
  </select>
141
  </div>
142
  </li>
27
  $strTcPaymentMethods = $_standardPD->getConfigData("tcPaymentMethods");
28
 
29
  if($strTcPaymentMethods == "" || $strTcPaymentMethods == null){
30
+ $tcPaymentMethods = explode(",","3,4,2,5,18,16,15,19,20,25");
31
  }else{
32
  $tcPaymentMethods = explode(",",$strTcPaymentMethods);
33
  }
88
  ?>
89
  <li class="tcPaymentMethod" >
90
  <!--input type="radio" name="tcPaymentMethodR" value="<?php echo $idTcPayment;?>" onclick="document.getElementById('tcPaymentMethod').value = this.value;"/-->
91
+ <img src="<?php echo $this->getSkinUrl('tray/checkoutapi/images/'.$imgSrc.'-flag.svg') ?>" class="tcPaymentFlag" id="tcPaymentFlag<?php echo $idTcPayment;?>" onclick="selectCreditCardTc('<?php echo $idTcPayment;?>','<?php echo number_format((float)$totals->grand_total, 2, '.',''); ?>','<?php echo Mage::getBaseUrl();?>')">
92
  </li>
93
  <?php
94
  }
108
  <li>
109
  <div class="input-box">
110
  <label for="<?php echo $_code ?>_cc_number"><?php echo Mage::helper('payment')->__('Credit Card Number') ?> <span class="required">*</span></label><br/>
111
+ <input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo Mage::helper('payment')->__('Credit Card Number') ?>" class="required-entry input-text validate-cc-number" value="<?php echo $this->getInfoData('cc_number')?>" onkeyup="identifyCreditCardTc(this.value)" onblur="getSplitValues('<?php echo number_format((float)$totals->grand_total, 2, '.',''); ?>',document.getElementById('tcPaymentMethod').value,'<?php echo Mage::getBaseUrl();?>')"/>
112
  </div>
113
  </li>
114
  <li>
121
  <?php endforeach ?>
122
  </select>
123
  <?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
124
+ <select id="<?php echo $_code ?>_expiration_yr" style="width:102px;" name="payment[cc_exp_year]" class="required-entry">
125
  <?php foreach ($this->getCcYears() as $k=>$v): ?>
126
  <option value="<?php echo $k ? $k : '' ?>" <?php if($k==$_ccExpYear): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
127
  <?php endforeach ?>
132
  <div class="input-box">
133
  <input type="hidden" id="<?php echo $_code ?>_split_value" name="payment[traycheckout_split_value]" value="<?php echo $this->getInfoData('traycheckout_split_value')?>"/>
134
  <label for="<?php echo $_code ?>_split"><?php echo Mage::helper('payment')->__('Parcelas') ?> <span class="required">*</span></label><br/>
135
+ <select id="<?php echo $_code ?>_split" style="width:252px;" name="payment[traycheckout_split_number]" class="required-entry" onchange="document.getElementById('<?php echo $_code ?>_split_value').value = this.options[this.selectedIndex].text.replace(/.*R\$/,'').replace(/\,/,'.');">
136
+ <option value="">Parcela(s)</option>
 
 
 
137
  </select>
138
  </div>
139
  </li>
js/tray/checkoutapi/js/traycheckout.js CHANGED
@@ -60,7 +60,7 @@ function identifyCreditCardTc(ccNumber){
60
 
61
  }
62
 
63
- function selectCreditCardTc(idPaymentTC){
64
 
65
  document.getElementById('tcPaymentMethod').value = "";
66
 
@@ -77,6 +77,8 @@ function selectCreditCardTc(idPaymentTC){
77
 
78
  document.getElementById('tcPaymentMethod').value = idPaymentTC;
79
  document.getElementById('tcPaymentFlag'+idPaymentTC).className = 'tcPaymentFlag tcPaymentFlagSelected';
 
 
80
  }
81
 
82
  function selectTefTc(idPaymentTC){
@@ -93,3 +95,44 @@ function selectTefTc(idPaymentTC){
93
  document.getElementById('tctPaymentFlag'+idPaymentTC).className = 'tctPaymentFlag tctPaymentFlagSelected';
94
  }
95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
  }
62
 
63
+ function selectCreditCardTc(idPaymentTC,pPrice,pathM){
64
 
65
  document.getElementById('tcPaymentMethod').value = "";
66
 
77
 
78
  document.getElementById('tcPaymentMethod').value = idPaymentTC;
79
  document.getElementById('tcPaymentFlag'+idPaymentTC).className = 'tcPaymentFlag tcPaymentFlagSelected';
80
+
81
+ getSplitValues(pPrice, idPaymentTC, pathM);
82
  }
83
 
84
  function selectTefTc(idPaymentTC){
95
  document.getElementById('tctPaymentFlag'+idPaymentTC).className = 'tctPaymentFlag tctPaymentFlagSelected';
96
  }
97
 
98
+ function getSplitValues(pPrice, pMethod, pathM){
99
+
100
+ if (pMethod != ""){
101
+ document.getElementById('traycheckoutapi_split').innerHTML = "<option value=\"\">Carregando ...</option>";
102
+ var data_file = pathM+"checkoutapi/standard/getsplit/price/"+pPrice+"/method/"+pMethod;
103
+
104
+ var http_request = new XMLHttpRequest();
105
+ try{
106
+ http_request = new XMLHttpRequest();
107
+ }catch (e){
108
+ try{
109
+ http_request = new ActiveXObject("Msxml2.XMLHTTP");
110
+ }catch (e) {
111
+ try{
112
+ http_request = new ActiveXObject("Microsoft.XMLHTTP");
113
+ }catch (e){
114
+ console.debug("Your browser broke!");
115
+ return false;
116
+ }
117
+
118
+ }
119
+ }
120
+
121
+ http_request.onreadystatechange = function(){
122
+ if (http_request.readyState == 4){
123
+ var jsonObj = JSON.parse(http_request.responseText);
124
+ document.getElementById('traycheckoutapi_split').innerHTML = "";
125
+ var optionSplit = "";
126
+ for(var key in jsonObj){
127
+ optionSplit += "<option value='"+key+"'>"+jsonObj[key]+"</option>";
128
+ }
129
+ document.getElementById('traycheckoutapi_split').innerHTML = optionSplit;
130
+ //console.debug(jsonObj);
131
+ }
132
+ }
133
+
134
+ http_request.open("GET", data_file, true);
135
+ http_request.send();
136
+ }
137
+ }
138
+
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tray_CheckoutApi</name>
4
- <version>1.1.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -84,11 +84,16 @@ Este m&#xF3;dulo &#xE9; capaz de fazer a integra&#xE7;&#xE3;o com a API do pagam
84
  &#xD;
85
  - Ajustes na exibi&#xE7;&#xE3;o da forma de pagamento nos detalhes do pedido.&#xD;
86
  - Corre&#xE7;&#xE3;o para exibir o bot&#xE3;o de efetuar pagamento HSBC na finaliza&#xE7;&#xE3;o de compra.&#xD;
87
- - Exibindo a imagem da bandeira de cart&#xE3;o.</notes>
 
 
 
 
 
88
  <authors><author><name>TrayCheckout</name><user>traycheckout</user><email>integracao@traycheckout.com.br</email></author></authors>
89
- <date>2015-09-23</date>
90
- <time>17:37:04</time>
91
- <contents><target name="magecommunity"><dir name="Tray"><dir name="CheckoutApi"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hidden.php" hash="be5282cf3b72a35f2c7c808093bd2373"/><file name="Label.php" hash="f9ca741354aa668b5206360891a0198c"/></dir></dir></dir></dir><file name="Error.php" hash="a3a8aa9edb5c7718b7941e85421f0aa2"/><dir name="Form"><file name="Bankslip.php" hash="2a274dde3529a37888169d8b9b6e2c3a"/><file name="Onlinetransfer.php" hash="9fd9a1d28fab6d56b5b796e302da0cb0"/><file name="Standard.php" hash="02612595b4e9d19ccf458cc072d9cf52"/></dir><dir name="Info"><file name="Bankslip.php" hash="aeff5e716c8276e1f20cfc7cde6b49a6"/><file name="Onlinetransfer.php" hash="b1156534ef56fecf6bfc55807e650f0f"/><file name="Standard.php" hash="001cb928fdf7c652c2d64d888da34985"/></dir><file name="Link.php" hash="06ad7cb8eb1a52c7f130caacc0921657"/><file name="Payment.php" hash="be531180440dc9ebe575a847a812e8d1"/><file name="Return.php" hash="6b5700113c184160ee447d1c6116b1c0"/></dir><dir name="Helper"><file name="Adress.php" hash="6064f62a723b2075290964e3e980d92b"/><file name="Data.php" hash="9a1da0d7564539c0b2fc307fc815b4ea"/></dir><dir name="Model"><file name="Auth.php" hash="2b2c3130ad3d325cdc4bda96933f883d"/><file name="Bankslip.php" hash="2b560b0067a0dc0f9b55a22c6ca6b679"/><file name="Config.php" hash="7377296737b655ad3c01b3ae6081b507"/><dir name="Mysql4"><file name="Setup.php" hash="8a42c69f5c1a1be59d99985982a3703b"/></dir><file name="Observer.php" hash="bb74439605320f0133efd5434150e788"/><file name="Onlinetransfer.php" hash="0429bebc730f867743834e0ea17e676c"/><file name="Payment.php" hash="73d4ed6ffac89dc49d1dd908455cd4d8"/><file name="Request.php" hash="835404edf5edef57711264aab658de28"/><dir name="Resource"><file name="Payment.php" hash="74c257a6afb7ca7ff9ce96954dac64c0"/></dir><dir name="Source"><file name="Country.php" hash="153d0153071b72f23ac2a1c4fee93c24"/><file name="Payment.php" hash="7872c2c8b2f0a489876cea0fdaa89ce1"/><file name="Paymentmethods.php" hash="6e72208d95785d45181ac4a2557bb882"/><file name="Qtdsplit.php" hash="1273ee53626482898aefd7a3d31ebaea"/><file name="Specificcountries.php" hash="e41658287e6c68041d3f0042130f7db3"/><file name="Tefpaymentmethods.php" hash="efa55a28f959f252195134753b16a05c"/></dir><file name="Standard.php" hash="3bddd5e2051b66fc9fa4f4484cf04625"/></dir><dir name="controllers"><file name="StandardController.php" hash="2a962696d371ef327ca40828e043e0ac"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2b0114a2ffbce1930787f7a4e20ce73b"/><file name="config.xml" hash="9df1d17e7295f9d5a3fb4db64e8b5432"/><file name="system.xml" hash="89d8916687897780551c77432ab7e54a"/></dir><dir name="sql"><dir name="checkoutapi_setup"><file name="mysql4-install-0.1.0.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-install-0.2.0.php" hash="bb4ecef6ed4cb724d3fd505ad36acc4d"/><file name="mysql4-install-0.3.0.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-install-0.4.0.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-install-1.1.2.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-install-1.1.3.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="1020462cfb124528fb590922eadfb74a"/><file name="mysql4-upgrade-0.2.0-0.3.0.php" hash="1020462cfb124528fb590922eadfb74a"/><file name="mysql4-upgrade-0.3.0-0.4.0.php" hash="1020462cfb124528fb590922eadfb74a"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="tray"><dir name="checkoutapi"><file name="error.phtml" hash="9e07c1164917e9118c3b21d5bf8c864b"/><dir name="form"><file name="bankslip.phtml" hash="a07bbe0da9d492cc69bacffa2fd4781e"/><dir name="images"><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir><file name="onlinetransfer.phtml" hash="59778850625bff50e592501c54f4e155"/><file name="standard.phtml" hash="d7fef69800121bc57b93c21e119ea0ec"/></dir><file name="head.phtml" hash="750d167a7a10ef1f56a73262f918dca5"/><dir name="info"><file name="bankslip.phtml" hash="0cd67cea7447ac3d7fcd33bf57bec7dd"/><file name="onlinetransfer.phtml" hash="0cd67cea7447ac3d7fcd33bf57bec7dd"/><file name="standard.phtml" hash="64cc0fb344ae0fe105fe1f5b3d6d68b2"/></dir><file name="overlay.phtml" hash="d4ee4dbb85f9a7a350c6e8d5f59a9978"/><file name="payment.phtml" hash="99d950355a4e208c4fd3cf74bbf3f9ec"/><file name="return.phtml" hash="47d5e3e1c3bda47721573e9639a54ca6"/></dir></dir></dir><dir name="layout"><file name="tray_checkoutapi.xml" hash="f3e4bf715cb2eec16b7005dd970dcd71"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="tray"><dir name="checkoutapi"><dir name="form"><file name="bankslip.phtml" hash="f543bfd1254908764362a07bcb943116"/><file name="onlinetransfer.phtml" hash="6b185db6587e9089dd0032aceb4554fc"/><file name="standard.phtml" hash="591e95574d2653f139763929b22bc3fd"/></dir><file name="getbaseurl.phtml" hash="05fba34637bc8da3958d1342f54c0ed4"/><dir name="info"><file name="standard.phtml" hash="1e9ba28c30b9a88c3fd6a53420ae8419"/></dir></dir></dir></dir><dir name="layout"><file name="tray_checkoutapi.xml" hash="a5379b1a40a0dc30660ce0d685488f50"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="tray"><dir name="checkoutapi"><dir name="css"><file name="styles.css" hash="5d09463e234fd2f20622f63795019be6"/></dir><dir name="images"><file name="BannerTrayCheckout890px.png" hash="535d5a4a4f190d03df38664dcb6463f8"/><file name="american-express-flag.svg" hash="5e8f075abba7baa0bf6612ad7257b7af"/><file name="aura-flag.svg" hash="5108ae0c1ffcf5e8ade452971fab86e3"/><file name="banner_comlogo_formas.jpg" hash="e02a16c32109746786c24db177ddad3a"/><file name="banner_semlogo_formas.jpg" hash="4f13591f17ed96347f136eab09343121"/><file name="banner_semlogo_formas.png" hash="84a82c3d7ed9a42ade9660b8dd16511d"/><file name="bb-flag.svg" hash="1f975352db9858164953c239c0f48b15"/><file name="boleto-flag.svg" hash="349465678cab30e15fc915cbb20f70c0"/><file name="bradesco-flag.svg" hash="922871bd31002207cd21fb4c83ab2bf9"/><file name="close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="diners-club-international-flag.svg" hash="6654d0a49c0bda41e37f09b204299719"/><file name="discover-flag.svg" hash="cc3c7a7a645c1c2b9ff45d35ec3d6ba4"/><file name="elo-flag.svg" hash="6aea17a57eb7f333bff577132846f6db"/><file name="hiper-flag.svg" hash="a42c6023c50d0a25e00072c4d9c1f382"/><file name="hipercard-flag.svg" hash="1f48be23788b90411c22ff2569b48f74"/><file name="hsbc-flag.svg" hash="4dec610798ad69cb53e32037d4bc9eee"/><file name="itau-flag.svg" hash="5eed9a56cbb9e313bce6c272a180275d"/><file name="jcb-flag.svg" hash="72c3cb6f8ccec48734422c5258e6d706"/><file name="mastercard-flag.svg" hash="6f8393b3588046c3bb17ffb26eb8c726"/><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/><file name="paymentFlags1.png" hash="2a1724b718bf2ff7a1b25b53acc0cefd"/><file name="paymentFlagsTc.png" hash="6dd7df4802b30ea61b96ad5752bab4ed"/><file name="peela-flag.svg" hash="59f1259c52ad40afaee0943ff1e64791"/><file name="visa-flag.svg" hash="98ec94a1fa4bcb73effc3e5f3506c08b"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="tray"><dir name="checkoutapi"><dir name="css"><file name="magentomodal.css" hash="2c6dd38e421f644475a121b8d6c96503"/></dir><dir name="images"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/><file name="content_bg.gif" hash="21278ea0da2d4256f4ced96b6080ba2e"/><file name="top_bg.gif" hash="26f28090de87d64f9b01bf624f89bfe2"/><file name="window_close.png" hash="3af14f053f360bf31f8ba2df73ec7f1e"/></dir><dir name="js"><file name="modal.js" hash="a1021b9d952418ab46053fb0af03efac"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Tray_CheckoutApi.xml" hash="c95a8f82fd3200b98898f0b9712ea0c8"/></dir></target><target name="mage"><dir name="js"><dir name="tray"><dir name="checkoutapi"><dir><dir name="js"><file name="traycheckout.js" hash="2f0a68e8b1a9f64e452ba28ec1c98783"/></dir></dir></dir></dir></dir></target></contents>
92
  <compatible/>
93
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.7</max></package></required></dependencies>
94
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tray_CheckoutApi</name>
4
+ <version>1.1.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
84
  &#xD;
85
  - Ajustes na exibi&#xE7;&#xE3;o da forma de pagamento nos detalhes do pedido.&#xD;
86
  - Corre&#xE7;&#xE3;o para exibir o bot&#xE3;o de efetuar pagamento HSBC na finaliza&#xE7;&#xE3;o de compra.&#xD;
87
+ - Exibindo a imagem da bandeira de cart&#xE3;o.&#xD;
88
+ &#xD;
89
+ Vers&#xE3;o 1.1.6&#xD;
90
+ &#xD;
91
+ - Ajustes na exibi&#xE7;&#xE3;o do parcelamento consultando direto das configura&#xE7;&#xF5;es da conta no TrayCheckout.&#xD;
92
+ - Ajustes no retorno autom&#xE1;tico para atualiza&#xE7;&#xE3;o de status.</notes>
93
  <authors><author><name>TrayCheckout</name><user>traycheckout</user><email>integracao@traycheckout.com.br</email></author></authors>
94
+ <date>2015-09-24</date>
95
+ <time>13:33:00</time>
96
+ <contents><target name="magecommunity"><dir name="Tray"><dir name="CheckoutApi"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hidden.php" hash="be5282cf3b72a35f2c7c808093bd2373"/><file name="Label.php" hash="f9ca741354aa668b5206360891a0198c"/></dir></dir></dir></dir><file name="Error.php" hash="a3a8aa9edb5c7718b7941e85421f0aa2"/><dir name="Form"><file name="Bankslip.php" hash="2a274dde3529a37888169d8b9b6e2c3a"/><file name="Onlinetransfer.php" hash="9fd9a1d28fab6d56b5b796e302da0cb0"/><file name="Standard.php" hash="e1fc731119385f07e0b92d02611c6502"/></dir><dir name="Info"><file name="Bankslip.php" hash="aeff5e716c8276e1f20cfc7cde6b49a6"/><file name="Onlinetransfer.php" hash="b1156534ef56fecf6bfc55807e650f0f"/><file name="Standard.php" hash="001cb928fdf7c652c2d64d888da34985"/></dir><file name="Link.php" hash="06ad7cb8eb1a52c7f130caacc0921657"/><file name="Payment.php" hash="be531180440dc9ebe575a847a812e8d1"/><file name="Return.php" hash="6b5700113c184160ee447d1c6116b1c0"/></dir><dir name="Helper"><file name="Adress.php" hash="6064f62a723b2075290964e3e980d92b"/><file name="Data.php" hash="9a1da0d7564539c0b2fc307fc815b4ea"/></dir><dir name="Model"><file name="Auth.php" hash="2b2c3130ad3d325cdc4bda96933f883d"/><file name="Bankslip.php" hash="2b560b0067a0dc0f9b55a22c6ca6b679"/><file name="Config.php" hash="7377296737b655ad3c01b3ae6081b507"/><dir name="Mysql4"><file name="Setup.php" hash="8a42c69f5c1a1be59d99985982a3703b"/></dir><file name="Observer.php" hash="bb74439605320f0133efd5434150e788"/><file name="Onlinetransfer.php" hash="0429bebc730f867743834e0ea17e676c"/><file name="Payment.php" hash="73d4ed6ffac89dc49d1dd908455cd4d8"/><file name="Request.php" hash="835404edf5edef57711264aab658de28"/><dir name="Resource"><file name="Payment.php" hash="74c257a6afb7ca7ff9ce96954dac64c0"/></dir><dir name="Source"><file name="Country.php" hash="153d0153071b72f23ac2a1c4fee93c24"/><file name="Payment.php" hash="7872c2c8b2f0a489876cea0fdaa89ce1"/><file name="Paymentmethods.php" hash="6e72208d95785d45181ac4a2557bb882"/><file name="Qtdsplit.php" hash="1273ee53626482898aefd7a3d31ebaea"/><file name="Specificcountries.php" hash="e41658287e6c68041d3f0042130f7db3"/><file name="Tefpaymentmethods.php" hash="efa55a28f959f252195134753b16a05c"/></dir><file name="Standard.php" hash="a6b7f6cf9e62b3f621f9b30e0bafb556"/></dir><dir name="controllers"><file name="StandardController.php" hash="9e92d3cd9516ad4a8fb9a282c313d82f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2b0114a2ffbce1930787f7a4e20ce73b"/><file name="config.xml" hash="0c467ae06730e094e9c666f1fed92aca"/><file name="system.xml" hash="dab854a4fbcadb5828517ece100e6af1"/></dir><dir name="sql"><dir name="checkoutapi_setup"><file name="mysql4-install-0.1.0.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-install-0.2.0.php" hash="bb4ecef6ed4cb724d3fd505ad36acc4d"/><file name="mysql4-install-0.3.0.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-install-0.4.0.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-install-1.1.2.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-install-1.1.3.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-install-1.1.4.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-install-1.1.5.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-install-1.1.6.php" hash="8eb2972ea2fcdd38306041ed37665902"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="1020462cfb124528fb590922eadfb74a"/><file name="mysql4-upgrade-0.2.0-0.3.0.php" hash="1020462cfb124528fb590922eadfb74a"/><file name="mysql4-upgrade-0.3.0-0.4.0.php" hash="1020462cfb124528fb590922eadfb74a"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="tray"><dir name="checkoutapi"><file name="error.phtml" hash="9e07c1164917e9118c3b21d5bf8c864b"/><dir name="form"><file name="bankslip.phtml" hash="a07bbe0da9d492cc69bacffa2fd4781e"/><dir name="images"><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir><file name="onlinetransfer.phtml" hash="59778850625bff50e592501c54f4e155"/><file name="standard.phtml" hash="20a5df9f27a6eb1e2a8dce112c1e7e60"/></dir><file name="head.phtml" hash="750d167a7a10ef1f56a73262f918dca5"/><dir name="info"><file name="bankslip.phtml" hash="0cd67cea7447ac3d7fcd33bf57bec7dd"/><file name="onlinetransfer.phtml" hash="0cd67cea7447ac3d7fcd33bf57bec7dd"/><file name="standard.phtml" hash="64cc0fb344ae0fe105fe1f5b3d6d68b2"/></dir><file name="overlay.phtml" hash="d4ee4dbb85f9a7a350c6e8d5f59a9978"/><file name="payment.phtml" hash="99d950355a4e208c4fd3cf74bbf3f9ec"/><file name="return.phtml" hash="47d5e3e1c3bda47721573e9639a54ca6"/></dir></dir></dir><dir name="layout"><file name="tray_checkoutapi.xml" hash="b11cf099608ce47a3b89758ca7deb4b7"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="tray"><dir name="checkoutapi"><dir name="form"><file name="bankslip.phtml" hash="f543bfd1254908764362a07bcb943116"/><file name="onlinetransfer.phtml" hash="6b185db6587e9089dd0032aceb4554fc"/><file name="standard.phtml" hash="591e95574d2653f139763929b22bc3fd"/></dir><file name="getbaseurl.phtml" hash="05fba34637bc8da3958d1342f54c0ed4"/><dir name="info"><file name="standard.phtml" hash="1e9ba28c30b9a88c3fd6a53420ae8419"/></dir></dir></dir></dir><dir name="layout"><file name="tray_checkoutapi.xml" hash="25b86eb75b0e4b21bfe9e3b0c551e8a4"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="tray"><dir name="checkoutapi"><dir name="css"><file name="styles.css" hash="5d09463e234fd2f20622f63795019be6"/></dir><dir name="images"><file name="BannerTrayCheckout890px.png" hash="535d5a4a4f190d03df38664dcb6463f8"/><file name="american-express-flag.svg" hash="5e8f075abba7baa0bf6612ad7257b7af"/><file name="aura-flag.svg" hash="5108ae0c1ffcf5e8ade452971fab86e3"/><file name="banner_comlogo_formas.jpg" hash="e02a16c32109746786c24db177ddad3a"/><file name="banner_semlogo_formas.jpg" hash="4f13591f17ed96347f136eab09343121"/><file name="banner_semlogo_formas.png" hash="84a82c3d7ed9a42ade9660b8dd16511d"/><file name="bb-flag.svg" hash="1f975352db9858164953c239c0f48b15"/><file name="boleto-flag.svg" hash="349465678cab30e15fc915cbb20f70c0"/><file name="bradesco-flag.svg" hash="922871bd31002207cd21fb4c83ab2bf9"/><file name="close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="diners-club-international-flag.svg" hash="6654d0a49c0bda41e37f09b204299719"/><file name="discover-flag.svg" hash="cc3c7a7a645c1c2b9ff45d35ec3d6ba4"/><file name="elo-flag.svg" hash="6aea17a57eb7f333bff577132846f6db"/><file name="hiper-flag.svg" hash="a42c6023c50d0a25e00072c4d9c1f382"/><file name="hipercard-flag.svg" hash="1f48be23788b90411c22ff2569b48f74"/><file name="hsbc-flag.svg" hash="4dec610798ad69cb53e32037d4bc9eee"/><file name="itau-flag.svg" hash="5eed9a56cbb9e313bce6c272a180275d"/><file name="jcb-flag.svg" hash="72c3cb6f8ccec48734422c5258e6d706"/><file name="mastercard-flag.svg" hash="6f8393b3588046c3bb17ffb26eb8c726"/><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/><file name="paymentFlags1.png" hash="2a1724b718bf2ff7a1b25b53acc0cefd"/><file name="paymentFlagsTc.png" hash="6dd7df4802b30ea61b96ad5752bab4ed"/><file name="peela-flag.svg" hash="59f1259c52ad40afaee0943ff1e64791"/><file name="visa-flag.svg" hash="98ec94a1fa4bcb73effc3e5f3506c08b"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="tray"><dir name="checkoutapi"><dir name="css"><file name="magentomodal.css" hash="2c6dd38e421f644475a121b8d6c96503"/></dir><dir name="images"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/><file name="content_bg.gif" hash="21278ea0da2d4256f4ced96b6080ba2e"/><file name="top_bg.gif" hash="26f28090de87d64f9b01bf624f89bfe2"/><file name="window_close.png" hash="3af14f053f360bf31f8ba2df73ec7f1e"/></dir><dir name="js"><file name="modal.js" hash="a1021b9d952418ab46053fb0af03efac"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Tray_CheckoutApi.xml" hash="c95a8f82fd3200b98898f0b9712ea0c8"/></dir></target><target name="mage"><dir name="js"><dir name="tray"><dir name="checkoutapi"><dir><dir name="js"><file name="traycheckout.js" hash="a4aa70e041b43dcb0e6cbf0e25438808"/></dir></dir></dir></dir></dir></target></contents>
97
  <compatible/>
98
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.7</max></package></required></dependencies>
99
  </package>