Tray_CheckoutApi - Version 1.1.2

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)

Download this release

Release Info

Developer TrayCheckout
Extension Tray_CheckoutApi
Version 1.1.2
Comparing to
See all releases


Code changes from version 0.7.0 to 1.1.2

app/code/community/Tray/CheckoutApi/Block/Info/Standard.php CHANGED
@@ -33,11 +33,14 @@ class Tray_CheckoutApi_Block_Info_Standard extends Mage_Payment_Block_Info
33
  $quoteid = $_order->getData('quote_id');
34
 
35
  $hash = Mage::getModel('core/encryption')->encrypt($incrementid . ":" . $quoteid);
36
- $method = $_order->getPayment()->getMethod();
37
- switch ($method) {
38
- case 'traycheckoutapi':
39
- return '<span>Para efetuar o pagamento, <a href="' . Mage::getBaseUrl() . 'checkoutapi/standard/paymentbackend/order/' . $hash . '">clique aqui</a>.</span>';
40
- break;
 
 
 
41
  }
42
  }
43
  }
33
  $quoteid = $_order->getData('quote_id');
34
 
35
  $hash = Mage::getModel('core/encryption')->encrypt($incrementid . ":" . $quoteid);
36
+ $method = $_order->getPayment()->getMethod();
37
+
38
+ Mage::log($_order->getCustomerId(), null, 'traycheckout.log');
39
+ Mage::log(Mage::getModel('checkoutapi/payment')->getPayment(), null, 'traycheckout.log');
40
+ Mage::log('Chamada: ', null, 'traycheckout.log');
41
+
42
+ if ($method == "traycheckoutapi" && ($_order->getStatus() == Mage_Sales_Model_Order::STATE_PENDING_PAYMENT )){
43
+ return '<span>Para efetuar o pagamento, <a href="' . Mage::getBaseUrl() . 'checkoutapi/standard/paymentbackend/order/' . $hash . '">clique aqui</a>.</span>';
44
  }
45
  }
46
  }
app/code/community/Tray/CheckoutApi/Block/Payment.php CHANGED
@@ -27,6 +27,7 @@ class Tray_CheckoutApi_Block_Payment extends Mage_Core_Block_Template
27
  protected $status_name;
28
  protected $payment_method_id;
29
  protected $payment_method_name;
 
30
 
31
  public function getOrderNumber() {
32
  return $this->order_number;
@@ -52,6 +53,9 @@ class Tray_CheckoutApi_Block_Payment extends Mage_Core_Block_Template
52
  public function getPaymentMethodName() {
53
  return $this->payment_method_name;
54
  }
 
 
 
55
 
56
  protected function getPayment()
57
  {
@@ -68,6 +72,7 @@ class Tray_CheckoutApi_Block_Payment extends Mage_Core_Block_Template
68
  $this->status_name = $xml->data_response->transaction->status_name;
69
  $this->payment_method_name = $xml->data_response->transaction->payment->payment_method_name;
70
  $this->payment_method_id = $xml->data_response->transaction->payment->payment_method_id;
 
71
 
72
  $standard->updateTransactionTrayCheckout($xml->data_response->transaction);
73
 
27
  protected $status_name;
28
  protected $payment_method_id;
29
  protected $payment_method_name;
30
+ protected $token_account;
31
 
32
  public function getOrderNumber() {
33
  return $this->order_number;
53
  public function getPaymentMethodName() {
54
  return $this->payment_method_name;
55
  }
56
+ public function getTokenAccount() {
57
+ return $this->token_account;
58
+ }
59
 
60
  protected function getPayment()
61
  {
72
  $this->status_name = $xml->data_response->transaction->status_name;
73
  $this->payment_method_name = $xml->data_response->transaction->payment->payment_method_name;
74
  $this->payment_method_id = $xml->data_response->transaction->payment->payment_method_id;
75
+ $this->token_account = $standard->getConfigData('token');
76
 
77
  $standard->updateTransactionTrayCheckout($xml->data_response->transaction);
78
 
app/code/community/Tray/CheckoutApi/Model/Payment.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ class Tray_CheckoutApi_Model_Payment extends Mage_Sales_Model_Order_Payment
21
+ {
22
+ protected function _construct()
23
+ {
24
+ $this->_init('checkoutapi/payment'); // name of single resource model
25
+ }
26
+
27
+ }
app/code/community/Tray/CheckoutApi/Model/Resource/Payment.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ class My_Module_Model_Resource_Payment extends Mage_Sales_Model_Mysql4_Order_Payment
21
+ {
22
+
23
+ }
app/code/community/Tray/CheckoutApi/Model/Standard.php CHANGED
@@ -204,8 +204,11 @@ class Tray_CheckoutApi_Model_Standard extends Mage_Payment_Model_Method_Abstract
204
 
205
  // Validação do email do cliente
206
  Mage::log('Validate - Email Data: '. $quote->getCustomer()->getEmail(), null, 'traycheckout.log');
 
207
  if (!filter_var($quote->getCustomer()->getEmail(), FILTER_VALIDATE_EMAIL)) {
208
- $errorMsg .= "E-mail em branco ou inválido!!\n";
 
 
209
  }
210
 
211
  // Validação do telefone do cliente
@@ -445,7 +448,9 @@ class Tray_CheckoutApi_Model_Standard extends Mage_Payment_Model_Method_Abstract
445
  $shipping = sprintf('%.2f',$shippingAmount) ;
446
 
447
  $sArr['transaction[shipping_type]'] = $shipping_description;
448
- $sArr['transaction[shipping_price]'] = $shipping;
 
 
449
 
450
  $sArr['transaction[url_process]'] = Mage::getUrl('checkoutapi/standard/return', array('_secure' => true));
451
  $sArr['transaction[url_success]'] = Mage::getUrl('checkoutapi/standard/return', array('_secure' => true));
204
 
205
  // Validação do email do cliente
206
  Mage::log('Validate - Email Data: '. $quote->getCustomer()->getEmail(), null, 'traycheckout.log');
207
+ Mage::log('Validate - Email Billing Data: '. $billingAddress->getEmail(), null, 'traycheckout.log');
208
  if (!filter_var($quote->getCustomer()->getEmail(), FILTER_VALIDATE_EMAIL)) {
209
+ if (!filter_var($billingAddress->getEmail(), FILTER_VALIDATE_EMAIL)) {
210
+ $errorMsg .= "E-mail em branco ou inválido!!\n";
211
+ }
212
  }
213
 
214
  // Validação do telefone do cliente
448
  $shipping = sprintf('%.2f',$shippingAmount) ;
449
 
450
  $sArr['transaction[shipping_type]'] = $shipping_description;
451
+ $sArr['transaction[shipping_price]'] = $shipping;
452
+
453
+ $sArr['transaction[customer_ip]'] = Mage::helper('core/http')->getRemoteAddr(true);
454
 
455
  $sArr['transaction[url_process]'] = Mage::getUrl('checkoutapi/standard/return', array('_secure' => true));
456
  $sArr['transaction[url_success]'] = Mage::getUrl('checkoutapi/standard/return', array('_secure' => true));
app/code/community/Tray/CheckoutApi/controllers/StandardController.php CHANGED
@@ -294,23 +294,13 @@ class Tray_CheckoutApi_StandardController extends Mage_Core_Controller_Front_Act
294
  // what to do - from admin
295
  $toInvoice = $this->getApi()->getConfigData('acaopadraovirtual') == "1" ? true : false;
296
 
297
- if ($thereIsVirtual && !$toInvoice) {
298
 
299
- $frase = 'Tray - Aprovado. Pagamento (fatura) confirmado automaticamente.';
300
-
301
- $order->addStatusToHistory(
302
- $order->getStatus(), //continue setting current order status
303
- Mage::helper('checkoutapi')->__($frase), true
304
- );
305
-
306
- $order->sendOrderUpdateEmail(true, $frase);
307
- } else {
308
-
309
- if (!$order->canInvoice()) {
310
  $isHolded = ( $order->getStatus() == Mage_Sales_Model_Order::STATE_HOLDED );
311
 
312
- $status = ($isHolded) ? Mage_Sales_Model_Order::STATE_PROCESSING : $order->getStatus();
313
- $frase = ($isHolded) ? 'Tray - Aprovado. Confirmado automaticamente o pagamento do pedido.' : 'Erro ao criar pagamento (fatura).';
314
 
315
  //when order cannot create invoice, need to have some logic to take care
316
  $order->addStatusToHistory(
@@ -318,42 +308,54 @@ class Tray_CheckoutApi_StandardController extends Mage_Core_Controller_Front_Act
318
  Mage::helper('checkoutapi')->__( $frase )
319
  );
320
 
321
- } else {
322
 
323
- //need to save transaction id
324
- $order->getPayment()->setTransactionId($dados_post['transaction']['transaction_id']);
325
-
326
- //need to convert from order into invoice
327
- $invoice = $order->prepareInvoice();
328
 
329
- if ($this->getApi()->canCapture()) {
330
- $invoice->register()->capture();
331
- }
332
 
333
- Mage::getModel('core/resource_transaction')
334
- ->addObject($invoice)
335
- ->addObject($invoice->getOrder())
336
- ->save();
337
 
338
- $frase = 'Pagamento (fatura) ' . $invoice->getIncrementId() . ' foi criado. Tray - Aprovado. Confirmado automaticamente o pagamento do pedido.';
 
 
 
339
 
340
- if ($thereIsVirtual) {
341
 
342
- $order->addStatusToHistory(
343
- $order->getStatus(), Mage::helper('checkoutapi')->__($frase), true
344
- );
345
 
346
- } else {
 
 
347
 
348
- $order->addStatusToHistory(
349
- Mage_Sales_Model_Order::STATE_PROCESSING, //update order status to processing after creating an invoice
350
- Mage::helper('checkoutapi')->__($frase), true
351
- );
352
- }
353
 
354
- $invoice->sendEmail(true, $frase);
 
 
 
355
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
  }
 
357
  break;
358
  case 24:
359
  $order->addStatusToHistory(
294
  // what to do - from admin
295
  $toInvoice = $this->getApi()->getConfigData('acaopadraovirtual') == "1" ? true : false;
296
 
297
+ if ($thereIsVirtual && $toInvoice) {
298
 
299
+ /*if ($order->canInvoice()) {
 
 
 
 
 
 
 
 
 
 
300
  $isHolded = ( $order->getStatus() == Mage_Sales_Model_Order::STATE_HOLDED );
301
 
302
+ $status = ($isHolded) ? Mage_Sales_Model_Order::STATE_PROCESSING : $order->getStatus();
303
+ $frase = ($isHolded) ? 'Tray - Aprovado. Confirmado automaticamente o pagamento do pedido.' : 'Erro ao criar pagamento (fatura).';
304
 
305
  //when order cannot create invoice, need to have some logic to take care
306
  $order->addStatusToHistory(
308
  Mage::helper('checkoutapi')->__( $frase )
309
  );
310
 
311
+ } else {*/
312
 
313
+ //need to save transaction id
314
+ $order->getPayment()->setTransactionId($dados_post['transaction']['transaction_id']);
 
 
 
315
 
316
+ //need to convert from order into invoice
317
+ $invoice = $order->prepareInvoice();
 
318
 
319
+ if ($this->getApi()->canCapture()) {
320
+ $invoice->register()->capture();
321
+ }
 
322
 
323
+ Mage::getModel('core/resource_transaction')
324
+ ->addObject($invoice)
325
+ ->addObject($invoice->getOrder())
326
+ ->save();
327
 
328
+ $frase = 'Pagamento (fatura) ' . $invoice->getIncrementId() . ' foi criado. Tray - Aprovado. Confirmado automaticamente o pagamento do pedido.';
329
 
330
+ if ($thereIsVirtual) {
 
 
331
 
332
+ $order->addStatusToHistory(
333
+ $order->getStatus(), Mage::helper('checkoutapi')->__($frase), true
334
+ );
335
 
336
+ } else {
 
 
 
 
337
 
338
+ $order->addStatusToHistory(
339
+ Mage_Sales_Model_Order::STATE_PROCESSING, //update order status to processing after creating an invoice
340
+ Mage::helper('checkoutapi')->__($frase), true
341
+ );
342
  }
343
+
344
+ $invoice->sendEmail(true, $frase);
345
+
346
+ } else {
347
+
348
+ $frase = 'Tray - Aprovado. Pagamento (fatura) confirmado automaticamente.';
349
+
350
+ $order->addStatusToHistory(
351
+ $order->getStatus(), //continue setting current order status
352
+ Mage::helper('checkoutapi')->__($frase), true
353
+ );
354
+
355
+ $order->sendOrderUpdateEmail(true, $frase);
356
+
357
  }
358
+ //}
359
  break;
360
  case 24:
361
  $order->addStatusToHistory(
app/code/community/Tray/CheckoutApi/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
  * http://opensource.org/licenses/osl-3.0.php
12
  * If you did not receive a copy of the license and are unable to
13
  * obtain it through the world-wide-web, please send an email
14
- * to suporte@tray.net.br so we can send you a copy immediately.
15
  *
16
  * @category Tray
17
  * @package Tray_CheckoutApi
@@ -21,7 +21,7 @@
21
  <config>
22
  <modules>
23
  <Tray_CheckoutApi>
24
- <version>0.7.0</version>
25
  </Tray_CheckoutApi>
26
  </modules>
27
  <global>
@@ -29,6 +29,7 @@
29
  <checkoutapi>
30
  <class>Tray_CheckoutApi_Model</class>
31
  <resourceModel>checkoutapi_mysql4</resourceModel>
 
32
  </checkoutapi>
33
  <checkoutapi_mysql4>
34
  <class>Tray_CheckoutApi_Model_Mysql4</class>
@@ -38,6 +39,14 @@
38
  </api_debug>
39
  </entities>
40
  </checkoutapi_mysql4>
 
 
 
 
 
 
 
 
41
  </models>
42
  <resources>
43
  <checkoutapi_setup>
11
  * http://opensource.org/licenses/osl-3.0.php
12
  * If you did not receive a copy of the license and are unable to
13
  * obtain it through the world-wide-web, please send an email
14
+ * to suporte@tray.net.br so we can send you a copy immediately.
15
  *
16
  * @category Tray
17
  * @package Tray_CheckoutApi
21
  <config>
22
  <modules>
23
  <Tray_CheckoutApi>
24
+ <version>1.1.2</version>
25
  </Tray_CheckoutApi>
26
  </modules>
27
  <global>
29
  <checkoutapi>
30
  <class>Tray_CheckoutApi_Model</class>
31
  <resourceModel>checkoutapi_mysql4</resourceModel>
32
+ <resourceModel>checkoutapi_resource</resourceModel>
33
  </checkoutapi>
34
  <checkoutapi_mysql4>
35
  <class>Tray_CheckoutApi_Model_Mysql4</class>
39
  </api_debug>
40
  </entities>
41
  </checkoutapi_mysql4>
42
+ <checkoutapi_eav>
43
+ <class>Tray_CheckoutApi_Model_Resource</class>
44
+ <entities>
45
+ <payment>
46
+ <table>sales_flat_order_payment</table>
47
+ </payment>
48
+ </entities>
49
+ </checkoutapi_eav>
50
  </models>
51
  <resources>
52
  <checkoutapi_setup>
app/design/frontend/base/default/layout/tray_checkoutapi.xml CHANGED
@@ -18,9 +18,9 @@
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  -->
21
- <layout version="0.7.0">
22
  <checkoutapi_standard_payment>
23
- <reference nam0.1.0e="head">
24
  <action method="addCss">
25
  <stylesheet>tray/checkoutapi/css/styles.css</stylesheet>
26
  </action>
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  -->
21
+ <layout version="1.1.2">
22
  <checkoutapi_standard_payment>
23
+ <reference name="head">
24
  <action method="addCss">
25
  <stylesheet>tray/checkoutapi/css/styles.css</stylesheet>
26
  </action>
app/design/frontend/base/default/template/tray/checkoutapi/form/standard.phtml CHANGED
@@ -194,4 +194,5 @@
194
  </ul>
195
  </li>
196
  </ul>
197
- </fieldset>
 
194
  </ul>
195
  </li>
196
  </ul>
197
+
198
+ </fieldset>
app/design/frontend/base/default/template/tray/checkoutapi/info/standard.phtml CHANGED
@@ -33,4 +33,6 @@
33
  ?>
34
  <?php echo (array_search($this->getInfo()->getData("cc_type"), $tcIdPaymentMethodCreditCard)) ? $this->getInfo()->getData("traycheckout_split_number") . " x R$". number_format((float)$this->getInfo()->getData("traycheckout_split_value"), 2, ',','') : ""; ?>
35
  </p>
36
- <?php echo $this->getLinkPayment($this->getInfo()->getOrder()); ?>
 
 
33
  ?>
34
  <?php echo (array_search($this->getInfo()->getData("cc_type"), $tcIdPaymentMethodCreditCard)) ? $this->getInfo()->getData("traycheckout_split_number") . " x R$". number_format((float)$this->getInfo()->getData("traycheckout_split_value"), 2, ',','') : ""; ?>
35
  </p>
36
+ <?php echo $this->getLinkPayment($this->getInfo()->getOrder()); ?>
37
+
38
+
app/design/frontend/base/default/template/tray/checkoutapi/payment.phtml CHANGED
@@ -17,6 +17,7 @@
17
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
  */
19
  ?>
 
20
  <?php
21
  $this->getPayment();
22
  $title = "";
@@ -81,4 +82,10 @@
81
  </td>
82
  </tr>
83
  </table>
84
- </div>
 
 
 
 
 
 
17
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
  */
19
  ?>
20
+ <script src="https://static.traycheckout.com.br/js/finger_print.js" type="text/javascript"></script>
21
  <?php
22
  $this->getPayment();
23
  $title = "";
82
  </td>
83
  </tr>
84
  </table>
85
+ </div>
86
+
87
+ <script>
88
+ jQuery(document).FingerPrint({token_account: '<?php $this->getTokenAccount()?>',
89
+ order_number: '<?php $this->getOrderNumber()?>',
90
+ production: 'true'});
91
+ </script>
package.xml CHANGED
@@ -1,55 +1,75 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tray_CheckoutApi</name>
4
- <version>0.7.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Extens&#xE3;o Tray Checkout API para Magento</summary>
10
  <description>TrayCheckout is a payment facilitator that offers benefits to merchants and buyers. Focused on practicality and conversion, enables virtual stores offer many payments possibilites, no need contracts with financial operators. &#xD;
11
- &#xD;
12
- This module is able to do the integration with the Payment API of the TrayCheckout. In this case, the consumer isn't redirect to TrayCheckout environment. Every steps of the payment are made in the Magento Checkout. &#xD;
13
- &#xD;
14
- O TrayCheckout &#xE9; um facilitador de pagamento que oferece benef&#xED;cios aos lojistas e aos compradores. Focado em praticidade e convers&#xE3;o, possibilita que as lojas virtuais ofere&#xE7;am diversas formas de pagamento, sem burocracia ou necessidade de contrato com operadoras financeiras. &#xD;
15
- &#xD;
16
- Este m&#xF3;dulo &#xE9; capaz de fazer a integra&#xE7;&#xE3;o com a API do pagamento do TrayCheckout. Neste caso, o consumidor n&#xE3;o &#xE9; redirecionar para ambiente TrayCheckout. Todos os passos de o pagamento s&#xE3;o feito no Checkout Magento. </description>
17
  <notes>Vers&#xE3;o 0.1.0&#xD;
18
- &#xD;
19
- - Primeira vers&#xE3;o liberada do TrayCheckout&#xD;
20
- &#xD;
21
- Vers&#xE3;o 0.2.0&#xD;
22
- &#xD;
23
- - Corre&#xE7;&#xE3;o no envio do n&#xFA;mero de telefone.&#xD;
24
- - Melhorias no envio dos dados.&#xD;
25
- &#xD;
26
- Vers&#xE3;o 0.3.0&#xD;
27
- &#xD;
28
- - Corre&#xE7;&#xF5;es de integra&#xE7;&#xE3;o com a API de Simula&#xE7;&#xE3;o de Parcelamento.&#xD;
29
- - Envio de um valor padr&#xE3;o ao finalizar por boleto e transfer&#xEA;ncia online.&#xD;
30
- - Ajuste no envio das requisi&#xE7;&#xF5;es para as APIs do TrayCheckout.&#xD;
31
- - Incrementado log personalizado no m&#xF3;dulo.&#xD;
32
- &#xD;
33
- Vers&#xE3;o 0.4.0&#xD;
34
- &#xD;
35
- - Ajustes nas URLs de integra&#xE7;&#xE3;o com o TrayCheckout.&#xD;
36
- &#xD;
37
- Vers&#xE3;o 0.5.0&#xD;
38
- &#xD;
39
- - Melhorias no c&#xF3;digo de integra&#xE7;&#xE3;o com o TrayCheckout&#xD;
40
- &#xD;
41
- Vers&#xE3;o 0.6.0&#xD;
42
- &#xD;
43
- - Melhorias na exibi&#xE7;&#xE3;o das bandeiras de cart&#xE3;o de cr&#xE9;dito&#xD;
44
- - Melhorias na exibi&#xE7;&#xE3;o dos dados de parcelamento&#xD;
45
- &#xD;
46
- Vers&#xE3;o 0.7.0&#xD;
47
- &#xD;
48
- - Melhorias no NAS (Notifica&#xE7;&#xE3;o Autom&#xE1;tica de Status).</notes>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  <authors><author><name>TrayCheckout</name><user>traycheckout</user><email>integracao@traycheckout.com.br</email></author></authors>
50
- <date>2014-07-03</date>
51
- <time>21:24:54</time>
52
- <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="Label.php" hash="6eb581cddd1fb9380930da38e4404f5e"/></dir></dir></dir></dir><file name="Error.php" hash="a3a8aa9edb5c7718b7941e85421f0aa2"/><dir name="Form"><file name="Standard.php" hash="02612595b4e9d19ccf458cc072d9cf52"/></dir><dir name="Info"><file name="Standard.php" hash="e383d51eaaa9a0afd82a1ec60024e752"/></dir><file name="Link.php" hash="06ad7cb8eb1a52c7f130caacc0921657"/><file name="Payment.php" hash="510b6812989a04fba29af78d2fd97c5e"/><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="Config.php" hash="7377296737b655ad3c01b3ae6081b507"/><dir name="Mysql4"><file name="Setup.php" hash="8a42c69f5c1a1be59d99985982a3703b"/></dir><file name="Observer.php" hash="059a8bfe166f862477127c8b7b63afad"/><dir name="Source"><file name="Country.php" hash="153d0153071b72f23ac2a1c4fee93c24"/><file name="Paymentmethods.php" hash="e19dc6aa0d7846fb4358bf11c18ba6ce"/><file name="Qtdsplit.php" hash="1273ee53626482898aefd7a3d31ebaea"/><file name="Specificcountries.php" hash="e41658287e6c68041d3f0042130f7db3"/></dir><file name="Standard.php" hash="d766ec66efafbc8a0cb801c4adb53bd2"/></dir><dir name="controllers"><file name="StandardController.php" hash="be8a296d8d2af705f39f63f0db9d5396"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2b0114a2ffbce1930787f7a4e20ce73b"/><file name="config.xml" hash="943e4595db078f4ca2771f2cc1ce0f03"/><file name="system.xml" hash="3948c445ded660c565540836f3063d2c"/></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-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"><dir name="images"><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir><file name="standard.phtml" hash="a0058214c73926923a4102f76632f394"/></dir><file name="head.phtml" hash="750d167a7a10ef1f56a73262f918dca5"/><dir name="info"><file name="standard.phtml" hash="ba1bbd8cc8504bd299aa36df42c61f2a"/></dir><file name="overlay.phtml" hash="d4ee4dbb85f9a7a350c6e8d5f59a9978"/><file name="payment.phtml" hash="a19bd7e8e7ec695e15a96deeccd85c57"/><file name="return.phtml" hash="47d5e3e1c3bda47721573e9639a54ca6"/></dir></dir></dir><dir name="layout"><file name="tray_checkoutapi.xml" hash="c5c65ffc7b7a76803b6acddee03e70de"/></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="standard.phtml" hash="9abb8cb909140d1af4cdd6afb5b5d7f5"/></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="5b288e1243541c19aad017941544e5a5"/></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="banner_comlogo_formas.jpg" hash="e02a16c32109746786c24db177ddad3a"/><file name="banner_semlogo_formas.jpg" hash="4f13591f17ed96347f136eab09343121"/><file name="banner_semlogo_formas.png" hash="84a82c3d7ed9a42ade9660b8dd16511d"/><file name="close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/><file name="paymentFlags1.png" hash="2a1724b718bf2ff7a1b25b53acc0cefd"/><file name="paymentFlagsTc.png" hash="6dd7df4802b30ea61b96ad5752bab4ed"/></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="exibitionsettingswebcheckout.js" hash="1d9d374cad719e27ffa6a78f1239c63a"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Tray_CheckoutApi.xml" hash="c95a8f82fd3200b98898f0b9712ea0c8"/></dir></target></contents>
53
  <compatible/>
54
  <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>
55
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tray_CheckoutApi</name>
4
+ <version>1.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Extens&#xE3;o TrayCheckout API para Magento</summary>
10
  <description>TrayCheckout is a payment facilitator that offers benefits to merchants and buyers. Focused on practicality and conversion, enables virtual stores offer many payments possibilites, no need contracts with financial operators. &#xD;
11
+ &#xD;
12
+ This module is able to do the integration with the Payment API of the TrayCheckout. In this case, the consumer isn't redirect to TrayCheckout environment. Every steps of the payment are made in the Magento Checkout. &#xD;
13
+ &#xD;
14
+ O TrayCheckout &#xE9; um facilitador de pagamento que oferece benef&#xED;cios aos lojistas e aos compradores. Focado em praticidade e convers&#xE3;o, possibilita que as lojas virtuais ofere&#xE7;am diversas formas de pagamento, sem burocracia ou necessidade de contrato com operadoras financeiras. &#xD;
15
+ &#xD;
16
+ Este m&#xF3;dulo &#xE9; capaz de fazer a integra&#xE7;&#xE3;o com a API do pagamento do TrayCheckout. Neste caso, o consumidor n&#xE3;o &#xE9; redirecionar para ambiente TrayCheckout. Todos os passos de o pagamento s&#xE3;o feito no Checkout Magento.</description>
17
  <notes>Vers&#xE3;o 0.1.0&#xD;
18
+ &#xD;
19
+ - Primeira vers&#xE3;o liberada do TrayCheckout&#xD;
20
+ &#xD;
21
+ Vers&#xE3;o 0.2.0&#xD;
22
+ &#xD;
23
+ - Corre&#xE7;&#xE3;o no envio do n&#xFA;mero de telefone.&#xD;
24
+ - Melhorias no envio dos dados.&#xD;
25
+ &#xD;
26
+ Vers&#xE3;o 0.3.0&#xD;
27
+ &#xD;
28
+ - Corre&#xE7;&#xF5;es de integra&#xE7;&#xE3;o com a API de Simula&#xE7;&#xE3;o de Parcelamento.&#xD;
29
+ - Envio de um valor padr&#xE3;o ao finalizar por boleto e transfer&#xEA;ncia online.&#xD;
30
+ - Ajuste no envio das requisi&#xE7;&#xF5;es para as APIs do TrayCheckout.&#xD;
31
+ - Incrementado log personalizado no m&#xF3;dulo.&#xD;
32
+ &#xD;
33
+ Vers&#xE3;o 0.4.0&#xD;
34
+ &#xD;
35
+ - Ajustes nas URLs de integra&#xE7;&#xE3;o com o TrayCheckout.&#xD;
36
+ &#xD;
37
+ Vers&#xE3;o 0.5.0&#xD;
38
+ &#xD;
39
+ - Melhorias no c&#xF3;digo de integra&#xE7;&#xE3;o com o TrayCheckout&#xD;
40
+ &#xD;
41
+ Vers&#xE3;o 0.6.0&#xD;
42
+ &#xD;
43
+ - Melhorias na exibi&#xE7;&#xE3;o das bandeiras de cart&#xE3;o de cr&#xE9;dito&#xD;
44
+ - Melhorias na exibi&#xE7;&#xE3;o dos dados de parcelamento&#xD;
45
+ &#xD;
46
+ Vers&#xE3;o 0.7.0&#xD;
47
+ &#xD;
48
+ - Melhorias no NAS (Notifica&#xE7;&#xE3;o Autom&#xE1;tica de Status).&#xD;
49
+ &#xD;
50
+ Vers&#xE3;o 0.8.0&#xD;
51
+ &#xD;
52
+ - Ajuste na valida&#xE7;&#xE3;o dos campos enviados na integra&#xE7;&#xE3;o.&#xD;
53
+ &#xD;
54
+ Vers&#xE3;o 0.9.0&#xD;
55
+ &#xD;
56
+ - Ajustes no NAS (Notifica&#xE7;&#xE3;o Autom&#xE1;tica de Status).&#xD;
57
+ &#xD;
58
+ Vers&#xE3;o 1.1.0&#xD;
59
+ &#xD;
60
+ - Melhoria nos dados capturados para realiza&#xE7;&#xE3;o da an&#xE1;lise de risco.&#xD;
61
+ &#xD;
62
+ Vers&#xE3;o 1.1.1&#xD;
63
+ &#xD;
64
+ - Ajuste na captura e atualiza&#xE7;&#xE3;o dos dados do pedido&#xD;
65
+ &#xD;
66
+ Vers&#xE3;o 1.1.2&#xD;
67
+ &#xD;
68
+ - Ajuste na exibi&#xE7;&#xE3;o do link de pagamento (Detalhes do Pedido)</notes>
69
  <authors><author><name>TrayCheckout</name><user>traycheckout</user><email>integracao@traycheckout.com.br</email></author></authors>
70
+ <date>2015-05-27</date>
71
+ <time>19:27:45</time>
72
+ <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="Label.php" hash="6eb581cddd1fb9380930da38e4404f5e"/></dir></dir></dir></dir><file name="Error.php" hash="a3a8aa9edb5c7718b7941e85421f0aa2"/><dir name="Form"><file name="Standard.php" hash="02612595b4e9d19ccf458cc072d9cf52"/></dir><dir name="Info"><file name="Standard.php" hash="001cb928fdf7c652c2d64d888da34985"/></dir><file name="Link.php" hash="06ad7cb8eb1a52c7f130caacc0921657"/><file name="Payment.php" hash="ef37c244aa74be3f70ff8c3f71bd72f4"/><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="Config.php" hash="7377296737b655ad3c01b3ae6081b507"/><dir name="Mysql4"><file name="Setup.php" hash="8a42c69f5c1a1be59d99985982a3703b"/></dir><file name="Observer.php" hash="059a8bfe166f862477127c8b7b63afad"/><file name="Payment.php" hash="73d4ed6ffac89dc49d1dd908455cd4d8"/><dir name="Resource"><file name="Payment.php" hash="74c257a6afb7ca7ff9ce96954dac64c0"/></dir><dir name="Source"><file name="Country.php" hash="153d0153071b72f23ac2a1c4fee93c24"/><file name="Paymentmethods.php" hash="e19dc6aa0d7846fb4358bf11c18ba6ce"/><file name="Qtdsplit.php" hash="1273ee53626482898aefd7a3d31ebaea"/><file name="Specificcountries.php" hash="e41658287e6c68041d3f0042130f7db3"/></dir><file name="Standard.php" hash="2640801ee0041c1287043252cfa7a4c1"/></dir><dir name="controllers"><file name="StandardController.php" hash="43f692c424fd55030c3662e8923e81de"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2b0114a2ffbce1930787f7a4e20ce73b"/><file name="config.xml" hash="695bca8113d661d2a72276f3082434cb"/><file name="system.xml" hash="3948c445ded660c565540836f3063d2c"/></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-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"><dir name="images"><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/></dir><file name="standard.phtml" hash="a7dbb4e6f6d87eddb11b2971bdc1a344"/></dir><file name="head.phtml" hash="750d167a7a10ef1f56a73262f918dca5"/><dir name="info"><file name="standard.phtml" hash="52b346990e73d69158b872e2189910c3"/></dir><file name="overlay.phtml" hash="d4ee4dbb85f9a7a350c6e8d5f59a9978"/><file name="payment.phtml" hash="303193cd94c93ba2b80fd26ac56406bc"/><file name="return.phtml" hash="47d5e3e1c3bda47721573e9639a54ca6"/></dir></dir></dir><dir name="layout"><file name="tray_checkoutapi.xml" hash="cd17e32db6af896518f362d9fb5d4596"/></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="standard.phtml" hash="9abb8cb909140d1af4cdd6afb5b5d7f5"/></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="5b288e1243541c19aad017941544e5a5"/></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="banner_comlogo_formas.jpg" hash="e02a16c32109746786c24db177ddad3a"/><file name="banner_semlogo_formas.jpg" hash="4f13591f17ed96347f136eab09343121"/><file name="banner_semlogo_formas.png" hash="84a82c3d7ed9a42ade9660b8dd16511d"/><file name="close.png" hash="6e2879a324a76e9972ebc98201aae1d8"/><file name="overlay.png" hash="143d209e15051311fdae758b295036b5"/><file name="paymentFlags1.png" hash="2a1724b718bf2ff7a1b25b53acc0cefd"/><file name="paymentFlagsTc.png" hash="6dd7df4802b30ea61b96ad5752bab4ed"/></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="exibitionsettingswebcheckout.js" hash="1d9d374cad719e27ffa6a78f1239c63a"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Tray_CheckoutApi.xml" hash="c95a8f82fd3200b98898f0b9712ea0c8"/></dir></target></contents>
73
  <compatible/>
74
  <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>
75
  </package>