Version Notes
Ajuste na ACL para Evento Consultar Status no Moip
Download this release
Release Info
| Developer | MOIP |
| Extension | o2ti_moip |
| Version | 2.0.2 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.1 to 2.0.2
- app/code/local/MOIP/Account/Block/Adminhtml/System/Config/Form/Button/Button.php +0 -97
- app/code/local/MOIP/Account/Block/Adminhtml/System/Config/Form/Field/Date.php +0 -21
- app/code/local/MOIP/Account/Block/Adminhtml/System/Config/Form/Field/Selectcron.php +0 -26
- app/code/local/MOIP/Account/Block/Adminhtml/System/Config/Form/Field/Text.php +0 -22
- app/code/local/MOIP/Account/Helper/Data.php +0 -14
- app/code/local/MOIP/Account/Model/Observer.php +0 -271
- app/code/local/MOIP/Account/controllers/Adminhtml/MoipaccountController.php +0 -237
- app/code/local/MOIP/Account/etc/config.xml +0 -84
- app/code/local/MOIP/Account/etc/system.xml +0 -444
- app/code/local/MOIP/All/etc/config.xml +1 -1
- app/code/local/MOIP/Onestepcheckout/etc/config.xml +5 -7
- app/code/local/MOIP/Onestepcheckout/etc/system.xml +1 -1
- app/code/local/MOIP/Onestepcheckout/sql/moip_onestepcheckout_setup/mysql4-install-0.1.0.php +3 -2
- app/code/local/MOIP/Transparente/Block/Product/View/Discount.php +8 -3
- app/code/local/MOIP/Transparente/Block/Sales/Order/Fee.php +1 -1
- app/code/local/MOIP/Transparente/Block/Sales/Order/Grid.php +16 -0
- app/code/local/MOIP/Transparente/Block/Standard/Details.php +22 -0
- app/code/local/MOIP/Transparente/Block/Standard/{Redirect.php → Moip.php} +7 -16
- app/code/local/MOIP/Transparente/Block/Standard/Novaforma.php +0 -14
- app/code/local/MOIP/Transparente/Block/Standard/SuccessDetails.php +0 -25
- app/code/local/MOIP/Transparente/Block/Standard/SuccessRecurring.php +0 -25
- app/code/local/MOIP/Transparente/Model/Method/Boleto.php +2 -4
- app/code/local/MOIP/Transparente/Model/Method/BoletoRecurring.php +32 -12
- app/code/local/MOIP/Transparente/Model/Method/Cc.php +2 -2
- app/code/local/MOIP/Transparente/Model/Method/CcRecurring.php +2 -1
- app/code/local/MOIP/Transparente/Model/Method/Tef.php +1 -1
- app/code/local/MOIP/Transparente/Model/Observer.php +13 -2
- app/code/local/MOIP/Transparente/Model/Sales/Quote/Address/Total/Fee.php +1 -1
- app/code/local/MOIP/Transparente/Model/Source/Ambiente.php +1 -1
- app/code/local/MOIP/Transparente/Model/Standard.php +1 -1
- app/code/local/MOIP/Transparente/controllers/Adminhtml/StatusmoipController.php +222 -0
- app/code/local/MOIP/Transparente/controllers/RecurringController.php +7 -5
- app/code/local/MOIP/Transparente/controllers/StandardController.php +16 -53
- app/code/local/MOIP/Transparente/etc/adminhtml.xml +17 -11
- app/code/local/MOIP/Transparente/etc/config.xml +25 -17
- app/code/local/MOIP/Transparente/etc/system.xml +49 -46
- app/code/local/MOIP/Transparente/sql/transparente_setup/mysql4-upgrade-0.1.0-0.2.2.php +4 -10
- app/design/adminhtml/default/default/template/MOIP/account/system/config/button/button.phtml +0 -37
- app/design/frontend/base/default/layout/moip_transparente.xml +59 -5
- app/design/frontend/base/default/template/MOIP/onestepcheckout/cadastro/CreateAccount.phtml +1 -2
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard.phtml +54 -22
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml +1 -3
- app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml +5 -1
- app/design/frontend/base/default/template/MOIP/onestepcheckout/onepagejs.phtml +15 -42
- app/design/frontend/base/default/template/MOIP/onestepcheckout/page/footer.phtml +0 -1
- app/design/frontend/base/default/template/MOIP/onestepcheckout/page/single-header.phtml +2 -2
- app/design/frontend/base/default/template/MOIP/product/view/discount.phtml +1 -2
- app/design/frontend/base/default/template/MOIP/transparente/SuccessDetails.phtml +0 -91
- app/design/frontend/base/default/template/MOIP/transparente/checkout/success/boleto.phtml +0 -38
- app/design/frontend/base/default/template/MOIP/transparente/checkout/success/details.phtml +68 -0
- app/design/frontend/base/default/template/MOIP/transparente/{redirect → checkout/success/method}/boleto.phtml +3 -5
- app/design/frontend/base/default/template/MOIP/transparente/checkout/success/method/boletorecorrente.phtml +30 -0
- app/design/frontend/base/default/template/MOIP/transparente/{redirect → checkout/success/method}/cartao.phtml +13 -13
- app/design/frontend/base/default/template/MOIP/transparente/{redirect → checkout/success/method}/transferencia.phtml +4 -5
- app/design/frontend/base/default/template/MOIP/transparente/checkout/success/moip.phtml +10 -0
- app/design/frontend/base/default/template/MOIP/transparente/checkout/success/success.phtml +0 -67
- app/design/frontend/base/default/template/MOIP/transparente/emptyupdate.phtml +0 -26
- app/design/frontend/base/default/template/MOIP/transparente/horizontal_form.phtml +0 -340
- app/design/frontend/base/default/template/MOIP/transparente/info/boleto.phtml +12 -22
- app/design/frontend/base/default/template/MOIP/transparente/info/boletorecurring.phtml +0 -6
- app/design/frontend/base/default/template/MOIP/transparente/info/cc.phtml +5 -17
- app/design/frontend/base/default/template/MOIP/transparente/info/tef.phtml +8 -16
- app/design/frontend/base/default/template/MOIP/transparente/onclick/ShippingMethods.phtml +8 -5
- app/design/frontend/base/default/template/MOIP/transparente/redirect.phtml +0 -11
- app/design/frontend/base/default/template/MOIP/transparente/redirect/layout_boleto.phtml +0 -508
- js/MOIP/transparente/moip.js +4 -4
- package.xml +6 -6
- skin/frontend/base/default/MOIP/core/css/bootstrap-popover.css +3 -0
- skin/frontend/base/default/MOIP/onestepcheckout/css/onestepcheckout.css +30 -19
- skin/frontend/base/default/MOIP/onestepcheckout/images/fancy_title_over.png +0 -0
- skin/frontend/base/default/MOIP/transparente/css/form.css +9 -11
- skin/frontend/base/default/MOIP/transparente/css/product_view.css +44 -0
- skin/frontend/base/default/MOIP/transparente/imagem/moip_boletorecurring.png +0 -0
- skin/frontend/base/default/MOIP/transparente/imagem/moip_ccrecurring.png +0 -0
app/code/local/MOIP/Account/Block/Adminhtml/System/Config/Form/Button/Button.php
DELETED
|
@@ -1,97 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
class MOIP_Account_Block_Adminhtml_System_Config_Form_Button_Button
|
| 3 |
-
|
| 4 |
-
extends Mage_Adminhtml_Block_System_Config_Form_Field implements Varien_Data_Form_Element_Renderer_Interface
|
| 5 |
-
{
|
| 6 |
-
/*
|
| 7 |
-
* Set template
|
| 8 |
-
*/
|
| 9 |
-
protected function _construct()
|
| 10 |
-
{
|
| 11 |
-
parent::_construct();
|
| 12 |
-
$this->setTemplate('MOIP/account/system/config/button/button.phtml');
|
| 13 |
-
}
|
| 14 |
-
|
| 15 |
-
/**
|
| 16 |
-
* Return element html
|
| 17 |
-
*
|
| 18 |
-
* @param Varien_Data_Form_Element_Abstract $element
|
| 19 |
-
* @return string
|
| 20 |
-
*/
|
| 21 |
-
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
| 22 |
-
{
|
| 23 |
-
return $this->_toHtml();
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
/**
|
| 27 |
-
* Return ajax url for button
|
| 28 |
-
*
|
| 29 |
-
* @return string
|
| 30 |
-
*/
|
| 31 |
-
public function getAjaxCheckUrl()
|
| 32 |
-
{
|
| 33 |
-
return Mage::helper('adminhtml')->getUrl('adminhtml/adminhtml_moipaccount/check');
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
/**
|
| 37 |
-
* Generate button html
|
| 38 |
-
*
|
| 39 |
-
* @return string
|
| 40 |
-
*/
|
| 41 |
-
public function getButtonHtml()
|
| 42 |
-
{
|
| 43 |
-
$button = $this->getLayout()->createBlock('adminhtml/widget_button')
|
| 44 |
-
->setData(array(
|
| 45 |
-
'id' => 'moipaccount_button',
|
| 46 |
-
'label' => $this->helper('adminhtml')->__('Criar Conta Moip'),
|
| 47 |
-
'onclick' => 'javascript:check(); return false;'
|
| 48 |
-
));
|
| 49 |
-
|
| 50 |
-
return $button->toHtml();
|
| 51 |
-
}
|
| 52 |
-
|
| 53 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
| 54 |
-
{
|
| 55 |
-
|
| 56 |
-
$login = Mage::getStoreConfig('account/config/moip_login',Mage::app()->getStore());
|
| 57 |
-
$email = Mage::getStoreConfig('account/config/moip_email',Mage::app()->getStore());
|
| 58 |
-
$person_email = Mage::getStoreConfig('account/config/email',Mage::app()->getStore());
|
| 59 |
-
$id = Mage::getStoreConfig('account/config/moip_id',Mage::app()->getStore());
|
| 60 |
-
$conta_criada = Mage::getStoreConfig('account/config/conta_configurada',Mage::app()->getStore());
|
| 61 |
-
if($conta_criada == 0){
|
| 62 |
-
$this->_element = $element;
|
| 63 |
-
return $this->toHtml();
|
| 64 |
-
} else {
|
| 65 |
-
$useContainerId = $element->getData('use_container_id');
|
| 66 |
-
return sprintf(
|
| 67 |
-
'<tr class="system-fieldset-sub-head" id="row_%s">
|
| 68 |
-
<td colspan="5" style="max-width:580px;">
|
| 69 |
-
<h4 id="%s">Sua conta está configurada</h4>
|
| 70 |
-
<p class="subheading-note">Seu Login é: <span style="font-size:11px;font-style:italic;color:#999;">%s</span></p>
|
| 71 |
-
<p class="subheading-note">Seu Email da conta é: <span style="font-size:11px;font-style:italic;color:#999;">%s</span></p>
|
| 72 |
-
<p class="subheading-note">Seu ID Moip é: <span style="font-size:11px;font-style:italic;color:#999;">%s</span></p>
|
| 73 |
-
</td>
|
| 74 |
-
</tr>',
|
| 75 |
-
$element->getHtmlId(), $element->getHtmlId(), $login, $email, $id
|
| 76 |
-
);
|
| 77 |
-
}
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
}
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
public function getValueConfig($value){
|
| 88 |
-
$configValue = Mage::getStoreConfig(
|
| 89 |
-
'account/config/'.$value,
|
| 90 |
-
Mage::app()->getStore()
|
| 91 |
-
);
|
| 92 |
-
return $configValue;
|
| 93 |
-
}
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
}
|
| 97 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Account/Block/Adminhtml/System/Config/Form/Field/Date.php
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
class MOIP_Account_Block_Adminhtml_System_Config_Form_Field_Date extends Mage_Adminhtml_Block_System_Config_Form_Field
|
| 3 |
-
{
|
| 4 |
-
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
| 5 |
-
{
|
| 6 |
-
$date = new Varien_Data_Form_Element_Date;
|
| 7 |
-
$format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
|
| 8 |
-
|
| 9 |
-
$data = array(
|
| 10 |
-
'name' => $element->getName(),
|
| 11 |
-
'html_id' => $element->getId(),
|
| 12 |
-
'image' => $this->getSkinUrl('images/grid-cal.gif'),
|
| 13 |
-
);
|
| 14 |
-
$date->setData($data);
|
| 15 |
-
$date->setValue($element->getValue(), $format);
|
| 16 |
-
$date->setFormat(Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT));
|
| 17 |
-
$date->setForm($element->getForm());
|
| 18 |
-
|
| 19 |
-
return $date->getElementHtml();
|
| 20 |
-
}
|
| 21 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Account/Block/Adminhtml/System/Config/Form/Field/Selectcron.php
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
class MOIP_Account_Block_Adminhtml_System_Config_Form_Field_Selectcron
|
| 4 |
-
extends Mage_Adminhtml_Block_System_Config_Form_Fieldset{
|
| 5 |
-
|
| 6 |
-
public function toOptionArray()
|
| 7 |
-
{
|
| 8 |
-
return array(
|
| 9 |
-
array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Yes')),
|
| 10 |
-
array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('No')),
|
| 11 |
-
);
|
| 12 |
-
}
|
| 13 |
-
|
| 14 |
-
/**
|
| 15 |
-
* Get options in "key-value" format
|
| 16 |
-
*
|
| 17 |
-
* @return array
|
| 18 |
-
*/
|
| 19 |
-
public function toArray()
|
| 20 |
-
{
|
| 21 |
-
return array(
|
| 22 |
-
0 => Mage::helper('adminhtml')->__('No'),
|
| 23 |
-
1 => Mage::helper('adminhtml')->__('Yes'),
|
| 24 |
-
);
|
| 25 |
-
}
|
| 26 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Account/Block/Adminhtml/System/Config/Form/Field/Text.php
DELETED
|
@@ -1,22 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
class MOIP_Account_Block_Adminhtml_System_Config_Form_Field_Text
|
| 4 |
-
extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
|
| 5 |
-
{
|
| 6 |
-
/**
|
| 7 |
-
* Render element html
|
| 8 |
-
*
|
| 9 |
-
* @param Varien_Data_Form_Element_Abstract $element
|
| 10 |
-
* @return string
|
| 11 |
-
*/
|
| 12 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
| 13 |
-
{
|
| 14 |
-
$useContainerId = $element->getData('use_container_id');
|
| 15 |
-
return sprintf(
|
| 16 |
-
'<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" style="max-width:580px;"><h4 id="%s">%s</h4><p class="subheading-note" style="font-size:11px;font-style:italic;color:#999;"><span>%s</span></p></td></tr>',
|
| 17 |
-
$element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), $element->getComment()
|
| 18 |
-
);
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
}
|
| 22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Account/Helper/Data.php
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Transparente - Transparente Payment Module
|
| 4 |
-
*
|
| 5 |
-
* @title Magento -> Custom Payment Module for Transparente (Brazil)
|
| 6 |
-
* @category Payment Gateway
|
| 7 |
-
* @package MOIP_Transparente
|
| 8 |
-
* @author Transparente Pagamentos S/a
|
| 9 |
-
* @copyright Copyright (c) 2010 Transparente Pagamentos S/A
|
| 10 |
-
* @license http://openMsource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 11 |
-
*/
|
| 12 |
-
class MOIP_Account_Helper_Data extends Mage_Core_Helper_Abstract {
|
| 13 |
-
|
| 14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Account/Model/Observer.php
DELETED
|
@@ -1,271 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
class MOIP_Account_Model_Observer
|
| 3 |
-
{
|
| 4 |
-
|
| 5 |
-
public function sales_order_invoice_save_after($observer)
|
| 6 |
-
{
|
| 7 |
-
|
| 8 |
-
$invoice = $observer->getEvent()->getInvoice();
|
| 9 |
-
$order = $invoice->getOrder();
|
| 10 |
-
$order_id = $invoice->getOrder()->getId();
|
| 11 |
-
$order_debug = $invoice->getOrder()->Debug();
|
| 12 |
-
$payment = $order->getPayment();
|
| 13 |
-
$addinfo = $payment->getAdditionalInformation();
|
| 14 |
-
$invoices = $invoice->getOrder()->hasInvoices();
|
| 15 |
-
$method = $payment->getMethod();
|
| 16 |
-
$shipping_method = $order->getShippingDescription();
|
| 17 |
-
$shipping = $order->getShippingMethod();
|
| 18 |
-
$id_address = $order->getShippingAddressId();
|
| 19 |
-
$street = $order->getShippingAddress()->getStreet(1);
|
| 20 |
-
$address = $order->getShippingAddress();
|
| 21 |
-
$debug = array(
|
| 22 |
-
'invoce' => $invoice,
|
| 23 |
-
'order_id' => $order_id,
|
| 24 |
-
'method' => $method,
|
| 25 |
-
'shipping' => $shipping_method,
|
| 26 |
-
'shipping_code' => $shipping,
|
| 27 |
-
'id_address' => $id_address,
|
| 28 |
-
'street' => $street,
|
| 29 |
-
'street2' => $street2,
|
| 30 |
-
);
|
| 31 |
-
$debug_json = json_encode($debug);
|
| 32 |
-
$code_service = $this->_getShippingMethod($shipping_code);
|
| 33 |
-
|
| 34 |
-
if($code_service == 'false'){
|
| 35 |
-
return;
|
| 36 |
-
}
|
| 37 |
-
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?>
|
| 38 |
-
<soapenv:Envelope
|
| 39 |
-
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
|
| 40 |
-
xmlns:vis="http://www.visualset.inf.br/"
|
| 41 |
-
/>
|
| 42 |
-
');
|
| 43 |
-
|
| 44 |
-
#var_dump($order->getCustomerTaxvat());
|
| 45 |
-
#die();
|
| 46 |
-
$configValue = Mage::getStoreConfig('shippingcode/config');
|
| 47 |
-
|
| 48 |
-
$Usuario = Mage::helper('core')->decrypt($configValue['usuario']);
|
| 49 |
-
$Token = Mage::helper('core')->decrypt($configValue['token']);
|
| 50 |
-
$NrContrato = Mage::helper('core')->decrypt($configValue['NrContrato']);
|
| 51 |
-
$CodigoAdministrativo = Mage::helper('core')->decrypt($configValue['CodigoAdministrativo']);
|
| 52 |
-
$NrCartao = Mage::helper('core')->decrypt($configValue['NrCartao']);
|
| 53 |
-
|
| 54 |
-
$Header = $xml->addChild('Header');
|
| 55 |
-
$body = $xml->addChild('Body');
|
| 56 |
-
$PostarObjeto = $body->addChild('PostarObjeto', null,'http://www.visualset.inf.br/');
|
| 57 |
-
$PostagemVipp = $PostarObjeto->addChild('PostagemVipp', null,'http://www.visualset.inf.br/');
|
| 58 |
-
$PerfilVipp = $PostagemVipp->addChild('PerfilVipp', null,'http://www.visualset.inf.br/');
|
| 59 |
-
$PerfilVipp->addChild('Usuario', 'epsadmin752','http://www.visualset.inf.br/');
|
| 60 |
-
$PerfilVipp->addChild('Token', '67820778','http://www.visualset.inf.br/');
|
| 61 |
-
$PerfilVipp->addChild('IdPerfil', '722','http://www.visualset.inf.br/');
|
| 62 |
-
$ContratoEct = $PostagemVipp->addChild('ContratoEct', null,'http://www.visualset.inf.br/');
|
| 63 |
-
$ContratoEct->addChild('NrContrato', $NrContrato,'http://www.visualset.inf.br/');
|
| 64 |
-
$ContratoEct->addChild('CodigoAdministrativo', $CodigoAdministrativo,'http://www.visualset.inf.br/');
|
| 65 |
-
$ContratoEct->addChild('NrCartao', $NrCartao,'http://www.visualset.inf.br/');
|
| 66 |
-
$Destinatario = $PostagemVipp->addChild('Destinatario', null,'http://www.visualset.inf.br/');
|
| 67 |
-
$Destinatario->addChild('CnpjCpf', preg_replace("/[^0-9]/", "", $order->getCustomerTaxvat()),'http://www.visualset.inf.br/');
|
| 68 |
-
$Destinatario->addChild('IeRg', null,'http://www.visualset.inf.br/');
|
| 69 |
-
$Destinatario->addChild('Nome', $order->getCustomerFirstname().' '.$order->getCustomerLastname(),'http://www.visualset.inf.br/');
|
| 70 |
-
$Destinatario->addChild('Endereco', $address->getStreet(1),'http://www.visualset.inf.br/');
|
| 71 |
-
$Destinatario->addChild('Numero', $address->getStreet(2),'http://www.visualset.inf.br/');
|
| 72 |
-
$Destinatario->addChild('Complemento', $address->getStreet(3),'http://www.visualset.inf.br/');
|
| 73 |
-
$Destinatario->addChild('Bairro', $address->getStreet(4),'http://www.visualset.inf.br/');
|
| 74 |
-
$Destinatario->addChild('Cidade', $address->getCity(),'http://www.visualset.inf.br/');
|
| 75 |
-
$Destinatario->addChild('UF', $address->getRegionCode(),'http://www.visualset.inf.br/');
|
| 76 |
-
$Destinatario->addChild('Cep', preg_replace("/[^0-9]/", "", $address->getPostcode()),'http://www.visualset.inf.br/');
|
| 77 |
-
$Destinatario->addChild('Telefone', preg_replace("/[^0-9]/", "", $address->getTelephone()),'http://www.visualset.inf.br/');
|
| 78 |
-
$Destinatario->addChild('TelefoneSMS', null,'http://www.visualset.inf.br/');
|
| 79 |
-
$Destinatario->addChild('Email', $order->getCustomerEmail(),'http://www.visualset.inf.br/');
|
| 80 |
-
$Servico = $PostagemVipp->addChild('Servico', null,'http://www.visualset.inf.br/');
|
| 81 |
-
$Servico->addChild('ServicoECT', '40436','http://www.visualset.inf.br/');
|
| 82 |
-
$Volumes = $PostagemVipp->addChild('Volumes',null,'http://www.visualset.inf.br/');
|
| 83 |
-
$VolumeObjeto = $Volumes->addChild('VolumeObjeto',null,'http://www.visualset.inf.br/');
|
| 84 |
-
$VolumeObjeto->addChild('Peso',null,'http://www.visualset.inf.br/');
|
| 85 |
-
$VolumeObjeto->addChild('Altura',null,'http://www.visualset.inf.br/');
|
| 86 |
-
$VolumeObjeto->addChild('Largura',null,'http://www.visualset.inf.br/');
|
| 87 |
-
$VolumeObjeto->addChild('Comprimento',null,'http://www.visualset.inf.br/');
|
| 88 |
-
$VolumeObjeto->addChild('CodigoBarraVolume',null,'http://www.visualset.inf.br/');
|
| 89 |
-
$VolumeObjeto->addChild('CodigoBarraCliente',null,'http://www.visualset.inf.br/');
|
| 90 |
-
$VolumeObjeto->addChild('ObservacaoVisual',null,'http://www.visualset.inf.br/');
|
| 91 |
-
$VolumeObjeto->addChild('PosicaoVolume',null,'http://www.visualset.inf.br/');
|
| 92 |
-
$VolumeObjeto->addChild('Conteudo',null,'http://www.visualset.inf.br/');
|
| 93 |
-
$VolumeObjeto->addChild('ValorDeclarado',null,'http://www.visualset.inf.br/');
|
| 94 |
-
$VolumeObjeto->addChild('AdicionaisVolume',null,'http://www.visualset.inf.br/');
|
| 95 |
-
$VolumeObjeto->addChild('VlrACobrar',null,'http://www.visualset.inf.br/');
|
| 96 |
-
$VolumeObjeto->addChild('Etiqueta',null,'http://www.visualset.inf.br/');
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
$request = $xml->asXML();
|
| 100 |
-
Mage::log('aciona'. $debug_json, null, 'Log_ShippingCode.log', true);
|
| 101 |
-
|
| 102 |
-
$etiqueta = $this->sendXml($request);
|
| 103 |
-
$this->completeShipment($order, $etiqueta, $shipping, $shipping_method );
|
| 104 |
-
}
|
| 105 |
-
|
| 106 |
-
public function sendXml($xml){
|
| 107 |
-
Mage::log($xml, null, 'ShippingCode.xml', true);
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
$client = new SoapClient('http://sistemas.cvm.gov.br/webservices/Sistemas/SCW/CDocs/WsDownloadInfs.asmx?WSDL', array('trace' => TRUE));
|
| 111 |
-
|
| 112 |
-
#$request = file_get_contents('/hd2/sites/magento_erp/magento-ce-1.9.0.1/xml_send.xml');
|
| 113 |
-
#Mage::log($request, null, 'ShippingCode.xml', true);
|
| 114 |
-
|
| 115 |
-
$response = $client->__doRequest($xml, 'http://vpsrv.visualset.com.br/?wsdl', 'http://www.visualset.inf.br/PostarObjeto', '1.2');
|
| 116 |
-
|
| 117 |
-
Mage::log($response, null, 'ShippingCode.xml', true);
|
| 118 |
-
|
| 119 |
-
$xml = preg_replace("/(<\/?)(\w+):([^>]*>)/", "$1$2$3", $response);
|
| 120 |
-
$xml = simplexml_load_string($xml);
|
| 121 |
-
$json = json_encode($xml);
|
| 122 |
-
$responseArray = json_decode($json,true);
|
| 123 |
-
|
| 124 |
-
$etiqueta = $responseArray['soapBody']['PostarObjetoResponse']['PostarObjetoResult']['Postagem']['Volumes']['VolumeObjeto']['Etiqueta'];
|
| 125 |
-
|
| 126 |
-
Mage::log(json_encode($etiqueta), null, 'Log_ShippingCode.log', true);
|
| 127 |
-
return $etiqueta;
|
| 128 |
-
}
|
| 129 |
-
|
| 130 |
-
public function completeShipment($order , $shipmentTrackingNumber, $shipmentCarrierCode, $shipmentCarrierTitle )
|
| 131 |
-
{
|
| 132 |
-
/**
|
| 133 |
-
* It can be an alphanumeric string, but definitely unique.
|
| 134 |
-
*/
|
| 135 |
-
|
| 136 |
-
if($shipmentTrackingNumber){
|
| 137 |
-
$customerEmailComments = 'Seu produto já foi enviado para expedição e poderá ser rastreado pelo código de postagem. '.$shipmentTrackingNumber;
|
| 138 |
-
}
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
if (!$order->getId()) {
|
| 144 |
-
Mage::throwException("Order does not exist, for the Shipment process to complete");
|
| 145 |
-
}
|
| 146 |
-
|
| 147 |
-
if ($order->canShip() && $shipmentTrackingNumber) {
|
| 148 |
-
try {
|
| 149 |
-
$shipment = Mage::getModel('sales/service_order', $order)
|
| 150 |
-
->prepareShipment($this->_getItemQtys($order));
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
$arrTracking = array(
|
| 155 |
-
'carrier_code' => 'correios',
|
| 156 |
-
'title' => isset($shipmentCarrierTitle) ? $shipmentCarrierTitle : $order->getShippingCarrier()->getConfigData('title'),
|
| 157 |
-
'number' => $shipmentTrackingNumber,
|
| 158 |
-
);
|
| 159 |
-
|
| 160 |
-
$track = Mage::getModel('sales/order_shipment_track')->addData($arrTracking);
|
| 161 |
-
$shipment->addTrack($track);
|
| 162 |
-
|
| 163 |
-
// Register Shipment
|
| 164 |
-
$shipment->register();
|
| 165 |
-
|
| 166 |
-
// Save the Shipment
|
| 167 |
-
$this->_saveShipment($shipment, $order, $customerEmailComments);
|
| 168 |
-
|
| 169 |
-
// Finally, Save the Order
|
| 170 |
-
$this->_saveOrder($order, $customerEmailComments);
|
| 171 |
-
} catch (Exception $e) {
|
| 172 |
-
throw $e;
|
| 173 |
-
}
|
| 174 |
-
}
|
| 175 |
-
}
|
| 176 |
-
|
| 177 |
-
/**
|
| 178 |
-
* Get the Quantities shipped for the Order, based on an item-level
|
| 179 |
-
* This method can also be modified, to have the Partial Shipment functionality in place
|
| 180 |
-
*
|
| 181 |
-
* @param $order Mage_Sales_Model_Order
|
| 182 |
-
* @return array
|
| 183 |
-
*/
|
| 184 |
-
protected function _getItemQtys(Mage_Sales_Model_Order $order)
|
| 185 |
-
{
|
| 186 |
-
$qty = array();
|
| 187 |
-
|
| 188 |
-
foreach ($order->getAllItems() as $_eachItem) {
|
| 189 |
-
if ($_eachItem->getParentItemId()) {
|
| 190 |
-
$qty[$_eachItem->getParentItemId()] = $_eachItem->getQtyOrdered();
|
| 191 |
-
} else {
|
| 192 |
-
$qty[$_eachItem->getId()] = $_eachItem->getQtyOrdered();
|
| 193 |
-
}
|
| 194 |
-
}
|
| 195 |
-
|
| 196 |
-
return $qty;
|
| 197 |
-
}
|
| 198 |
-
|
| 199 |
-
/**
|
| 200 |
-
* Saves the Shipment changes in the Order
|
| 201 |
-
*
|
| 202 |
-
* @param $shipment Mage_Sales_Model_Order_Shipment
|
| 203 |
-
* @param $order Mage_Sales_Model_Order
|
| 204 |
-
* @param $customerEmailComments string
|
| 205 |
-
*/
|
| 206 |
-
protected function _saveShipment(Mage_Sales_Model_Order_Shipment $shipment, Mage_Sales_Model_Order $order, $customerEmailComments)
|
| 207 |
-
{
|
| 208 |
-
$shipment->getOrder()->setIsInProcess(true);
|
| 209 |
-
$transactionSave = Mage::getModel('core/resource_transaction')
|
| 210 |
-
->addObject($shipment)
|
| 211 |
-
->addObject($order)
|
| 212 |
-
->save();
|
| 213 |
-
|
| 214 |
-
$emailSentStatus = $shipment->getData('email_sent');
|
| 215 |
-
|
| 216 |
-
$shipment->sendEmail(true, $customerEmailComments);
|
| 217 |
-
$shipment->setEmailSent(true);
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
return $this;
|
| 221 |
-
}
|
| 222 |
-
|
| 223 |
-
/**
|
| 224 |
-
* Saves the Order, to complete the full life-cycle of the Order
|
| 225 |
-
* Order status will now show as Complete
|
| 226 |
-
*
|
| 227 |
-
* @param $order Mage_Sales_Model_Order
|
| 228 |
-
*/
|
| 229 |
-
protected function _saveOrder(Mage_Sales_Model_Order $order, $customerEmailComments)
|
| 230 |
-
{
|
| 231 |
-
$order->setData('state', Mage_Sales_Model_Order::STATE_COMPLETE);
|
| 232 |
-
$order->setData('status', $configValue['order_status_holded']);
|
| 233 |
-
$configValue = Mage::getStoreConfig('shippingcode/config');
|
| 234 |
-
$order->setStatus($configValue['order_status_complete']);
|
| 235 |
-
$order->getState('Enviado para Expedição');
|
| 236 |
-
$history = $order->addStatusHistoryComment($customerEmailComments, true);
|
| 237 |
-
$history->setIsCustomerNotified(true);
|
| 238 |
-
$order->save();
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
return $this;
|
| 243 |
-
}
|
| 244 |
-
|
| 245 |
-
public function _getShippingMethod($shipping_code){
|
| 246 |
-
//intelipost_3 - e-sedex
|
| 247 |
-
//intelipost_2 - sedex
|
| 248 |
-
//intelipost_1 - pac
|
| 249 |
-
// correios
|
| 250 |
-
/*
|
| 251 |
-
Código Serviço
|
| 252 |
-
40010 SEDEX Varejo
|
| 253 |
-
40045 SEDEX a Cobrar Varejo
|
| 254 |
-
40215 SEDEX 10 Varejo
|
| 255 |
-
40290 SEDEX Hoje Varejo
|
| 256 |
-
41106 PAC Varejo
|
| 257 |
-
*/
|
| 258 |
-
|
| 259 |
-
if($shipping_code == "intelipost_1")
|
| 260 |
-
return 41106;
|
| 261 |
-
elseif ($shipping_code == "intelipost_2")
|
| 262 |
-
return 40010;
|
| 263 |
-
elseif ($shipping_code == "intelipost_3")
|
| 264 |
-
return 40010;
|
| 265 |
-
elseif($shipping_code == "freeshipping_freeshipping")
|
| 266 |
-
return false;
|
| 267 |
-
else
|
| 268 |
-
return false;
|
| 269 |
-
|
| 270 |
-
}
|
| 271 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Account/controllers/Adminhtml/MoipaccountController.php
DELETED
|
@@ -1,237 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
class MOIP_Account_Adminhtml_MoipaccountController extends Mage_Adminhtml_Controller_Action
|
| 4 |
-
{
|
| 5 |
-
|
| 6 |
-
const TOKEN_TEST = "8OKLQFT5XQZXU7CKXX43GPJOMIJPMSMF";
|
| 7 |
-
const ENDPOINT_TEST = "https://sandbox.moip.com.br/v2/";
|
| 8 |
-
const ENDPOINT_PROD = "https://api.moip.com.br/v2/";
|
| 9 |
-
|
| 10 |
-
public function checkAction()
|
| 11 |
-
{
|
| 12 |
-
$name = $this->getValueConfig('name');
|
| 13 |
-
$email = $this->getValueConfig('email');
|
| 14 |
-
|
| 15 |
-
$cpf = $this->getValueConfig('cpf');
|
| 16 |
-
$rg = $this->getValueConfig('rg');
|
| 17 |
-
$birthDate = Mage::app()->getLocale()->date($this->getValueConfig('birthDate'), null, null, false)->toString('Y-MM-dd');
|
| 18 |
-
// $mother = $this->getValueConfig('mother');
|
| 19 |
-
// $father = $this->getValueConfig('father');
|
| 20 |
-
|
| 21 |
-
$phone = $this->getValueConfig('phone');
|
| 22 |
-
|
| 23 |
-
$phone_ddd = $this->getNumberOrDDD($phone, true);
|
| 24 |
-
$phone_nun = $this->getNumberOrDDD($phone, false);
|
| 25 |
-
$end_rua = $this->getValueConfig('end_rua');
|
| 26 |
-
$end_numero = $this->getValueConfig('end_numero');
|
| 27 |
-
$end_complemento = $this->getValueConfig('end_complemento');
|
| 28 |
-
$end_bairro = $this->getValueConfig('end_bairro');
|
| 29 |
-
$end_cidade = $this->getValueConfig('end_cidade');
|
| 30 |
-
$end_zipcode = $this->getValueConfig('end_zipcode');
|
| 31 |
-
$region_id = strtoupper($this->getValueConfig('region_id'));
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
$use_pj = $this->getValueConfig('use_pj');
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
$pj_name = $this->getValueConfig('pj_name');
|
| 38 |
-
|
| 39 |
-
$pj_razao = $this->getValueConfig('pj_razao');
|
| 40 |
-
$pj_cnpj = $this->getValueConfig('pj_cnpj');
|
| 41 |
-
|
| 42 |
-
$pj_fone = $this->getValueConfig('pj_fone');
|
| 43 |
-
$pj_phone_ddd = $this->getNumberOrDDD($pj_fone, true);
|
| 44 |
-
$pj_phone_nun = $this->getNumberOrDDD($pj_fone, false);
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
$pj_end_rua = $this->getValueConfig('pj_end_rua');
|
| 48 |
-
$pj_end_numero = $this->getValueConfig('pj_end_numero');
|
| 49 |
-
$pj_end_complemento = $this->getValueConfig('pj_end_complemento');
|
| 50 |
-
$pj_end_bairro = $this->getValueConfig('pj_end_bairro');
|
| 51 |
-
$pj_end_cidade = $this->getValueConfig('pj_end_cidade');
|
| 52 |
-
$pj_region_id = $this->getValueConfig('pj_region_id');
|
| 53 |
-
$pj_end_zipcode = strtoupper($this->getValueConfig('pj_end_zipcode'));
|
| 54 |
-
|
| 55 |
-
if($use_pj != 1){
|
| 56 |
-
$company = array( "company" => array(
|
| 57 |
-
"name" => $pj_name,
|
| 58 |
-
"businessName" => $pj_razao,
|
| 59 |
-
"taxDocument" => array(
|
| 60 |
-
"type" => "CNPJ",
|
| 61 |
-
"number" => $pj_cnpj
|
| 62 |
-
),
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
"phone" => array(
|
| 66 |
-
"countryCode" => "55",
|
| 67 |
-
"areaCode" => $pj_phone_ddd,
|
| 68 |
-
"number" => $pj_phone_nun
|
| 69 |
-
),
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
"address" => array(
|
| 73 |
-
"street" => $pj_end_rua,
|
| 74 |
-
"streetNumber" => $pj_end_numero,
|
| 75 |
-
"complement" => $pj_end_complemento,
|
| 76 |
-
"district" => $pj_end_bairro,
|
| 77 |
-
"zipcode" => $pj_end_zipcode,
|
| 78 |
-
"city" => $pj_end_cidade,
|
| 79 |
-
"state" => "SP",
|
| 80 |
-
"country" => "BRA"
|
| 81 |
-
)
|
| 82 |
-
)
|
| 83 |
-
);
|
| 84 |
-
|
| 85 |
-
} else {
|
| 86 |
-
$company = null;
|
| 87 |
-
}
|
| 88 |
-
|
| 89 |
-
$array = array(
|
| 90 |
-
"email" => array('address' => $email ),
|
| 91 |
-
"person" => array(
|
| 92 |
-
'name' => $name,
|
| 93 |
-
'taxDocument' => array(
|
| 94 |
-
'type' => "CPF",
|
| 95 |
-
'number' => $cpf
|
| 96 |
-
),
|
| 97 |
-
'identityDocument' => array(
|
| 98 |
-
'type' => "RG",
|
| 99 |
-
'number' => $rg
|
| 100 |
-
),
|
| 101 |
-
'birthDate' => $birthDate,
|
| 102 |
-
// 'parentsName' => array(
|
| 103 |
-
// 'mother' => $mother,
|
| 104 |
-
// 'father' => $father
|
| 105 |
-
// ),
|
| 106 |
-
'phone' => array(
|
| 107 |
-
'countryCode' => '55',
|
| 108 |
-
'areaCode' => $phone_ddd,
|
| 109 |
-
'number' => $phone_nun,
|
| 110 |
-
),
|
| 111 |
-
'address' => array(
|
| 112 |
-
'street' => $end_rua,
|
| 113 |
-
'streetNumber' => $end_numero,
|
| 114 |
-
'complement' => $end_complemento,
|
| 115 |
-
'district' => $end_bairro,
|
| 116 |
-
'zipcode' => $end_zipcode,
|
| 117 |
-
'city' => $end_cidade,
|
| 118 |
-
'state' => 'SP',
|
| 119 |
-
'country' => 'BRA',
|
| 120 |
-
),
|
| 121 |
-
|
| 122 |
-
),
|
| 123 |
-
$company,
|
| 124 |
-
);
|
| 125 |
-
|
| 126 |
-
$account = $this->createAccount(json_encode($array));
|
| 127 |
-
$model = new Mage_Core_Model_Config();
|
| 128 |
-
$store_code = 'default';
|
| 129 |
-
$store_id = Mage::app()->getStore()->getStoreId();
|
| 130 |
-
if(!isset($account->errors)){
|
| 131 |
-
$redirect = $account->_links->setPassword->href;
|
| 132 |
-
$setRedirect['page_redirect'] = '1';
|
| 133 |
-
$setRedirect['url_redirect'] = $redirect;
|
| 134 |
-
$model->saveConfig('account/config/moip_login', $account->login, $store_code, $store_id);
|
| 135 |
-
$model->saveConfig('account/config/moip_id', $account->id, $store_code, $store_id);
|
| 136 |
-
$model->saveConfig('account/config/moip_email', $account->address, $store_code, $store_id);
|
| 137 |
-
$model->saveConfig('account/config/conta_configurada', 1, $store_code, $store_id);
|
| 138 |
-
|
| 139 |
-
return $this->getResponse()->setBody(json_encode($setRedirect));
|
| 140 |
-
} else {
|
| 141 |
-
$this->getResponse()->setHeader('Content-type', 'application/json');
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
if(isset($account->additionalInfo)){
|
| 145 |
-
$errors['page_redirect'] = '0';
|
| 146 |
-
$model->saveConfig('account/config/moip_login', $account->additionalInfo->account->login, $store_code, $store_id);
|
| 147 |
-
$model->saveConfig('account/config/moip_id', $account->additionalInfo->account->id, $store_code, $store_id);
|
| 148 |
-
$model->saveConfig('account/config/moip_email', $account->additionalInfo->account->email, $store_code, $store_id);
|
| 149 |
-
$model->saveConfig('account/config/conta_configurada', 1, $store_code, $store_id);
|
| 150 |
-
|
| 151 |
-
$errors['id'] = $account->additionalInfo->account->id;
|
| 152 |
-
$errors['login'] = $account->additionalInfo->account->login;
|
| 153 |
-
$errors['email'] = $account->additionalInfo->account->email;
|
| 154 |
-
} else {
|
| 155 |
-
foreach ($account->errors as $key => $value) {
|
| 156 |
-
$model->saveConfig('account/config/conta_configurada', 0, $store_code, $store_id);
|
| 157 |
-
$errors['page_redirect'] = '0';
|
| 158 |
-
$errors = $value->description;
|
| 159 |
-
}
|
| 160 |
-
}
|
| 161 |
-
}
|
| 162 |
-
|
| 163 |
-
return $this->getResponse()->setBody(json_encode($errors));
|
| 164 |
-
|
| 165 |
-
}
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
public function getValueConfig($value){
|
| 170 |
-
$configValue = Mage::getStoreConfig(
|
| 171 |
-
'account/config/'.$value,
|
| 172 |
-
Mage::app()->getStore()
|
| 173 |
-
);
|
| 174 |
-
return $configValue;
|
| 175 |
-
}
|
| 176 |
-
|
| 177 |
-
public function createAccount($json)
|
| 178 |
-
{
|
| 179 |
-
|
| 180 |
-
$url = self::ENDPOINT_TEST."accounts";
|
| 181 |
-
$Basic = base64_encode(self::TOKEN_TEST . ":" . self::KEY_TEST);
|
| 182 |
-
$header = "Authorization: OAuth " . self::Oauth_TEST;
|
| 183 |
-
$documento = 'Content-Type: application/json; charset=utf-8';
|
| 184 |
-
$result = array();
|
| 185 |
-
$ch = curl_init();
|
| 186 |
-
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
| 187 |
-
curl_setopt($ch, CURLOPT_URL, $url);
|
| 188 |
-
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
|
| 189 |
-
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
|
| 190 |
-
curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
|
| 191 |
-
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
|
| 192 |
-
$header,
|
| 193 |
-
$documento
|
| 194 |
-
));
|
| 195 |
-
curl_setopt($ch, CURLOPT_USERAGENT, 'MoipMagento/2.0.0');
|
| 196 |
-
$responseBody = curl_exec($ch);
|
| 197 |
-
$info_curl = curl_getinfo($ch);
|
| 198 |
-
curl_close($ch);
|
| 199 |
-
$this->generateLog($json, 'MOIP_CreateAccount.log');
|
| 200 |
-
$this->generateLog($responseBody, 'MOIP_CreateAccount.log');
|
| 201 |
-
$this->generateLog($header, 'MOIP_CreateAccount.log');
|
| 202 |
-
$this->generateLog(json_encode($info_curl), 'MOIP_CreateAccount.log');
|
| 203 |
-
|
| 204 |
-
$decode = json_decode($responseBody);
|
| 205 |
-
return $decode;
|
| 206 |
-
}
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
public function generateLog($variable, $name_log){
|
| 210 |
-
$dir_log = Mage::getBaseDir('var').'/log/MOIP/';
|
| 211 |
-
if (!file_exists($dir_log)) {
|
| 212 |
-
mkdir($dir_log, 0755, true);
|
| 213 |
-
}
|
| 214 |
-
Mage::log($variable, null, 'MOIP/'.$name_log, true);
|
| 215 |
-
return;
|
| 216 |
-
}
|
| 217 |
-
|
| 218 |
-
public function getNumberOrDDD($param_telefone, $param_ddd = false)
|
| 219 |
-
{
|
| 220 |
-
$cust_ddd = '11';
|
| 221 |
-
$cust_telephone = preg_replace("/[^0-9]/", "", $param_telefone);
|
| 222 |
-
$st = strlen($cust_telephone) - 8;
|
| 223 |
-
if ($st > 0) {
|
| 224 |
-
$cust_ddd = substr($cust_telephone, 0, 2);
|
| 225 |
-
$cust_telephone = substr($cust_telephone, $st, 8);
|
| 226 |
-
}
|
| 227 |
-
if ($param_ddd === false) {
|
| 228 |
-
$retorno = $cust_telephone;
|
| 229 |
-
} else {
|
| 230 |
-
$retorno = $cust_ddd;
|
| 231 |
-
}
|
| 232 |
-
return $retorno;
|
| 233 |
-
}
|
| 234 |
-
|
| 235 |
-
}
|
| 236 |
-
|
| 237 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Account/etc/config.xml
DELETED
|
@@ -1,84 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<config>
|
| 3 |
-
<modules>
|
| 4 |
-
<MOIP_Account>
|
| 5 |
-
<version>0.1.0</version>
|
| 6 |
-
</MOIP_Account>
|
| 7 |
-
</modules>
|
| 8 |
-
<admin>
|
| 9 |
-
<routers>
|
| 10 |
-
<adminhtml>
|
| 11 |
-
<args>
|
| 12 |
-
<modules>
|
| 13 |
-
<moipaccount after="Mage_Adminhtml">MOIP_Account</moipaccount>
|
| 14 |
-
</modules>
|
| 15 |
-
</args>
|
| 16 |
-
</adminhtml>
|
| 17 |
-
</routers>
|
| 18 |
-
</admin>
|
| 19 |
-
<adminhtml>
|
| 20 |
-
<acl>
|
| 21 |
-
<resources>
|
| 22 |
-
<all>
|
| 23 |
-
<title>Allow Everything</title>
|
| 24 |
-
</all>
|
| 25 |
-
<admin>
|
| 26 |
-
<children>
|
| 27 |
-
<MOIP_Account>
|
| 28 |
-
<title>MOIP_Account</title>
|
| 29 |
-
<sort_order>20</sort_order>
|
| 30 |
-
</MOIP_Account>
|
| 31 |
-
<system>
|
| 32 |
-
<children>
|
| 33 |
-
<config>
|
| 34 |
-
<children>
|
| 35 |
-
<account translate="title" module="account">
|
| 36 |
-
<title>Account Moip</title>
|
| 37 |
-
</account>
|
| 38 |
-
</children>
|
| 39 |
-
</config>
|
| 40 |
-
</children>
|
| 41 |
-
</system>
|
| 42 |
-
</children>
|
| 43 |
-
</admin>
|
| 44 |
-
</resources>
|
| 45 |
-
</acl>
|
| 46 |
-
</adminhtml>
|
| 47 |
-
<global>
|
| 48 |
-
<helpers>
|
| 49 |
-
<account>
|
| 50 |
-
<class>MOIP_Account_Helper</class>
|
| 51 |
-
</account>
|
| 52 |
-
</helpers>
|
| 53 |
-
<events>
|
| 54 |
-
<!--sales_order_invoice_save_after>
|
| 55 |
-
<observers>
|
| 56 |
-
<account>
|
| 57 |
-
<type>singleton</type>
|
| 58 |
-
<class>O2TI_account_Model_Observer</class>
|
| 59 |
-
<method>sales_order_invoice_save_after</method>
|
| 60 |
-
</account>
|
| 61 |
-
</observers>
|
| 62 |
-
</sales_order_invoice_save_after -->
|
| 63 |
-
|
| 64 |
-
</events>
|
| 65 |
-
<models>
|
| 66 |
-
<account>
|
| 67 |
-
<class>MOIP_Account_Model</class>
|
| 68 |
-
</account>
|
| 69 |
-
</models>
|
| 70 |
-
<blocks>
|
| 71 |
-
<account>
|
| 72 |
-
<class>MOIP_Account_Block</class>
|
| 73 |
-
</account>
|
| 74 |
-
|
| 75 |
-
</blocks>
|
| 76 |
-
</global>
|
| 77 |
-
<default>
|
| 78 |
-
<account>
|
| 79 |
-
<config>
|
| 80 |
-
<conta_configurada>0</conta_configurada>
|
| 81 |
-
</config>
|
| 82 |
-
</account>
|
| 83 |
-
</default>
|
| 84 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Account/etc/system.xml
DELETED
|
@@ -1,444 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<config>
|
| 3 |
-
<tabs>
|
| 4 |
-
<moip translate="label" module="account">
|
| 5 |
-
<label>MOIP.COM.BR</label>
|
| 6 |
-
<sort_order>100</sort_order>
|
| 7 |
-
</moip>
|
| 8 |
-
</tabs>
|
| 9 |
-
<sections>
|
| 10 |
-
<account translate="label" module="account">
|
| 11 |
-
<label><![CDATA[ <div style="height: 33px; "><img src="http://imagem.o2ti.com/transparente_moip.png" style="float:left; "/><div style="padding-top:8px;color:#2f3850">Moip Account<sup style="float: right;">API-V2</sup></div></div>]]></label>
|
| 12 |
-
<tab>moip</tab>
|
| 13 |
-
<frontend_type>text</frontend_type>
|
| 14 |
-
<sort_order>10</sort_order>
|
| 15 |
-
<show_in_default>1</show_in_default>
|
| 16 |
-
<show_in_website>1</show_in_website>
|
| 17 |
-
<show_in_store>1</show_in_store>
|
| 18 |
-
<groups>
|
| 19 |
-
<config translate="label">
|
| 20 |
-
<label>Configuração de Conta Moip</label>
|
| 21 |
-
<frontend_type>text</frontend_type>
|
| 22 |
-
<sort_order>1</sort_order>
|
| 23 |
-
<show_in_default>1</show_in_default>
|
| 24 |
-
<show_in_website>1</show_in_website>
|
| 25 |
-
<show_in_store>1</show_in_store>
|
| 26 |
-
<fields>
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
<check translate="label">
|
| 30 |
-
<label>Criar Conta</label>
|
| 31 |
-
<frontend_type>button</frontend_type>
|
| 32 |
-
<frontend_model>account/adminhtml_system_config_form_button_button</frontend_model>
|
| 33 |
-
<sort_order>0</sort_order>
|
| 34 |
-
<show_in_default>1</show_in_default>
|
| 35 |
-
<show_in_website>1</show_in_website>
|
| 36 |
-
<show_in_store>1</show_in_store>
|
| 37 |
-
</check>
|
| 38 |
-
|
| 39 |
-
<type_account_moip translate="label">
|
| 40 |
-
<label>Tipo de conta</label>
|
| 41 |
-
<depends>
|
| 42 |
-
<conta_configurada>0</conta_configurada>
|
| 43 |
-
</depends>
|
| 44 |
-
<frontend_model>account/adminhtml_system_config_form_field_text</frontend_model>
|
| 45 |
-
<sort_order>0</sort_order>
|
| 46 |
-
<show_in_default>1</show_in_default>
|
| 47 |
-
<show_in_website>1</show_in_website>
|
| 48 |
-
<show_in_store>1</show_in_store>
|
| 49 |
-
</type_account_moip>
|
| 50 |
-
<use_pj translate="label">
|
| 51 |
-
<label>Você possuí CNPJ?</label>
|
| 52 |
-
<depends>
|
| 53 |
-
<conta_configurada>0</conta_configurada>
|
| 54 |
-
</depends>
|
| 55 |
-
<comment><![CDATA[Não é necessário CNPJ para criar sua conta no moip, essa informação é apenas para validarmos se haverá ou não solicitação de dados empresáriais.]]></comment>
|
| 56 |
-
<frontend_type>select</frontend_type>
|
| 57 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 58 |
-
<sort_order>1</sort_order>
|
| 59 |
-
<show_in_default>1</show_in_default>
|
| 60 |
-
<show_in_website>1</show_in_website>
|
| 61 |
-
<show_in_store>1</show_in_store>
|
| 62 |
-
</use_pj>
|
| 63 |
-
<heading_persona translate="label">
|
| 64 |
-
<label>Dados Pessoais</label>
|
| 65 |
-
<frontend_model>account/adminhtml_system_config_form_field_text</frontend_model>
|
| 66 |
-
<depends>
|
| 67 |
-
<conta_configurada>0</conta_configurada>
|
| 68 |
-
</depends>
|
| 69 |
-
<sort_order>5</sort_order>
|
| 70 |
-
<show_in_default>1</show_in_default>
|
| 71 |
-
<show_in_website>1</show_in_website>
|
| 72 |
-
<show_in_store>1</show_in_store>
|
| 73 |
-
</heading_persona>
|
| 74 |
-
<name translate="label">
|
| 75 |
-
<label>Nome:</label>
|
| 76 |
-
<depends>
|
| 77 |
-
<conta_configurada>0</conta_configurada>
|
| 78 |
-
</depends>
|
| 79 |
-
<validate>required-entry validate-alphanum-with-spaces</validate>
|
| 80 |
-
<frontend_type>text</frontend_type>
|
| 81 |
-
<sort_order>6</sort_order>
|
| 82 |
-
<show_in_default>1</show_in_default>
|
| 83 |
-
<show_in_website>1</show_in_website>
|
| 84 |
-
<show_in_store>1</show_in_store>
|
| 85 |
-
</name>
|
| 86 |
-
<email translate="label">
|
| 87 |
-
<label>Email:</label>
|
| 88 |
-
<validate>required-entry validate-email</validate>
|
| 89 |
-
<depends>
|
| 90 |
-
<conta_configurada>0</conta_configurada>
|
| 91 |
-
</depends>
|
| 92 |
-
<frontend_type>text</frontend_type>
|
| 93 |
-
<sort_order>7</sort_order>
|
| 94 |
-
<show_in_default>1</show_in_default>
|
| 95 |
-
<show_in_website>1</show_in_website>
|
| 96 |
-
<show_in_store>1</show_in_store>
|
| 97 |
-
</email>
|
| 98 |
-
<phone translate="label">
|
| 99 |
-
<depends>
|
| 100 |
-
<conta_configurada>0</conta_configurada>
|
| 101 |
-
</depends>
|
| 102 |
-
|
| 103 |
-
<label>Telefone:</label>
|
| 104 |
-
<validate>required-entry validate-length minimum-length-10 maximum-length-11</validate>
|
| 105 |
-
<frontend_type>text</frontend_type>
|
| 106 |
-
<sort_order>8</sort_order>
|
| 107 |
-
<show_in_default>1</show_in_default>
|
| 108 |
-
<show_in_website>1</show_in_website>
|
| 109 |
-
<show_in_store>1</show_in_store>
|
| 110 |
-
</phone>
|
| 111 |
-
|
| 112 |
-
<heading_document translate="label">
|
| 113 |
-
<label>Documentos Pessoais</label>
|
| 114 |
-
<depends>
|
| 115 |
-
<conta_configurada>0</conta_configurada>
|
| 116 |
-
</depends>
|
| 117 |
-
|
| 118 |
-
<frontend_model>account/adminhtml_system_config_form_field_text</frontend_model>
|
| 119 |
-
<sort_order>20</sort_order>
|
| 120 |
-
<show_in_default>1</show_in_default>
|
| 121 |
-
<show_in_website>1</show_in_website>
|
| 122 |
-
<show_in_store>1</show_in_store>
|
| 123 |
-
</heading_document>
|
| 124 |
-
|
| 125 |
-
<cpf translate="label">
|
| 126 |
-
<label>CPF:</label>
|
| 127 |
-
<depends>
|
| 128 |
-
<conta_configurada>0</conta_configurada>
|
| 129 |
-
</depends>
|
| 130 |
-
<validate>required-entry validate-length minimum-length-11 maximum-length-11</validate>
|
| 131 |
-
<frontend_type>text</frontend_type>
|
| 132 |
-
<sort_order>25</sort_order>
|
| 133 |
-
<show_in_default>1</show_in_default>
|
| 134 |
-
<show_in_website>1</show_in_website>
|
| 135 |
-
<show_in_store>1</show_in_store>
|
| 136 |
-
</cpf>
|
| 137 |
-
<rg translate="label">
|
| 138 |
-
<label>RG:</label>
|
| 139 |
-
<depends>
|
| 140 |
-
<conta_configurada>0</conta_configurada>
|
| 141 |
-
</depends>
|
| 142 |
-
<validate>required-entry</validate>
|
| 143 |
-
<frontend_type>text</frontend_type>
|
| 144 |
-
<sort_order>26</sort_order>
|
| 145 |
-
<show_in_default>1</show_in_default>
|
| 146 |
-
<show_in_website>1</show_in_website>
|
| 147 |
-
<show_in_store>1</show_in_store>
|
| 148 |
-
</rg>
|
| 149 |
-
<birthDate translate="label">
|
| 150 |
-
<label>Data de Nascimento:</label>
|
| 151 |
-
<depends>
|
| 152 |
-
<conta_configurada>0</conta_configurada>
|
| 153 |
-
</depends>
|
| 154 |
-
<validate>required-entry validate-length minimum-length-10 maximum-length-10</validate>
|
| 155 |
-
<frontend_model>account/adminhtml_system_config_form_field_date</frontend_model>
|
| 156 |
-
<frontend_type>text</frontend_type>
|
| 157 |
-
<sort_order>27</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>
|
| 161 |
-
</birthDate>
|
| 162 |
-
|
| 163 |
-
<heading_endereco translate="label">
|
| 164 |
-
<depends>
|
| 165 |
-
<conta_configurada>0</conta_configurada>
|
| 166 |
-
|
| 167 |
-
</depends>
|
| 168 |
-
<label>Endereço Residencial</label>
|
| 169 |
-
<frontend_model>account/adminhtml_system_config_form_field_text</frontend_model>
|
| 170 |
-
<sort_order>40</sort_order>
|
| 171 |
-
<show_in_default>1</show_in_default>
|
| 172 |
-
<show_in_website>1</show_in_website>
|
| 173 |
-
<show_in_store>1</show_in_store>
|
| 174 |
-
</heading_endereco>
|
| 175 |
-
<end_rua translate="label">
|
| 176 |
-
<depends>
|
| 177 |
-
<conta_configurada>0</conta_configurada>
|
| 178 |
-
</depends>
|
| 179 |
-
<label>Rua:</label>
|
| 180 |
-
<validate>required-entry validate-alphanum-with-spaces</validate>
|
| 181 |
-
<frontend_type>text</frontend_type>
|
| 182 |
-
<sort_order>42</sort_order>
|
| 183 |
-
<show_in_default>1</show_in_default>
|
| 184 |
-
<show_in_website>1</show_in_website>
|
| 185 |
-
<show_in_store>1</show_in_store>
|
| 186 |
-
</end_rua>
|
| 187 |
-
<end_numero translate="label">
|
| 188 |
-
<depends>
|
| 189 |
-
<conta_configurada>0</conta_configurada>
|
| 190 |
-
</depends>
|
| 191 |
-
<label>Número:</label>
|
| 192 |
-
<validate>required-entry validate-alphanum-with-spaces</validate>
|
| 193 |
-
<frontend_type>text</frontend_type>
|
| 194 |
-
<sort_order>43</sort_order>
|
| 195 |
-
<show_in_default>1</show_in_default>
|
| 196 |
-
<show_in_website>1</show_in_website>
|
| 197 |
-
<show_in_store>1</show_in_store>
|
| 198 |
-
</end_numero>
|
| 199 |
-
<end_complemento translate="label">
|
| 200 |
-
<depends>
|
| 201 |
-
<conta_configurada>0</conta_configurada>
|
| 202 |
-
</depends>
|
| 203 |
-
<label>Complemento:</label>
|
| 204 |
-
<frontend_type>text</frontend_type>
|
| 205 |
-
<sort_order>44</sort_order>
|
| 206 |
-
<show_in_default>1</show_in_default>
|
| 207 |
-
<show_in_website>1</show_in_website>
|
| 208 |
-
<show_in_store>1</show_in_store>
|
| 209 |
-
</end_complemento>
|
| 210 |
-
<end_bairro translate="label">
|
| 211 |
-
<depends>
|
| 212 |
-
<conta_configurada>0</conta_configurada>
|
| 213 |
-
</depends>
|
| 214 |
-
<label>Bairro:</label>
|
| 215 |
-
<validate>required-entry validate-alphanum-with-spaces</validate>
|
| 216 |
-
<frontend_type>text</frontend_type>
|
| 217 |
-
<sort_order>45</sort_order>
|
| 218 |
-
<show_in_default>1</show_in_default>
|
| 219 |
-
<show_in_website>1</show_in_website>
|
| 220 |
-
<show_in_store>1</show_in_store>
|
| 221 |
-
</end_bairro>
|
| 222 |
-
<end_cidade translate="label">
|
| 223 |
-
<depends>
|
| 224 |
-
<conta_configurada>0</conta_configurada>
|
| 225 |
-
</depends>
|
| 226 |
-
<label>Cidade:</label>
|
| 227 |
-
<validate>required-entry validate-alphanum-with-spaces</validate>
|
| 228 |
-
<frontend_type>text</frontend_type>
|
| 229 |
-
<sort_order>46</sort_order>
|
| 230 |
-
<show_in_default>1</show_in_default>
|
| 231 |
-
<show_in_website>1</show_in_website>
|
| 232 |
-
<show_in_store>1</show_in_store>
|
| 233 |
-
</end_cidade>
|
| 234 |
-
<region_id translate="label">
|
| 235 |
-
<depends>
|
| 236 |
-
<conta_configurada>0</conta_configurada>
|
| 237 |
-
</depends>
|
| 238 |
-
<label>Estado</label>
|
| 239 |
-
<validate>required-entry validate-alpha validate-length minimum-length-2 maximum-length-2</validate>
|
| 240 |
-
<frontend_type>text</frontend_type>
|
| 241 |
-
<sort_order>47</sort_order>
|
| 242 |
-
<show_in_default>1</show_in_default>
|
| 243 |
-
<show_in_website>1</show_in_website>
|
| 244 |
-
<show_in_store>0</show_in_store>
|
| 245 |
-
</region_id>
|
| 246 |
-
<end_zipcode translate="label">
|
| 247 |
-
<depends>
|
| 248 |
-
<conta_configurada>0</conta_configurada>
|
| 249 |
-
</depends>
|
| 250 |
-
<label>CEP</label>
|
| 251 |
-
<validate>required-entry validate-length minimum-length-8 maximum-length-8</validate>
|
| 252 |
-
<frontend_type>text</frontend_type>
|
| 253 |
-
<sort_order>47</sort_order>
|
| 254 |
-
<show_in_default>1</show_in_default>
|
| 255 |
-
<show_in_website>1</show_in_website>
|
| 256 |
-
<show_in_store>0</show_in_store>
|
| 257 |
-
</end_zipcode>
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
<heading_pj translate="label">
|
| 263 |
-
|
| 264 |
-
<label>Pessoa Jurídica</label>
|
| 265 |
-
<frontend_model>account/adminhtml_system_config_form_field_text</frontend_model>
|
| 266 |
-
<depends>
|
| 267 |
-
<conta_configurada>0</conta_configurada>
|
| 268 |
-
<use_pj>1</use_pj>
|
| 269 |
-
</depends>
|
| 270 |
-
<sort_order>50</sort_order>
|
| 271 |
-
<show_in_default>1</show_in_default>
|
| 272 |
-
<show_in_website>1</show_in_website>
|
| 273 |
-
<show_in_store>1</show_in_store>
|
| 274 |
-
</heading_pj>
|
| 275 |
-
<pj_name translate="label">
|
| 276 |
-
<label>Nome Fantasia</label>
|
| 277 |
-
|
| 278 |
-
<depends>
|
| 279 |
-
<conta_configurada>0</conta_configurada>
|
| 280 |
-
<use_pj>1</use_pj>
|
| 281 |
-
</depends>
|
| 282 |
-
<validate>required-entry validate-alphanum-with-spaces</validate>
|
| 283 |
-
<frontend_type>text</frontend_type>
|
| 284 |
-
<sort_order>51</sort_order>
|
| 285 |
-
<show_in_default>1</show_in_default>
|
| 286 |
-
<show_in_website>1</show_in_website>
|
| 287 |
-
<show_in_store>0</show_in_store>
|
| 288 |
-
</pj_name>
|
| 289 |
-
<pj_fone translate="label">
|
| 290 |
-
<depends>
|
| 291 |
-
<conta_configurada>0</conta_configurada>
|
| 292 |
-
<use_pj>1</use_pj>
|
| 293 |
-
</depends>
|
| 294 |
-
<validate>required-entry validate-length minimum-length-10 maximum-length-11</validate>
|
| 295 |
-
<label>Telefone</label>
|
| 296 |
-
<frontend_type>text</frontend_type>
|
| 297 |
-
<sort_order>52</sort_order>
|
| 298 |
-
<show_in_default>1</show_in_default>
|
| 299 |
-
<show_in_website>1</show_in_website>
|
| 300 |
-
<show_in_store>0</show_in_store>
|
| 301 |
-
</pj_fone>
|
| 302 |
-
|
| 303 |
-
<pj_razao translate="label">
|
| 304 |
-
<depends>
|
| 305 |
-
<conta_configurada>0</conta_configurada>
|
| 306 |
-
<use_pj>1</use_pj>
|
| 307 |
-
</depends>
|
| 308 |
-
<label>Razão Social</label>
|
| 309 |
-
<frontend_type>text</frontend_type>
|
| 310 |
-
<sort_order>52</sort_order>
|
| 311 |
-
<show_in_default>1</show_in_default>
|
| 312 |
-
<show_in_website>1</show_in_website>
|
| 313 |
-
<show_in_store>0</show_in_store>
|
| 314 |
-
</pj_razao>
|
| 315 |
-
<pj_cnpj translate="label">
|
| 316 |
-
<depends>
|
| 317 |
-
<conta_configurada>0</conta_configurada>
|
| 318 |
-
<use_pj>1</use_pj>
|
| 319 |
-
</depends>
|
| 320 |
-
<validate>required-entry validate-length minimum-length-14 maximum-length-14</validate>
|
| 321 |
-
<label>CNPJ</label>
|
| 322 |
-
<frontend_type>text</frontend_type>
|
| 323 |
-
<sort_order>60</sort_order>
|
| 324 |
-
<show_in_default>1</show_in_default>
|
| 325 |
-
<show_in_website>1</show_in_website>
|
| 326 |
-
<show_in_store>0</show_in_store>
|
| 327 |
-
</pj_cnpj>
|
| 328 |
-
|
| 329 |
-
<heading_pj_endereco translate="label">
|
| 330 |
-
<depends>
|
| 331 |
-
<conta_configurada>0</conta_configurada>
|
| 332 |
-
<use_pj>1</use_pj>
|
| 333 |
-
</depends>
|
| 334 |
-
<label>Endereço Empresarial</label>
|
| 335 |
-
<frontend_model>account/adminhtml_system_config_form_field_text</frontend_model>
|
| 336 |
-
<sort_order>70</sort_order>
|
| 337 |
-
<show_in_default>1</show_in_default>
|
| 338 |
-
<show_in_website>1</show_in_website>
|
| 339 |
-
<show_in_store>1</show_in_store>
|
| 340 |
-
</heading_pj_endereco>
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
<pj_end_rua translate="label">
|
| 345 |
-
<depends>
|
| 346 |
-
<conta_configurada>0</conta_configurada>
|
| 347 |
-
<use_pj>1</use_pj>
|
| 348 |
-
</depends>
|
| 349 |
-
<label>Rua:</label>
|
| 350 |
-
<validate>required-entry validate-alphanum-with-spaces</validate>
|
| 351 |
-
<frontend_type>text</frontend_type>
|
| 352 |
-
<sort_order>72</sort_order>
|
| 353 |
-
<show_in_default>1</show_in_default>
|
| 354 |
-
<show_in_website>1</show_in_website>
|
| 355 |
-
<show_in_store>1</show_in_store>
|
| 356 |
-
</pj_end_rua>
|
| 357 |
-
<pj_end_numero translate="label">
|
| 358 |
-
<depends>
|
| 359 |
-
<conta_configurada>0</conta_configurada>
|
| 360 |
-
<use_pj>1</use_pj>
|
| 361 |
-
</depends>
|
| 362 |
-
<label>Número:</label>
|
| 363 |
-
<validate>required-entry validate-alphanum-with-spaces</validate>
|
| 364 |
-
<frontend_type>text</frontend_type>
|
| 365 |
-
<sort_order>73</sort_order>
|
| 366 |
-
<show_in_default>1</show_in_default>
|
| 367 |
-
<show_in_website>1</show_in_website>
|
| 368 |
-
<show_in_store>1</show_in_store>
|
| 369 |
-
</pj_end_numero>
|
| 370 |
-
<pj_end_complemento translate="label">
|
| 371 |
-
<depends>
|
| 372 |
-
<conta_configurada>0</conta_configurada>
|
| 373 |
-
<use_pj>1</use_pj>
|
| 374 |
-
</depends>
|
| 375 |
-
|
| 376 |
-
<label>Complemento:</label>
|
| 377 |
-
<frontend_type>text</frontend_type>
|
| 378 |
-
<sort_order>74</sort_order>
|
| 379 |
-
<show_in_default>1</show_in_default>
|
| 380 |
-
<show_in_website>1</show_in_website>
|
| 381 |
-
<show_in_store>1</show_in_store>
|
| 382 |
-
</pj_end_complemento>
|
| 383 |
-
<pj_end_bairro translate="label">
|
| 384 |
-
<depends>
|
| 385 |
-
<conta_configurada>0</conta_configurada>
|
| 386 |
-
<use_pj>1</use_pj>
|
| 387 |
-
</depends>
|
| 388 |
-
<label>Bairro:</label>
|
| 389 |
-
<validate>required-entry validate-alphanum-with-spaces</validate>
|
| 390 |
-
<frontend_type>text</frontend_type>
|
| 391 |
-
<sort_order>75</sort_order>
|
| 392 |
-
<show_in_default>1</show_in_default>
|
| 393 |
-
<show_in_website>1</show_in_website>
|
| 394 |
-
<show_in_store>1</show_in_store>
|
| 395 |
-
</pj_end_bairro>
|
| 396 |
-
<pj_end_cidade translate="label">
|
| 397 |
-
<depends>
|
| 398 |
-
<conta_configurada>0</conta_configurada>
|
| 399 |
-
<use_pj>1</use_pj>
|
| 400 |
-
</depends>
|
| 401 |
-
<label>Cidade:</label>
|
| 402 |
-
<validate>required-entry validate-alphanum-with-spaces</validate>
|
| 403 |
-
<frontend_type>text</frontend_type>
|
| 404 |
-
<sort_order>76</sort_order>
|
| 405 |
-
<show_in_default>1</show_in_default>
|
| 406 |
-
<show_in_website>1</show_in_website>
|
| 407 |
-
<show_in_store>1</show_in_store>
|
| 408 |
-
</pj_end_cidade>
|
| 409 |
-
<pj_region_id translate="label">
|
| 410 |
-
<depends>
|
| 411 |
-
<conta_configurada>0</conta_configurada>
|
| 412 |
-
<use_pj>1</use_pj>
|
| 413 |
-
</depends>
|
| 414 |
-
<label>Estado</label>
|
| 415 |
-
<validate>required-entry validate-alpha validate-length minimum-length-2 maximum-length-2</validate>
|
| 416 |
-
<frontend_type>text</frontend_type>
|
| 417 |
-
<sort_order>77</sort_order>
|
| 418 |
-
<show_in_default>1</show_in_default>
|
| 419 |
-
<show_in_website>1</show_in_website>
|
| 420 |
-
<show_in_store>0</show_in_store>
|
| 421 |
-
</pj_region_id>
|
| 422 |
-
<pj_end_zipcode translate="label">
|
| 423 |
-
<depends>
|
| 424 |
-
<conta_configurada>0</conta_configurada>
|
| 425 |
-
<use_pj>1</use_pj>
|
| 426 |
-
</depends>
|
| 427 |
-
<label>CEP</label>
|
| 428 |
-
<validate>required-entry validate-length minimum-length-8 maximum-length-8</validate>
|
| 429 |
-
<frontend_type>text</frontend_type>
|
| 430 |
-
<sort_order>78</sort_order>
|
| 431 |
-
<show_in_default>1</show_in_default>
|
| 432 |
-
<show_in_website>1</show_in_website>
|
| 433 |
-
<show_in_store>0</show_in_store>
|
| 434 |
-
</pj_end_zipcode>
|
| 435 |
-
|
| 436 |
-
</fields>
|
| 437 |
-
</config>
|
| 438 |
-
</groups>
|
| 439 |
-
</account>
|
| 440 |
-
</sections>
|
| 441 |
-
</config>
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/All/etc/config.xml
CHANGED
|
@@ -34,7 +34,7 @@
|
|
| 34 |
<config>
|
| 35 |
<children>
|
| 36 |
<moipall translate="title" module="moipall">
|
| 37 |
-
<title>MOIP
|
| 38 |
</moipall>
|
| 39 |
</children>
|
| 40 |
</config>
|
| 34 |
<config>
|
| 35 |
<children>
|
| 36 |
<moipall translate="title" module="moipall">
|
| 37 |
+
<title>MOIP Recursos Avançados</title>
|
| 38 |
</moipall>
|
| 39 |
</children>
|
| 40 |
</config>
|
app/code/local/MOIP/Onestepcheckout/etc/config.xml
CHANGED
|
@@ -253,8 +253,9 @@
|
|
| 253 |
<page_titulo>Pagamento</page_titulo>
|
| 254 |
<page_conteudo>Sua compra segura via Transparente</page_conteudo>
|
| 255 |
<use_linha_suporte>1</use_linha_suporte>
|
| 256 |
-
<content_linha_suporte><![CDATA[Dúvidas? <a href="javascript:$zopim.livechat.window.show()" class="
|
| 257 |
-
<
|
|
|
|
| 258 |
<style_cor>000000</style_cor>
|
| 259 |
<botao_cor>000000</botao_cor>
|
| 260 |
<style_cor_background>F7F7F7</style_cor_background>
|
|
@@ -269,12 +270,9 @@
|
|
| 269 |
<showimageproduct>1</showimageproduct>
|
| 270 |
<enable_giftmessage>0</enable_giftmessage>
|
| 271 |
</addfield>
|
| 272 |
-
<
|
| 273 |
-
<allow_options>1</allow_options>
|
| 274 |
<content_options><![CDATA[Termos e condições do site...]]></content_options>
|
| 275 |
-
|
| 276 |
-
<boxheight>350</boxheight>
|
| 277 |
-
</termcondition>
|
| 278 |
</onestepcheckout>
|
| 279 |
</default>
|
| 280 |
</config>
|
| 253 |
<page_titulo>Pagamento</page_titulo>
|
| 254 |
<page_conteudo>Sua compra segura via Transparente</page_conteudo>
|
| 255 |
<use_linha_suporte>1</use_linha_suporte>
|
| 256 |
+
<content_linha_suporte><![CDATA[Dúvidas? <a href="javascript:$zopim.livechat.window.show()" class="Chat" id="control_chat">Chat Online</a> | Sac (11) 3333-3333]]></content_linha_suporte>
|
| 257 |
+
<use_pre_cadastro>1</use_pre_cadastro>
|
| 258 |
+
<page_layout>4</page_layout>
|
| 259 |
<style_cor>000000</style_cor>
|
| 260 |
<botao_cor>000000</botao_cor>
|
| 261 |
<style_cor_background>F7F7F7</style_cor_background>
|
| 270 |
<showimageproduct>1</showimageproduct>
|
| 271 |
<enable_giftmessage>0</enable_giftmessage>
|
| 272 |
</addfield>
|
| 273 |
+
<modaluse>
|
|
|
|
| 274 |
<content_options><![CDATA[Termos e condições do site...]]></content_options>
|
| 275 |
+
</modaluse>
|
|
|
|
|
|
|
| 276 |
</onestepcheckout>
|
| 277 |
</default>
|
| 278 |
</config>
|
app/code/local/MOIP/Onestepcheckout/etc/system.xml
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
<config translate="label">
|
| 20 |
<comment><![CDATA[
|
| 21 |
<div>
|
| 22 |
-
<a style="float: left;text-decoration:none;width:100%" href="http://www.moip.com/magento.php" target="_blank" style="float: left;"><img src="
|
| 23 |
</a>
|
| 24 |
<div style="float: left; color:#2f3850">
|
| 25 |
<label style="font-size: 34px">Versão: <strong>Gratuita para uso com o MoIP Transparente</strong></label>
|
| 19 |
<config translate="label">
|
| 20 |
<comment><![CDATA[
|
| 21 |
<div>
|
| 22 |
+
<a style="float: left;text-decoration:none;width:100%" href="http://www.moip.com/magento.php" target="_blank" style="float: left;"><img src="http://imagem.o2ti.com/checkout_moip.png" style="float:left;"/><h1 style="float:left;">Moip Carrinho</h1><sup>API V2</sup>
|
| 23 |
</a>
|
| 24 |
<div style="float: left; color:#2f3850">
|
| 25 |
<label style="font-size: 34px">Versão: <strong>Gratuita para uso com o MoIP Transparente</strong></label>
|
app/code/local/MOIP/Onestepcheckout/sql/moip_onestepcheckout_setup/mysql4-install-0.1.0.php
CHANGED
|
@@ -2,8 +2,9 @@
|
|
| 2 |
$installer = $this;
|
| 3 |
$installer->startSetup();
|
| 4 |
$tablePrefix = (string) Mage::getConfig()->getTablePrefix();
|
| 5 |
-
$
|
| 6 |
-
|
|
|
|
| 7 |
`moip_onestepcheckout_date_id` int(11) unsigned NOT NULL auto_increment,
|
| 8 |
`sales_order_id` int(11) unsigned NOT NULL,
|
| 9 |
`moip_customercomment_info` varchar(255) default '',
|
| 2 |
$installer = $this;
|
| 3 |
$installer->startSetup();
|
| 4 |
$tablePrefix = (string) Mage::getConfig()->getTablePrefix();
|
| 5 |
+
$tablePrefix = $tablePrefix."moip_onestepcheckout";
|
| 6 |
+
$installer->run("DROP TABLE IF EXISTS ".$tablePrefix.";
|
| 7 |
+
CREATE TABLE ".$tablePrefix." (
|
| 8 |
`moip_onestepcheckout_date_id` int(11) unsigned NOT NULL auto_increment,
|
| 9 |
`sales_order_id` int(11) unsigned NOT NULL,
|
| 10 |
`moip_customercomment_info` varchar(255) default '',
|
app/code/local/MOIP/Transparente/Block/Product/View/Discount.php
CHANGED
|
@@ -34,8 +34,13 @@ class MOIP_Transparente_Block_Product_View_Discount extends Mage_Catalog_Block_P
|
|
| 34 |
public function getNewPriceDiscount(){
|
| 35 |
$_product = $this->getProduct();
|
| 36 |
$price = $_product->getFinalPrice();
|
| 37 |
-
$
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
}
|
| 41 |
}
|
| 34 |
public function getNewPriceDiscount(){
|
| 35 |
$_product = $this->getProduct();
|
| 36 |
$price = $_product->getFinalPrice();
|
| 37 |
+
if($_product->getFinalPrice()) {
|
| 38 |
+
$percentual = $this->getPercentual() / 100;
|
| 39 |
+
$valor_final = $price - ($percentual * $price);
|
| 40 |
+
return Mage::helper('core')->currency($valor_final, true, false);
|
| 41 |
+
} else {
|
| 42 |
+
return;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
}
|
| 46 |
}
|
app/code/local/MOIP/Transparente/Block/Sales/Order/Fee.php
CHANGED
|
@@ -3,7 +3,7 @@ class MOIP_Transparente_Block_Sales_Order_Fee extends Mage_Sales_Block_Order_Tot
|
|
| 3 |
{
|
| 4 |
protected $_code = 'fee';
|
| 5 |
|
| 6 |
-
|
| 7 |
parent::_initTotals();
|
| 8 |
$shipping = $this->getSource()->getShippingAmount();
|
| 9 |
$amt = $this->getSource()->getSubtotal() + $shipping;
|
| 3 |
{
|
| 4 |
protected $_code = 'fee';
|
| 5 |
|
| 6 |
+
protected function _initTotals() {
|
| 7 |
parent::_initTotals();
|
| 8 |
$shipping = $this->getSource()->getShippingAmount();
|
| 9 |
$amt = $this->getSource()->getSubtotal() + $shipping;
|
app/code/local/MOIP/Transparente/Block/Sales/Order/Grid.php
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class MOIP_Transparente_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid
|
| 3 |
+
{
|
| 4 |
+
protected function _prepareMassaction()
|
| 5 |
+
{
|
| 6 |
+
parent::_prepareMassaction();
|
| 7 |
+
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/setstate')) {
|
| 8 |
+
$this->getMassactionBlock()->addItem(
|
| 9 |
+
'transparente',
|
| 10 |
+
array('label' => $this->__('Consultar status no Moip'),
|
| 11 |
+
'url' => Mage::helper('adminhtml')->getUrl('adminhtml/adminhtml_statusmoip/setstate'),
|
| 12 |
+
)
|
| 13 |
+
);
|
| 14 |
+
}
|
| 15 |
+
}
|
| 16 |
+
}
|
app/code/local/MOIP/Transparente/Block/Standard/Details.php
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class MOIP_Transparente_Block_Standard_Details extends Mage_Sales_Block_Items_Abstract{
|
| 3 |
+
|
| 4 |
+
public function __construct(){
|
| 5 |
+
parent::__construct();
|
| 6 |
+
}
|
| 7 |
+
public function getOrder(){
|
| 8 |
+
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
| 9 |
+
|
| 10 |
+
$current_order = Mage::getModel('sales/order')->getCollection()
|
| 11 |
+
->addFieldToFilter('increment_id', $orderId);
|
| 12 |
+
|
| 13 |
+
if($current_order) {
|
| 14 |
+
foreach( $current_order as $order ) {
|
| 15 |
+
$final = $order;
|
| 16 |
+
break;
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
return $final;
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
?>
|
app/code/local/MOIP/Transparente/Block/Standard/{Redirect.php → Moip.php}
RENAMED
|
@@ -1,22 +1,17 @@
|
|
| 1 |
<?php
|
| 2 |
-
class
|
| 3 |
{
|
| 4 |
public function __construct()
|
| 5 |
{
|
| 6 |
-
|
| 7 |
-
$
|
| 8 |
-
Mage::dispatchEvent('checkout_onepage_controller_success_action', array(
|
| 9 |
-
'order_ids' => array(
|
| 10 |
-
$session->getLastOrderId()
|
| 11 |
-
)
|
| 12 |
-
));
|
| 13 |
parent::__construct();
|
|
|
|
| 14 |
}
|
| 15 |
|
| 16 |
public function getSaveDate()
|
| 17 |
{
|
| 18 |
$order = $this->getOrder();
|
| 19 |
-
$info = $order->getPayment();
|
| 20 |
$pgto = $this->getMoipPayment();
|
| 21 |
$responseMoipJson = $pgto['response_moip'];
|
| 22 |
$responseMoip = $pgto['response_moip'];
|
|
@@ -80,12 +75,10 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
| 80 |
$model->setMoipCardInstallment($moip_card_installmentCount)->setMoipCardBrand($moip_card_brand)->setMoipCardId($moip_card_id)->setMoipCardFirst6($moip_card_first6)->setMoipCardLast4($moip_card_last4)->setMoipCardBirthdate($moip_card_birthdate)->setMoipCardTaxdocument($moip_card_taxDocument)->setMoipCardFullname($moip_card_fullname);
|
| 81 |
$model->save();
|
| 82 |
}
|
|
|
|
| 83 |
$order->sendNewOrderEmail();
|
| 84 |
$order->setEmailSent(true);
|
| 85 |
$order->save();
|
| 86 |
-
|
| 87 |
-
$order->setState(Mage_Sales_Model_Order::STATE_HOLDED, $state_onhold, $comment, $notified = false, $includeComment = true);
|
| 88 |
-
$order->save();
|
| 89 |
#$order->sendOrderUpdateEmail(true, $comment);
|
| 90 |
|
| 91 |
|
|
@@ -140,10 +133,7 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
| 140 |
return $responseMoipJson->_links->payOnlineBankDebitBanrisul->redirectHref;
|
| 141 |
}
|
| 142 |
}
|
| 143 |
-
|
| 144 |
-
{
|
| 145 |
-
$this->getSaveDate();
|
| 146 |
-
}
|
| 147 |
public function getDataMoip()
|
| 148 |
{
|
| 149 |
return $this->$_MoipData;
|
|
@@ -165,6 +155,7 @@ class MOIP_Transparente_Block_Standard_Redirect extends Mage_Checkout_Block_Onep
|
|
| 165 |
}
|
| 166 |
public function getOrder()
|
| 167 |
{
|
|
|
|
| 168 |
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
| 169 |
$current_order = Mage::getModel('sales/order')->getCollection()->addFieldToFilter('increment_id', $orderId);
|
| 170 |
if ($current_order) {
|
| 1 |
<?php
|
| 2 |
+
class MOIP_Transparente_Block_Standard_Moip extends Mage_Checkout_Block_Onepage_Success
|
| 3 |
{
|
| 4 |
public function __construct()
|
| 5 |
{
|
| 6 |
+
|
| 7 |
+
$this->getSaveDate();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
parent::__construct();
|
| 9 |
+
return $this;
|
| 10 |
}
|
| 11 |
|
| 12 |
public function getSaveDate()
|
| 13 |
{
|
| 14 |
$order = $this->getOrder();
|
|
|
|
| 15 |
$pgto = $this->getMoipPayment();
|
| 16 |
$responseMoipJson = $pgto['response_moip'];
|
| 17 |
$responseMoip = $pgto['response_moip'];
|
| 75 |
$model->setMoipCardInstallment($moip_card_installmentCount)->setMoipCardBrand($moip_card_brand)->setMoipCardId($moip_card_id)->setMoipCardFirst6($moip_card_first6)->setMoipCardLast4($moip_card_last4)->setMoipCardBirthdate($moip_card_birthdate)->setMoipCardTaxdocument($moip_card_taxDocument)->setMoipCardFullname($moip_card_fullname);
|
| 76 |
$model->save();
|
| 77 |
}
|
| 78 |
+
$order->setState(Mage_Sales_Model_Order::STATE_HOLDED, $state_onhold, $comment, $notified = false, $includeComment = true);
|
| 79 |
$order->sendNewOrderEmail();
|
| 80 |
$order->setEmailSent(true);
|
| 81 |
$order->save();
|
|
|
|
|
|
|
|
|
|
| 82 |
#$order->sendOrderUpdateEmail(true, $comment);
|
| 83 |
|
| 84 |
|
| 133 |
return $responseMoipJson->_links->payOnlineBankDebitBanrisul->redirectHref;
|
| 134 |
}
|
| 135 |
}
|
| 136 |
+
|
|
|
|
|
|
|
|
|
|
| 137 |
public function getDataMoip()
|
| 138 |
{
|
| 139 |
return $this->$_MoipData;
|
| 155 |
}
|
| 156 |
public function getOrder()
|
| 157 |
{
|
| 158 |
+
$final = "";
|
| 159 |
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
| 160 |
$current_order = Mage::getModel('sales/order')->getCollection()->addFieldToFilter('increment_id', $orderId);
|
| 161 |
if ($current_order) {
|
app/code/local/MOIP/Transparente/Block/Standard/Novaforma.php
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
class MOIP_Transparente_Block_IndexController_Novaforma extends Mage_Core_Block_Template{
|
| 3 |
-
public function __construct(){
|
| 4 |
-
parent::__construct();
|
| 5 |
-
$this->loadLayout();
|
| 6 |
-
$this->getLayout()->getBlock('content')->append($this->getLayout()->createBlock('MOIP_Transparente_Block_Standard_Novaforma'));
|
| 7 |
-
$this->renderLayout();
|
| 8 |
-
}
|
| 9 |
-
public function mostraCartao()
|
| 10 |
-
{
|
| 11 |
-
|
| 12 |
-
}
|
| 13 |
-
}
|
| 14 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Transparente/Block/Standard/SuccessDetails.php
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
class MOIP_Transparente_Block_Standard_SuccessDetails extends Mage_Sales_Block_Items_Abstract{
|
| 3 |
-
|
| 4 |
-
public function __construct(){
|
| 5 |
-
parent::__construct();
|
| 6 |
-
}
|
| 7 |
-
public function getOrder()
|
| 8 |
-
{
|
| 9 |
-
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
| 10 |
-
|
| 11 |
-
$current_order = Mage::getModel('sales/order')->getCollection()
|
| 12 |
-
->addFieldToFilter('increment_id', $orderId);
|
| 13 |
-
|
| 14 |
-
if($current_order) {
|
| 15 |
-
foreach( $current_order as $order ) {
|
| 16 |
-
$final = $order;
|
| 17 |
-
break;
|
| 18 |
-
}
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
return $final;
|
| 22 |
-
}
|
| 23 |
-
|
| 24 |
-
}
|
| 25 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Transparente/Block/Standard/SuccessRecurring.php
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
class MOIP_Transparente_Block_Standard_SuccessRecurring extends Mage_Sales_Block_Items_Abstract{
|
| 3 |
-
|
| 4 |
-
public function __construct(){
|
| 5 |
-
parent::__construct();
|
| 6 |
-
}
|
| 7 |
-
public function getOrder()
|
| 8 |
-
{
|
| 9 |
-
$orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
| 10 |
-
|
| 11 |
-
$current_order = Mage::getModel('sales/order')->getCollection()
|
| 12 |
-
->addFieldToFilter('increment_id', $orderId);
|
| 13 |
-
|
| 14 |
-
if($current_order) {
|
| 15 |
-
foreach( $current_order as $order ) {
|
| 16 |
-
$final = $order;
|
| 17 |
-
break;
|
| 18 |
-
}
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
return $final;
|
| 22 |
-
}
|
| 23 |
-
|
| 24 |
-
}
|
| 25 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/MOIP/Transparente/Model/Method/Boleto.php
CHANGED
|
@@ -25,9 +25,7 @@ class MOIP_Transparente_Model_Method_Boleto extends Mage_Payment_Model_Method_Ab
|
|
| 25 |
$data = new Varien_Object($data);
|
| 26 |
}
|
| 27 |
$info = $this->getInfoInstance();
|
| 28 |
-
$additionaldata = array(
|
| 29 |
-
'var_para_boleto' => "boleto e"
|
| 30 |
-
);
|
| 31 |
$info->setAdditionalData(serialize($additionaldata))->save()->setAdditionalInformation(serialize($additionaldata))->save();
|
| 32 |
return $this;
|
| 33 |
}
|
|
@@ -96,7 +94,7 @@ class MOIP_Transparente_Model_Method_Boleto extends Mage_Payment_Model_Method_Ab
|
|
| 96 |
'_secure' => true
|
| 97 |
));
|
| 98 |
} else {
|
| 99 |
-
return Mage::getUrl('
|
| 100 |
'_secure' => true
|
| 101 |
));
|
| 102 |
}
|
| 25 |
$data = new Varien_Object($data);
|
| 26 |
}
|
| 27 |
$info = $this->getInfoInstance();
|
| 28 |
+
$additionaldata = array();
|
|
|
|
|
|
|
| 29 |
$info->setAdditionalData(serialize($additionaldata))->save()->setAdditionalInformation(serialize($additionaldata))->save();
|
| 30 |
return $this;
|
| 31 |
}
|
| 94 |
'_secure' => true
|
| 95 |
));
|
| 96 |
} else {
|
| 97 |
+
return Mage::getUrl('checkout/onepage/success', array(
|
| 98 |
'_secure' => true
|
| 99 |
));
|
| 100 |
}
|
app/code/local/MOIP/Transparente/Model/Method/BoletoRecurring.php
CHANGED
|
@@ -5,21 +5,29 @@ class MOIP_Transparente_Model_Method_BoletoRecurring extends Mage_Payment_Model_
|
|
| 5 |
protected $_code = 'moip_boletorecurring';
|
| 6 |
protected $_formBlockType = 'transparente/form_boleto';
|
| 7 |
protected $_infoBlockType = 'transparente/info_boletorecurring';
|
| 8 |
-
protected $_isGateway =
|
| 9 |
-
protected $_canOrder =
|
| 10 |
-
protected $_canAuthorize =
|
| 11 |
-
protected $_canCapture =
|
| 12 |
-
protected $_canCapturePartial =
|
| 13 |
-
protected $_canRefund =
|
| 14 |
-
protected $_canRefundInvoicePartial =
|
| 15 |
-
protected $_canVoid =
|
| 16 |
protected $_canUseInternal = false;
|
| 17 |
protected $_canUseCheckout = true;
|
| 18 |
protected $_canUseForMultishipping = false;
|
| 19 |
protected $_canFetchTransactionInfo = true;
|
| 20 |
protected $_canCreateBillingAgreement = false;
|
|
|
|
| 21 |
protected $_canReviewPayment = true;
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
public function getPayment()
|
| 24 |
{
|
| 25 |
return $this->getQuote()->getPayment();
|
|
@@ -37,7 +45,19 @@ class MOIP_Transparente_Model_Method_BoletoRecurring extends Mage_Payment_Model_
|
|
| 37 |
return $this->getCheckout()->getQuote();
|
| 38 |
}
|
| 39 |
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
public function validate()
|
| 42 |
{
|
| 43 |
|
|
@@ -177,6 +197,7 @@ class MOIP_Transparente_Model_Method_BoletoRecurring extends Mage_Payment_Model_
|
|
| 177 |
$transaction->setOrderPaymentObject($payment);
|
| 178 |
$transaction->setIsClosed(1);
|
| 179 |
$transaction->save();
|
|
|
|
| 180 |
}
|
| 181 |
|
| 182 |
$this->chargeRecurringProfile($profile, $moip_code);
|
|
@@ -275,11 +296,10 @@ class MOIP_Transparente_Model_Method_BoletoRecurring extends Mage_Payment_Model_
|
|
| 275 |
$productItemInfo->setPrice( $profile->getTaxAmount() + $profile->getBillingAmount() );
|
| 276 |
|
| 277 |
$order = $profile->createOrder($productItemInfo);
|
| 278 |
-
$order->setState(Mage_Sales_Model_Order::STATE_NEW);
|
| 279 |
-
|
| 280 |
$payment = $order->getPayment();
|
| 281 |
$payment->setTransactionId($trans_id)->setIsTransactionClosed(1);
|
| 282 |
-
|
| 283 |
$profile->addOrderRelation($order->getId());
|
| 284 |
$payment->save();
|
| 285 |
|
| 5 |
protected $_code = 'moip_boletorecurring';
|
| 6 |
protected $_formBlockType = 'transparente/form_boleto';
|
| 7 |
protected $_infoBlockType = 'transparente/info_boletorecurring';
|
| 8 |
+
protected $_isGateway = true;
|
| 9 |
+
protected $_canOrder = true;
|
| 10 |
+
protected $_canAuthorize = true;
|
| 11 |
+
protected $_canCapture = true;
|
| 12 |
+
protected $_canCapturePartial = true;
|
| 13 |
+
protected $_canRefund = true;
|
| 14 |
+
protected $_canRefundInvoicePartial = true;
|
| 15 |
+
protected $_canVoid = true;
|
| 16 |
protected $_canUseInternal = false;
|
| 17 |
protected $_canUseCheckout = true;
|
| 18 |
protected $_canUseForMultishipping = false;
|
| 19 |
protected $_canFetchTransactionInfo = true;
|
| 20 |
protected $_canCreateBillingAgreement = false;
|
| 21 |
+
protected $_allowCurrencyCode = array('BRL');
|
| 22 |
protected $_canReviewPayment = true;
|
| 23 |
|
| 24 |
+
public function assignData($data)
|
| 25 |
+
{
|
| 26 |
+
if (!($data instanceof Varien_Object)) {
|
| 27 |
+
$data = new Varien_Object($data);
|
| 28 |
+
}
|
| 29 |
+
return $this;
|
| 30 |
+
}
|
| 31 |
public function getPayment()
|
| 32 |
{
|
| 33 |
return $this->getQuote()->getPayment();
|
| 45 |
return $this->getCheckout()->getQuote();
|
| 46 |
}
|
| 47 |
|
| 48 |
+
public function prepareSave()
|
| 49 |
+
{
|
| 50 |
+
$info = $this->getInfoInstance();
|
| 51 |
+
return $this;
|
| 52 |
+
}
|
| 53 |
+
public function prepare()
|
| 54 |
+
{
|
| 55 |
+
$info = $this->getInfoInstance();
|
| 56 |
+
$additionaldata = unserialize($info->getAdditionalData());
|
| 57 |
+
$session = Mage::getSingleton('checkout/session');
|
| 58 |
+
$session->setMoipData($additionaldata);
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
public function validate()
|
| 62 |
{
|
| 63 |
|
| 197 |
$transaction->setOrderPaymentObject($payment);
|
| 198 |
$transaction->setIsClosed(1);
|
| 199 |
$transaction->save();
|
| 200 |
+
$order->setState(Mage_Sales_Model_Order::STATE_NEW, true)->save();
|
| 201 |
}
|
| 202 |
|
| 203 |
$this->chargeRecurringProfile($profile, $moip_code);
|
| 296 |
$productItemInfo->setPrice( $profile->getTaxAmount() + $profile->getBillingAmount() );
|
| 297 |
|
| 298 |
$order = $profile->createOrder($productItemInfo);
|
| 299 |
+
$order->setState(Mage_Sales_Model_Order::STATE_NEW, true)->save();
|
|
|
|
| 300 |
$payment = $order->getPayment();
|
| 301 |
$payment->setTransactionId($trans_id)->setIsTransactionClosed(1);
|
| 302 |
+
|
| 303 |
$profile->addOrderRelation($order->getId());
|
| 304 |
$payment->save();
|
| 305 |
|
app/code/local/MOIP/Transparente/Model/Method/Cc.php
CHANGED
|
@@ -103,7 +103,7 @@ class MOIP_Transparente_Model_Method_Cc extends Mage_Payment_Model_Method_Abstra
|
|
| 103 |
'HP' => '/^([0-9])$/'
|
| 104 |
);
|
| 105 |
$specifiedCCType = $info->getCcType();
|
| 106 |
-
if ($specifiedCCType == 'VI' || $specifiedCCType == "MC" ||
|
| 107 |
$errorMsg = "";
|
| 108 |
} else {
|
| 109 |
if ($specifiedCCType)
|
|
@@ -259,7 +259,7 @@ class MOIP_Transparente_Model_Method_Cc extends Mage_Payment_Model_Method_Abstra
|
|
| 259 |
'_secure' => true
|
| 260 |
));
|
| 261 |
} else {
|
| 262 |
-
return Mage::getUrl('
|
| 263 |
'_secure' => true
|
| 264 |
));
|
| 265 |
}
|
| 103 |
'HP' => '/^([0-9])$/'
|
| 104 |
);
|
| 105 |
$specifiedCCType = $info->getCcType();
|
| 106 |
+
if ($specifiedCCType == 'VI' || $specifiedCCType == "MC" || $specifiedCCType == "AE" || $specifiedCCType == "DC") {
|
| 107 |
$errorMsg = "";
|
| 108 |
} else {
|
| 109 |
if ($specifiedCCType)
|
| 259 |
'_secure' => true
|
| 260 |
));
|
| 261 |
} else {
|
| 262 |
+
return Mage::getUrl('checkout/onepage/success', array(
|
| 263 |
'_secure' => true
|
| 264 |
));
|
| 265 |
}
|
app/code/local/MOIP/Transparente/Model/Method/CcRecurring.php
CHANGED
|
@@ -206,6 +206,7 @@ class MOIP_Transparente_Model_Method_CcRecurring extends Mage_Payment_Model_Meth
|
|
| 206 |
$transaction->setOrderPaymentObject($payment);
|
| 207 |
$transaction->setIsClosed(1);
|
| 208 |
$transaction->save();
|
|
|
|
| 209 |
}
|
| 210 |
|
| 211 |
$this->chargeRecurringProfile($profile, $moip_code);
|
|
@@ -304,7 +305,7 @@ class MOIP_Transparente_Model_Method_CcRecurring extends Mage_Payment_Model_Meth
|
|
| 304 |
$productItemInfo->setPrice( $profile->getTaxAmount() + $profile->getBillingAmount() + $profile->getShippingAmount() );
|
| 305 |
|
| 306 |
$order = $profile->createOrder($productItemInfo);
|
| 307 |
-
$order->setState(Mage_Sales_Model_Order::STATE_NEW);
|
| 308 |
|
| 309 |
$payment = $order->getPayment();
|
| 310 |
$payment->setTransactionId($trans_id)->setIsTransactionClosed(1);
|
| 206 |
$transaction->setOrderPaymentObject($payment);
|
| 207 |
$transaction->setIsClosed(1);
|
| 208 |
$transaction->save();
|
| 209 |
+
$order->setState(Mage_Sales_Model_Order::STATE_NEW, true)->save();
|
| 210 |
}
|
| 211 |
|
| 212 |
$this->chargeRecurringProfile($profile, $moip_code);
|
| 305 |
$productItemInfo->setPrice( $profile->getTaxAmount() + $profile->getBillingAmount() + $profile->getShippingAmount() );
|
| 306 |
|
| 307 |
$order = $profile->createOrder($productItemInfo);
|
| 308 |
+
$order->setState(Mage_Sales_Model_Order::STATE_NEW, true)->save();
|
| 309 |
|
| 310 |
$payment = $order->getPayment();
|
| 311 |
$payment->setTransactionId($trans_id)->setIsTransactionClosed(1);
|
app/code/local/MOIP/Transparente/Model/Method/Tef.php
CHANGED
|
@@ -96,7 +96,7 @@ class MOIP_Transparente_Model_Method_Tef extends Mage_Payment_Model_Method_Abstr
|
|
| 96 |
'_secure' => true
|
| 97 |
));
|
| 98 |
} else {
|
| 99 |
-
return Mage::getUrl('
|
| 100 |
'_secure' => true
|
| 101 |
));
|
| 102 |
}
|
| 96 |
'_secure' => true
|
| 97 |
));
|
| 98 |
} else {
|
| 99 |
+
return Mage::getUrl('checkout/onepage/success', array(
|
| 100 |
'_secure' => true
|
| 101 |
));
|
| 102 |
}
|
app/code/local/MOIP/Transparente/Model/Observer.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
class Moip_Transparente_Model_Observer
|
| 3 |
{
|
| 4 |
|
| 5 |
-
public function
|
| 6 |
$standard = $this->getStandard();
|
| 7 |
$api = $this->getApi();
|
| 8 |
$model = Mage::getModel('transparente/write');
|
|
@@ -279,7 +279,18 @@ class Moip_Transparente_Model_Observer
|
|
| 279 |
|
| 280 |
|
| 281 |
}
|
| 282 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 283 |
public function getApi()
|
| 284 |
{
|
| 285 |
$api = Mage::getModel('transparente/api');
|
| 2 |
class Moip_Transparente_Model_Observer
|
| 3 |
{
|
| 4 |
|
| 5 |
+
public function setStateAll($order){
|
| 6 |
$standard = $this->getStandard();
|
| 7 |
$api = $this->getApi();
|
| 8 |
$model = Mage::getModel('transparente/write');
|
| 279 |
|
| 280 |
|
| 281 |
}
|
| 282 |
+
public function addMassAction($observer)
|
| 283 |
+
{
|
| 284 |
+
$block = $observer->getEvent()->getBlock();
|
| 285 |
+
if(get_class($block) =='Mage_Adminhtml_Block_Widget_Grid_Massaction'
|
| 286 |
+
&& $block->getRequest()->getControllerName() == 'sales_order')
|
| 287 |
+
{
|
| 288 |
+
$block->addItem('transparente', array(
|
| 289 |
+
'label' => 'Consultar status no Moip',
|
| 290 |
+
'url' => Mage::helper('adminhtml')->getUrl('adminhtml/adminhtml_statusmoip/setstate'),
|
| 291 |
+
));
|
| 292 |
+
}
|
| 293 |
+
}
|
| 294 |
public function getApi()
|
| 295 |
{
|
| 296 |
$api = Mage::getModel('transparente/api');
|
app/code/local/MOIP/Transparente/Model/Sales/Quote/Address/Total/Fee.php
CHANGED
|
@@ -3,7 +3,7 @@ class MOIP_Transparente_Model_Sales_Quote_Address_Total_Fee extends Mage_Sales_M
|
|
| 3 |
protected $_code = 'fee';
|
| 4 |
|
| 5 |
|
| 6 |
-
|
| 7 |
{
|
| 8 |
$amt = $address->getFeeAmount();
|
| 9 |
if($amt){
|
| 3 |
protected $_code = 'fee';
|
| 4 |
|
| 5 |
|
| 6 |
+
public function fetch(Mage_Sales_Model_Quote_Address $address)
|
| 7 |
{
|
| 8 |
$amt = $address->getFeeAmount();
|
| 9 |
if($amt){
|
app/code/local/MOIP/Transparente/Model/Source/Ambiente.php
CHANGED
|
@@ -5,7 +5,7 @@ class MOIP_Transparente_Model_Source_Ambiente {
|
|
| 5 |
public function toOptionArray() {
|
| 6 |
|
| 7 |
return
|
| 8 |
-
array('producao' => 'Produção','teste' => 'Teste');
|
| 9 |
|
| 10 |
}
|
| 11 |
|
| 5 |
public function toOptionArray() {
|
| 6 |
|
| 7 |
return
|
| 8 |
+
array('producao' => 'Produção','teste' => 'Teste - Sandbox');
|
| 9 |
|
| 10 |
}
|
| 11 |
|
app/code/local/MOIP/Transparente/Model/Standard.php
CHANGED
|
@@ -34,7 +34,7 @@ class MOIP_Transparente_Model_Standard extends Mage_Payment_Model_Method_Abstrac
|
|
| 34 |
$decode = json_decode($IdMoip, true);
|
| 35 |
$link_boleto = $decode['_links']['checkout']['payBoleto']['redirectHref'];
|
| 36 |
$link_cc = $decode['_links']['checkout']['payCreditCard']['redirectHref'];
|
| 37 |
-
|
| 38 |
$additionaldata = array(
|
| 39 |
'link_boleto' => $link_boleto,
|
| 40 |
'link_cc' => $link_cc
|
| 34 |
$decode = json_decode($IdMoip, true);
|
| 35 |
$link_boleto = $decode['_links']['checkout']['payBoleto']['redirectHref'];
|
| 36 |
$link_cc = $decode['_links']['checkout']['payCreditCard']['redirectHref'];
|
| 37 |
+
$info = $this->getInfoInstance();
|
| 38 |
$additionaldata = array(
|
| 39 |
'link_boleto' => $link_boleto,
|
| 40 |
'link_cc' => $link_cc
|
app/code/local/MOIP/Transparente/controllers/Adminhtml/StatusmoipController.php
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class MOIP_Transparente_Adminhtml_StatusmoipController extends Mage_Adminhtml_Controller_Action {
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
protected function _isAllowed()
|
| 6 |
+
{
|
| 7 |
+
$action = strtolower($this->getRequest()->getActionName());
|
| 8 |
+
$aclResource = 'sales/order/actions/setstate';
|
| 9 |
+
return Mage::getSingleton('admin/session')->isAllowed($aclResource);
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
public function setstateAction()
|
| 13 |
+
{
|
| 14 |
+
$orderIds = $this->getRequest()->getPost('order_ids', array());
|
| 15 |
+
$countCancelOrder = 0;
|
| 16 |
+
$countNonCancelOrder = 0;
|
| 17 |
+
foreach ($orderIds as $orderId) {
|
| 18 |
+
$order = Mage::getModel('sales/order')->load($orderId);
|
| 19 |
+
$method = $order->getPayment()->getMethodInstance()->getCode();
|
| 20 |
+
if ($method == "moip_cc" || $method == "moip_boleto" || $method == "moip_tef" ) {
|
| 21 |
+
$this->getStateInMoip($order);
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
$this->_redirect('adminhtml/sales_order/index/');
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
public function getStateInMoip($order){
|
| 28 |
+
|
| 29 |
+
$state = $order->getState();
|
| 30 |
+
$order_id = $order->getIncrementId();
|
| 31 |
+
$order_real_id = $order->getId();
|
| 32 |
+
$method = $order->getPayment()->getMethodInstance()->getCode();
|
| 33 |
+
if($method == "moip_boleto"){
|
| 34 |
+
$onhold = $this->getStandard()->getConfigData('order_status_holded_boleto');
|
| 35 |
+
} elseif ($method == "moip_cc"){
|
| 36 |
+
$onhold = $this->getStandard()->getConfigData('order_status_holded');
|
| 37 |
+
} elseif($method == "moip_tef"){
|
| 38 |
+
$onhold = $this->getStandard()->getConfigData('order_status_holded_tef');
|
| 39 |
+
} else {
|
| 40 |
+
$onhold = $this->getStandard()->getConfigData('order_status_holded');
|
| 41 |
+
}
|
| 42 |
+
$standard = $this->getStandard();
|
| 43 |
+
$model = Mage::getModel('transparente/write');
|
| 44 |
+
$result = $model->load($order->getId(), 'mage_pay');
|
| 45 |
+
|
| 46 |
+
$moip_pay = $result->getMoipPay();
|
| 47 |
+
|
| 48 |
+
if($moip_pay){
|
| 49 |
+
if (Mage::getSingleton('transparente/standard')->getConfigData('ambiente') == "teste") {
|
| 50 |
+
$url = "https://sandbox.moip.com.br/v2/payments/{$moip_pay}";
|
| 51 |
+
$oauth = trim(Mage::getSingleton('transparente/standard')->getConfigData('oauth_dev'));
|
| 52 |
+
$header = "Authorization: OAuth {$oauth}";
|
| 53 |
+
} else {
|
| 54 |
+
$url = "https://api.moip.com.br/v2/payments/{$moip_pay}";
|
| 55 |
+
$oauth = Mage::getSingleton('transparente/standard')->getConfigData('oauth_prod') ;
|
| 56 |
+
$header = "Authorization: OAuth {$oauth}";
|
| 57 |
+
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
$result = array();
|
| 61 |
+
$ch = curl_init();
|
| 62 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
| 63 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
| 64 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
|
| 65 |
+
$header
|
| 66 |
+
));
|
| 67 |
+
curl_setopt($ch, CURLOPT_USERAGENT, 'MoipMagento/2.0.0');
|
| 68 |
+
$responseBody = curl_exec($ch);
|
| 69 |
+
$info_curl = curl_getinfo($ch);
|
| 70 |
+
curl_close($ch);
|
| 71 |
+
$response_decode = json_decode($responseBody, true);
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
if($response_decode['status'] == "AUTHORIZED"){
|
| 75 |
+
if($state == Mage_Sales_Model_Order::STATE_NEW){
|
| 76 |
+
$this->_getSession()->addSuccess($this->__('O status do pedido %s será atualizado para autorizado.', $order_id));
|
| 77 |
+
$change_status = 1;
|
| 78 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_HOLDED){
|
| 79 |
+
$this->_getSession()->addSuccess($this->__('O status do pedido %s será atualizado para autorizado.', $order_id));
|
| 80 |
+
$change_status = 1;
|
| 81 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_PROCESSING){
|
| 82 |
+
$this->_getSession()->addNotice($this->__('O status do pedido %s já está atualizado.', $order_id));
|
| 83 |
+
$change_status = 0;
|
| 84 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_COMPLETE){
|
| 85 |
+
$this->_getSession()->addNotice($this->__('O status do pedido %s já está atualizado.', $order_id));
|
| 86 |
+
$change_status = 0;
|
| 87 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_CLOSED){
|
| 88 |
+
$this->_getSession()->addNotice($this->__('O status do pedido %s já está atualizado.', $order_id));
|
| 89 |
+
$change_status = 0;
|
| 90 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_CANCELED) {
|
| 91 |
+
$this->_getSession()->addError($this->__('O pedido %s se encontra como cancelado em sua loja, no entanto ela está aprovada do moip, será necessário realizar ação manual de reorder.', $order_id));
|
| 92 |
+
$change_status = 0;
|
| 93 |
+
}
|
| 94 |
+
else {
|
| 95 |
+
$this->_getSession()->addError($this->__('O status do pedido %s não está correto, verificar manualmente junto ao seu painel Moip.', $order_id));
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
if($change_status == 1){
|
| 99 |
+
$upOrder = $this->autorizaPagamento($order);
|
| 100 |
+
}
|
| 101 |
+
} elseif ($response_decode['status'] == "CANCELLED") {
|
| 102 |
+
|
| 103 |
+
if($state == Mage_Sales_Model_Order::STATE_NEW){
|
| 104 |
+
$this->_getSession()->addSuccess($this->__('O status do pedido %s será atualizado para cancelado.', $order_id));
|
| 105 |
+
$change_status = 1;
|
| 106 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_HOLDED){
|
| 107 |
+
$this->_getSession()->addSuccess($this->__('O status do pedido %s será atualizado para cancelado.', $order_id));
|
| 108 |
+
$change_status = 1;
|
| 109 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_PROCESSING){
|
| 110 |
+
$this->_getSession()->addError($this->__('O status do pedido %s em sua loja consta como PAGO, no entanto no Moip ainda se encontra CANCELADA', $order_id));
|
| 111 |
+
$change_status =0;
|
| 112 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_COMPLETE){
|
| 113 |
+
$this->_getSession()->addError($this->__('O status do pedido %s em sua loja consta como PAGO, no entanto no Moip ainda se encontra CANCELADA', $order_id));
|
| 114 |
+
$change_status =0;
|
| 115 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_CLOSED){
|
| 116 |
+
$this->_getSession()->addError($this->__('O status do pedido %s em sua loja consta como PAGO, no entanto no Moip ainda se encontra CANCELADA', $order_id));
|
| 117 |
+
$change_status =0;
|
| 118 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_CANCELED) {
|
| 119 |
+
$this->_getSession()->addNotice($this->__('O status do pedido %s já está atualizado.', $order_id));
|
| 120 |
+
$change_status =0;
|
| 121 |
+
} else {
|
| 122 |
+
$this->_getSession()->addError($this->__('O status não está correto, verificar manualmente junto ao seu painel Moip.', $order_id));
|
| 123 |
+
}
|
| 124 |
+
if($change_status == 1){
|
| 125 |
+
$upOrder = $this->cancelaPagamento($order);
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
} elseif ($response_decode['status'] == 'WAITING') {
|
| 129 |
+
|
| 130 |
+
if($state == Mage_Sales_Model_Order::STATE_NEW){
|
| 131 |
+
$this->_getSession()->addSuccess($this->__('O status do pedido %s será atualizado para em espera.', $order_id));
|
| 132 |
+
$change_status =1;
|
| 133 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_HOLDED){
|
| 134 |
+
$this->_getSession()->addNotice($this->__('O status do pedido %s já está atualizado.', $order_id));
|
| 135 |
+
$change_status =0;
|
| 136 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_PROCESSING){
|
| 137 |
+
$this->_getSession()->addError($this->__('O status do pedido %s em sua loja consta já como PAGO, no entanto no Moip ainda se encontra EM ESPERA', $order_id));
|
| 138 |
+
$change_status =0;
|
| 139 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_COMPLETE){
|
| 140 |
+
$this->_getSession()->addError($this->__('O status do pedido %s em sua loja consta já como PAGO, no entanto no Moip ainda se encontra EM ESPERA', $order_id));
|
| 141 |
+
$change_status =0;
|
| 142 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_CLOSED){
|
| 143 |
+
$this->_getSession()->addError($this->__('O status do pedido %s em sua loja consta já como PAGO, no entanto no Moip ainda se encontra EM ESPERA', $order_id));
|
| 144 |
+
$change_status =0;
|
| 145 |
+
} elseif($state == Mage_Sales_Model_Order::STATE_CANCELED) {
|
| 146 |
+
$this->_getSession()->addError($this->__('O status do pedido %s em sua loja consta já como CANCELADO, no entanto no Moip ainda se encontra EM ESPERA', $order_id));
|
| 147 |
+
$change_status =0;
|
| 148 |
+
} else {
|
| 149 |
+
$this->_getSession()->addError($this->__('O status não está correto, verificar manualmente junto ao seu painel Moip.', $order_id));
|
| 150 |
+
}
|
| 151 |
+
if($change_status == 1){
|
| 152 |
+
$upOrder = $this->iniciaPagamento($order);
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
} else {
|
| 156 |
+
$this->_getSession()->addError($this->__('Error não foi possível analisar o retorno desse pedido %s, por favor acompanhe manualmente essa transação.', $order_id));
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
} else {
|
| 160 |
+
$this->_getSession()->addError($this->__('Error não foi possível analisar o retorno desse pedido %s, por favor acompanhe manualmente essa transação.', $order_id));
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
}
|
| 167 |
+
public function autorizaPagamento($order){
|
| 168 |
+
if($order->canUnhold()) {
|
| 169 |
+
$order->unhold()->save();
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
$invoice = $order->prepareInvoice();
|
| 173 |
+
if ($this->getStandard()->canCapture())
|
| 174 |
+
{
|
| 175 |
+
$invoice->register()->capture();
|
| 176 |
+
}
|
| 177 |
+
Mage::getModel('core/resource_transaction')->addObject($invoice)->addObject($invoice->getOrder())->save();
|
| 178 |
+
$invoice->sendEmail();
|
| 179 |
+
$invoice->setEmailSent(true);
|
| 180 |
+
$invoice->save();
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
public function iniciaPagamento($order, $onhold){
|
| 184 |
+
|
| 185 |
+
$state = Mage_Sales_Model_Order::STATE_HOLDED;
|
| 186 |
+
$status = $onhold;
|
| 187 |
+
$comment = "Pagamento Iniciado, aguardando confirmação automática.";
|
| 188 |
+
$update = $this->updateInOrder($order, $state, $status, $comment);
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
public function cancelaPagamento($order){
|
| 192 |
+
|
| 193 |
+
if($order->canUnhold()) {
|
| 194 |
+
$order->unhold()->save();
|
| 195 |
+
}
|
| 196 |
+
$order->cancel()->save();
|
| 197 |
+
$state = Mage_Sales_Model_Order::STATE_CANCELED;
|
| 198 |
+
$link = Mage::getUrl('sales/order/reorder/');
|
| 199 |
+
$link = $link.'order_id/'.$order->getEntityId();
|
| 200 |
+
$comment = "Para refazer o pagamento acesse o link: ".$link;
|
| 201 |
+
$status = 'canceled';
|
| 202 |
+
$order->setState($state, $status, $comment, $notified = true, $includeComment = true);
|
| 203 |
+
$order->save();
|
| 204 |
+
$order->sendOrderUpdateEmail(true, $comment);
|
| 205 |
+
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
public function updateInOrder($order, $state, $status, $comment){
|
| 209 |
+
$order->setState($state, $status, $comment, $notified = true, $includeComment = true);
|
| 210 |
+
$order->save();
|
| 211 |
+
$order->sendOrderUpdateEmail(true, $comment);
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
public function getApi()
|
| 215 |
+
{
|
| 216 |
+
return Mage::getModel('transparente/api');
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
public function getStandard() {
|
| 220 |
+
return Mage::getSingleton('transparente/standard');
|
| 221 |
+
}
|
| 222 |
+
}
|
app/code/local/MOIP/Transparente/controllers/RecurringController.php
CHANGED
|
@@ -12,6 +12,8 @@ class MOIP_Transparente_RecurringController extends Mage_Core_Controller_Front_A
|
|
| 12 |
public function NewTranscitionAction()
|
| 13 |
{
|
| 14 |
|
|
|
|
|
|
|
| 15 |
$api = $this->getApiMoip();
|
| 16 |
$chave1 = Mage::getStoreConfig('payment/moip_transparente_standard/validador_retorno');
|
| 17 |
|
|
@@ -19,8 +21,8 @@ class MOIP_Transparente_RecurringController extends Mage_Core_Controller_Front_A
|
|
| 19 |
$json_moip = $this->getRequest()->getRawBody();
|
| 20 |
$decode = json_decode($json_moip, false);
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
|
| 25 |
if($data['validacao'] == $chave1){
|
| 26 |
$order_event = $decode->event;
|
|
@@ -232,9 +234,9 @@ class MOIP_Transparente_RecurringController extends Mage_Core_Controller_Front_A
|
|
| 232 |
try {
|
| 233 |
|
| 234 |
|
| 235 |
-
|
| 236 |
$state = Mage_Sales_Model_Order::STATE_PROCESSING;
|
| 237 |
-
$status =
|
| 238 |
$comment = "Pagamento Autorizado";
|
| 239 |
$order->setState($state, $status, $comment, $notified = true, $includeComment = true);
|
| 240 |
$order->save();
|
|
@@ -245,7 +247,7 @@ class MOIP_Transparente_RecurringController extends Mage_Core_Controller_Front_A
|
|
| 245 |
$invoice->setEmailSent(true);
|
| 246 |
$invoice->save();
|
| 247 |
|
| 248 |
-
|
| 249 |
}
|
| 250 |
catch (Exception $order) {
|
| 251 |
|
| 12 |
public function NewTranscitionAction()
|
| 13 |
{
|
| 14 |
|
| 15 |
+
|
| 16 |
+
|
| 17 |
$api = $this->getApiMoip();
|
| 18 |
$chave1 = Mage::getStoreConfig('payment/moip_transparente_standard/validador_retorno');
|
| 19 |
|
| 21 |
$json_moip = $this->getRequest()->getRawBody();
|
| 22 |
$decode = json_decode($json_moip, false);
|
| 23 |
|
| 24 |
+
|
| 25 |
+
$api->generateLog($json_moip, 'MOIP_Webhooks.log');
|
| 26 |
|
| 27 |
if($data['validacao'] == $chave1){
|
| 28 |
$order_event = $decode->event;
|
| 234 |
try {
|
| 235 |
|
| 236 |
|
| 237 |
+
|
| 238 |
$state = Mage_Sales_Model_Order::STATE_PROCESSING;
|
| 239 |
+
$status = "processing";
|
| 240 |
$comment = "Pagamento Autorizado";
|
| 241 |
$order->setState($state, $status, $comment, $notified = true, $includeComment = true);
|
| 242 |
$order->save();
|
| 247 |
$invoice->setEmailSent(true);
|
| 248 |
$invoice->save();
|
| 249 |
|
| 250 |
+
echo "Processada";
|
| 251 |
}
|
| 252 |
catch (Exception $order) {
|
| 253 |
|
app/code/local/MOIP/Transparente/controllers/StandardController.php
CHANGED
|
@@ -302,7 +302,7 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
| 302 |
|
| 303 |
|
| 304 |
public function autorizaPagamento($order, $paid){
|
| 305 |
-
sleep(
|
| 306 |
|
| 307 |
|
| 308 |
if($order->canUnhold()) {
|
|
@@ -334,7 +334,7 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
| 334 |
}
|
| 335 |
|
| 336 |
public function cancelaPagamento($order, $details){
|
| 337 |
-
sleep(
|
| 338 |
if($order->canUnhold()) {
|
| 339 |
$order->unhold()->save();
|
| 340 |
}
|
|
@@ -418,65 +418,28 @@ class MOIP_Transparente_StandardController extends Mage_Core_Controller_Front_Ac
|
|
| 418 |
}
|
| 419 |
|
| 420 |
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
public function post_correio($url, $get) {
|
| 427 |
-
$url = explode('?', $url, 2);
|
| 428 |
-
$ch = curl_init($url[0]."?".http_build_query($get));
|
| 429 |
-
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
|
| 430 |
-
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
| 431 |
-
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
| 432 |
-
return curl_exec($ch);
|
| 433 |
-
}
|
| 434 |
-
|
| 435 |
public function buscaCepAction() {
|
| 436 |
$data = $this->getRequest()->getParams();
|
| 437 |
-
if ($data['meio'] == "buscaend") {
|
| 438 |
-
$rua = $data['logradouro'];
|
| 439 |
-
$vSomeSpecialChars = array("á", "á","é","é", "í","í", "ó", "ú", "Á","À","É","È", "Í", "Ì","Ó", "Ú", "ç", "Ç", "ã", "Ã", "õ", "Õ");
|
| 440 |
-
$vReplacementChars = array("a", "a", "e","e", "i","i", "o", "u", "A", "A","E","E", "I", "I","O", "U", "c", "C", "a", "A", "o", "O");
|
| 441 |
-
$rua = str_replace($vSomeSpecialChars, $vReplacementChars, $rua);
|
| 442 |
-
$rua = trim($rua);
|
| 443 |
-
$uf = $data['busca_uf'];
|
| 444 |
-
$url_end = "http://endereco.ecorreios.com.br/app/enderecoCep.php";
|
| 445 |
-
$get = array(
|
| 446 |
-
'cep' => '0',
|
| 447 |
-
'busca_end' =>$rua,
|
| 448 |
-
'busca_uf' =>$uf,
|
| 449 |
-
);
|
| 450 |
-
$config = array('adapter' => 'Zend_Http_Client_Adapter_Socket');
|
| 451 |
-
$resposta = $this->post_correio($url_end, $get);
|
| 452 |
-
$this->getResponse()->setBody($resposta);
|
| 453 |
-
}
|
| 454 |
|
| 455 |
if ($data['meio'] == "cep") {
|
| 456 |
-
|
| 457 |
-
$url = explode('?', $url, 2);
|
| 458 |
-
if (count($url)===2) {
|
| 459 |
-
$temp_get = array();
|
| 460 |
-
parse_str($url[1], $temp_get);
|
| 461 |
-
$get = array_merge($get, $temp_get);
|
| 462 |
-
}
|
| 463 |
-
$ch = curl_init($url[0]."?".http_build_query($get));
|
| 464 |
-
curl_setopt($ch, CURLOPT_POST, 1);
|
| 465 |
-
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
|
| 466 |
-
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
| 467 |
-
return curl_exec($ch);
|
| 468 |
-
}
|
| 469 |
$cep = $data['cep'];
|
| 470 |
$cep = substr(preg_replace("/[^0-9]/", "", $cep) . '00000000', 0, 8);
|
| 471 |
-
$
|
| 472 |
-
$config = array('adapter' => 'Zend_Http_Client_Adapter_Socket');
|
| 473 |
-
$client = new Zend_Http_Client($url_end, $config);
|
| 474 |
-
$response = $client->request();
|
| 475 |
|
| 476 |
-
|
| 477 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 478 |
|
| 479 |
-
$endereco = Mage::helper('core')->jsonDecode($
|
| 480 |
|
| 481 |
/*
|
| 482 |
//Remover comentário para usar a versão em que o distrito federal está fora da ordem alfabética. Nesse caso lembre-se que precisa remover o switch de baixo.
|
| 302 |
|
| 303 |
|
| 304 |
public function autorizaPagamento($order, $paid){
|
| 305 |
+
sleep(5);
|
| 306 |
|
| 307 |
|
| 308 |
if($order->canUnhold()) {
|
| 334 |
}
|
| 335 |
|
| 336 |
public function cancelaPagamento($order, $details){
|
| 337 |
+
sleep(5);
|
| 338 |
if($order->canUnhold()) {
|
| 339 |
$order->unhold()->save();
|
| 340 |
}
|
| 418 |
}
|
| 419 |
|
| 420 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 421 |
public function buscaCepAction() {
|
| 422 |
$data = $this->getRequest()->getParams();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 423 |
|
| 424 |
if ($data['meio'] == "cep") {
|
| 425 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 426 |
$cep = $data['cep'];
|
| 427 |
$cep = substr(preg_replace("/[^0-9]/", "", $cep) . '00000000', 0, 8);
|
| 428 |
+
$url = "http://endereco.ecorreios.com.br/app/enderecoCep.php?cep={$cep}";
|
|
|
|
|
|
|
|
|
|
| 429 |
|
| 430 |
+
$result = array();
|
| 431 |
+
$ch = curl_init();
|
| 432 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
| 433 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
| 434 |
+
curl_setopt($ch,CURLOPT_USERAGENT,'MoipMagento/2.0.0');
|
| 435 |
+
$responseBody = curl_exec($ch);
|
| 436 |
+
curl_close($ch);
|
| 437 |
+
|
| 438 |
+
|
| 439 |
+
if($responseBody){
|
| 440 |
+
|
| 441 |
|
| 442 |
+
$endereco = Mage::helper('core')->jsonDecode($responseBody);
|
| 443 |
|
| 444 |
/*
|
| 445 |
//Remover comentário para usar a versão em que o distrito federal está fora da ordem alfabética. Nesse caso lembre-se que precisa remover o switch de baixo.
|
app/code/local/MOIP/Transparente/etc/adminhtml.xml
CHANGED
|
@@ -3,18 +3,24 @@
|
|
| 3 |
<acl>
|
| 4 |
<resources>
|
| 5 |
<admin>
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
<children>
|
| 11 |
-
<
|
| 12 |
-
<title>
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
</children>
|
| 19 |
</admin>
|
| 20 |
</resources>
|
| 3 |
<acl>
|
| 4 |
<resources>
|
| 5 |
<admin>
|
| 6 |
+
<children>
|
| 7 |
+
<sales translate="title" module="sales">
|
| 8 |
+
<title>Sales</title>
|
| 9 |
+
<children>
|
| 10 |
+
<order translate="title">
|
| 11 |
+
<title>Orders</title>
|
| 12 |
<children>
|
| 13 |
+
<actions translate="title">
|
| 14 |
+
<title>Actions</title>
|
| 15 |
+
<children>
|
| 16 |
+
<setstate translate="title"><title>Consultar Status no Moip</title></setstate>
|
| 17 |
+
</children>
|
| 18 |
+
</actions>
|
| 19 |
+
</children>
|
| 20 |
+
<sort_order>100</sort_order>
|
| 21 |
+
</order>
|
| 22 |
+
</children>
|
| 23 |
+
</sales>
|
| 24 |
</children>
|
| 25 |
</admin>
|
| 26 |
</resources>
|
app/code/local/MOIP/Transparente/etc/config.xml
CHANGED
|
@@ -59,6 +59,11 @@
|
|
| 59 |
<order_totals>MOIP_Transparente_Block_Sales_Order_Fee</order_totals>
|
| 60 |
</rewrite>
|
| 61 |
</sales>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
</blocks>
|
| 63 |
<helpers>
|
| 64 |
<transparente>
|
|
@@ -101,15 +106,7 @@
|
|
| 101 |
</transparente>
|
| 102 |
</observers>
|
| 103 |
</catalog_product_save_after>
|
| 104 |
-
|
| 105 |
-
<observers>
|
| 106 |
-
<recorrente>
|
| 107 |
-
<type>singleton</type>
|
| 108 |
-
<class>transparente/observer</class>
|
| 109 |
-
<method>sales_order_place_before_success</method>
|
| 110 |
-
</recorrente>
|
| 111 |
-
</observers>
|
| 112 |
-
</checkout_submit_all_after>
|
| 113 |
</events>
|
| 114 |
</global>
|
| 115 |
<frontend>
|
|
@@ -143,14 +140,14 @@
|
|
| 143 |
</layout>
|
| 144 |
</frontend>
|
| 145 |
<admin>
|
| 146 |
-
|
| 147 |
-
<
|
| 148 |
-
<transparente after="Mage_Adminhtml">Transparente_Adminhtml</transparente>
|
| 149 |
<args>
|
| 150 |
-
<
|
| 151 |
-
|
|
|
|
| 152 |
</args>
|
| 153 |
-
</
|
| 154 |
</routers>
|
| 155 |
</admin>
|
| 156 |
<adminhtml>
|
|
@@ -170,6 +167,16 @@
|
|
| 170 |
</transparente>
|
| 171 |
</updates>
|
| 172 |
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
</adminhtml>
|
| 174 |
<crontab>
|
| 175 |
<jobs>
|
|
@@ -227,7 +234,7 @@
|
|
| 227 |
<validopara_transparente>1</validopara_transparente>
|
| 228 |
<apelido>ALTERE PARA O NOME DA SUA EMPRESA</apelido>
|
| 229 |
<notificar_cliente>1</notificar_cliente>
|
| 230 |
-
<ambiente>
|
| 231 |
<allowspecific>0</allowspecific>
|
| 232 |
<min_order_total>5</min_order_total>
|
| 233 |
</moip_transparente_standard>
|
|
@@ -261,7 +268,7 @@
|
|
| 261 |
<min_order_total>5</min_order_total>
|
| 262 |
</moip_cc>
|
| 263 |
<moip_tef>
|
| 264 |
-
<active>
|
| 265 |
<vcmentotef>3</vcmentotef>
|
| 266 |
<model>MOIP_Transparente_Model_Method_Tef</model>
|
| 267 |
<title>Débito em Conta</title>
|
|
@@ -271,6 +278,7 @@
|
|
| 271 |
|
| 272 |
|
| 273 |
<moip_ccrecurring>
|
|
|
|
| 274 |
<model>MOIP_Transparente_Model_Method_CcRecurring</model>
|
| 275 |
<title>Cartão de Crédito Recorrente</title>
|
| 276 |
</moip_ccrecurring>
|
| 59 |
<order_totals>MOIP_Transparente_Block_Sales_Order_Fee</order_totals>
|
| 60 |
</rewrite>
|
| 61 |
</sales>
|
| 62 |
+
<adminhtml>
|
| 63 |
+
<rewrite>
|
| 64 |
+
<sales_order_grid>MOIP_Transparente_Block_Sales_Order_Grid</sales_order_grid>
|
| 65 |
+
</rewrite>
|
| 66 |
+
</adminhtml>
|
| 67 |
</blocks>
|
| 68 |
<helpers>
|
| 69 |
<transparente>
|
| 106 |
</transparente>
|
| 107 |
</observers>
|
| 108 |
</catalog_product_save_after>
|
| 109 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
</events>
|
| 111 |
</global>
|
| 112 |
<frontend>
|
| 140 |
</layout>
|
| 141 |
</frontend>
|
| 142 |
<admin>
|
| 143 |
+
<routers>
|
| 144 |
+
<adminhtml>
|
|
|
|
| 145 |
<args>
|
| 146 |
+
<modules>
|
| 147 |
+
<statusmoip after="Mage_Adminhtml">MOIP_Transparente</statusmoip>
|
| 148 |
+
</modules>
|
| 149 |
</args>
|
| 150 |
+
</adminhtml>
|
| 151 |
</routers>
|
| 152 |
</admin>
|
| 153 |
<adminhtml>
|
| 167 |
</transparente>
|
| 168 |
</updates>
|
| 169 |
</layout>
|
| 170 |
+
<events>
|
| 171 |
+
<core_block_abstract_prepare_layout_before>
|
| 172 |
+
<observers>
|
| 173 |
+
<transparente_core_block_abstract_prepare_layout_before>
|
| 174 |
+
<class>transparente/observer</class>
|
| 175 |
+
<method>addMassAction</method>
|
| 176 |
+
</transparente_core_block_abstract_prepare_layout_before>
|
| 177 |
+
</observers>
|
| 178 |
+
</core_block_abstract_prepare_layout_before>
|
| 179 |
+
</events>
|
| 180 |
</adminhtml>
|
| 181 |
<crontab>
|
| 182 |
<jobs>
|
| 234 |
<validopara_transparente>1</validopara_transparente>
|
| 235 |
<apelido>ALTERE PARA O NOME DA SUA EMPRESA</apelido>
|
| 236 |
<notificar_cliente>1</notificar_cliente>
|
| 237 |
+
<ambiente>producao</ambiente>
|
| 238 |
<allowspecific>0</allowspecific>
|
| 239 |
<min_order_total>5</min_order_total>
|
| 240 |
</moip_transparente_standard>
|
| 268 |
<min_order_total>5</min_order_total>
|
| 269 |
</moip_cc>
|
| 270 |
<moip_tef>
|
| 271 |
+
<active>1</active>
|
| 272 |
<vcmentotef>3</vcmentotef>
|
| 273 |
<model>MOIP_Transparente_Model_Method_Tef</model>
|
| 274 |
<title>Débito em Conta</title>
|
| 278 |
|
| 279 |
|
| 280 |
<moip_ccrecurring>
|
| 281 |
+
<order_status>pending</order_status>
|
| 282 |
<model>MOIP_Transparente_Model_Method_CcRecurring</model>
|
| 283 |
<title>Cartão de Crédito Recorrente</title>
|
| 284 |
</moip_ccrecurring>
|
app/code/local/MOIP/Transparente/etc/system.xml
CHANGED
|
@@ -87,20 +87,7 @@
|
|
| 87 |
<show_in_website>1</show_in_website>
|
| 88 |
<show_in_store>1</show_in_store>
|
| 89 |
</order_status>
|
| 90 |
-
|
| 91 |
-
<label>Status Aprovados</label>
|
| 92 |
-
<frontend_type>select</frontend_type>
|
| 93 |
-
<source_model>adminhtml/system_config_source_order_status_processing</source_model>
|
| 94 |
-
<comment><![CDATA[
|
| 95 |
-
<p>É o primeiro status de pedido pago.</p>
|
| 96 |
-
<p>Saiba mais <a href="https://youtu.be/qs9EBHFBptU">no video</a>.</p>
|
| 97 |
-
]]>
|
| 98 |
-
</comment>
|
| 99 |
-
<sort_order>12</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>
|
| 103 |
-
</order_status_processing>
|
| 104 |
<order_status_holded translate="label">
|
| 105 |
<label>Status em Análise</label>
|
| 106 |
<frontend_type>select</frontend_type>
|
|
@@ -710,6 +697,20 @@
|
|
| 710 |
<show_in_website>1</show_in_website>
|
| 711 |
<show_in_store>1</show_in_store>
|
| 712 |
<fields>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 713 |
<api_id>
|
| 714 |
<label>API Token</label>
|
| 715 |
<frontend_type>obscure</frontend_type>
|
|
@@ -748,10 +749,24 @@
|
|
| 748 |
<show_in_website>1</show_in_website>
|
| 749 |
<show_in_store>0</show_in_store>
|
| 750 |
</active>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 751 |
<title translate="label">
|
| 752 |
<label>Title</label>
|
| 753 |
<frontend_type>text</frontend_type>
|
| 754 |
-
<sort_order>
|
| 755 |
<show_in_default>1</show_in_default>
|
| 756 |
<show_in_website>1</show_in_website>
|
| 757 |
<show_in_store>0</show_in_store>
|
|
@@ -770,20 +785,7 @@
|
|
| 770 |
<show_in_website>1</show_in_website>
|
| 771 |
<show_in_store>1</show_in_store>
|
| 772 |
</order_status_holded_trial>
|
| 773 |
-
|
| 774 |
-
<label>Status dos Pedidos Iniciados</label>
|
| 775 |
-
<frontend_type>select</frontend_type>
|
| 776 |
-
<source_model>adminhtml/system_config_source_order_status_new</source_model>
|
| 777 |
-
<comment><![CDATA[
|
| 778 |
-
<p>É o primeiro status de todo o pedido, ele signfica que foi recebida a ordem de compra.</p>
|
| 779 |
-
<p>No entanto o pagamento ainda não foi processado ou válidado.</p>
|
| 780 |
-
<p>Saiba mais <a href="https://youtu.be/qs9EBHFBptU">no video</a>.]]>
|
| 781 |
-
</comment>
|
| 782 |
-
<sort_order>6</sort_order>
|
| 783 |
-
<show_in_default>1</show_in_default>
|
| 784 |
-
<show_in_website>1</show_in_website>
|
| 785 |
-
<show_in_store>1</show_in_store>
|
| 786 |
-
</order_status>
|
| 787 |
<allowspecific translate="label">
|
| 788 |
<label>Pagamento a partir de países aplicáveis</label>
|
| 789 |
<frontend_type>select</frontend_type>
|
|
@@ -834,10 +836,24 @@
|
|
| 834 |
<show_in_website>1</show_in_website>
|
| 835 |
<show_in_store>0</show_in_store>
|
| 836 |
</active>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 837 |
<title translate="label">
|
| 838 |
<label>Title</label>
|
| 839 |
<frontend_type>text</frontend_type>
|
| 840 |
-
<sort_order>
|
| 841 |
<show_in_default>1</show_in_default>
|
| 842 |
<show_in_website>1</show_in_website>
|
| 843 |
<show_in_store>0</show_in_store>
|
|
@@ -856,20 +872,7 @@
|
|
| 856 |
<show_in_website>1</show_in_website>
|
| 857 |
<show_in_store>1</show_in_store>
|
| 858 |
</order_status_holded_trial>
|
| 859 |
-
|
| 860 |
-
<label>Status dos Pedidos Iniciados</label>
|
| 861 |
-
<frontend_type>select</frontend_type>
|
| 862 |
-
<source_model>adminhtml/system_config_source_order_status_new</source_model>
|
| 863 |
-
<comment><![CDATA[
|
| 864 |
-
<p>É o primeiro status de todo o pedido, ele signfica que foi recebida a ordem de compra.</p>
|
| 865 |
-
<p>No entanto o pagamento ainda não foi processado ou válidado.</p>
|
| 866 |
-
<p>Saiba mais <a href="https://youtu.be/qs9EBHFBptU">no video</a>.]]>
|
| 867 |
-
</comment>
|
| 868 |
-
<sort_order>6</sort_order>
|
| 869 |
-
<show_in_default>1</show_in_default>
|
| 870 |
-
<show_in_website>1</show_in_website>
|
| 871 |
-
<show_in_store>1</show_in_store>
|
| 872 |
-
</order_status>
|
| 873 |
<allowspecific translate="label">
|
| 874 |
<label>Pagamento a partir de países aplicáveis</label>
|
| 875 |
<frontend_type>select</frontend_type>
|
|
@@ -1197,7 +1200,7 @@
|
|
| 1197 |
|
| 1198 |
</advanced_reset>
|
| 1199 |
<oneclick_config>
|
| 1200 |
-
<label>Compra com 1 Click</label>
|
| 1201 |
<frontend_type>text</frontend_type>
|
| 1202 |
<sort_order>4</sort_order>
|
| 1203 |
<show_in_default>1</show_in_default>
|
|
@@ -1215,7 +1218,7 @@
|
|
| 1215 |
<show_in_store>1</show_in_store>
|
| 1216 |
</enable_oneclick>
|
| 1217 |
<enable_jquery>
|
| 1218 |
-
<label>
|
| 1219 |
<frontend_type>select</frontend_type>
|
| 1220 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 1221 |
<comment>Define a chamada ou não do jquery.js na página de produto.</comment>
|
| 87 |
<show_in_website>1</show_in_website>
|
| 88 |
<show_in_store>1</show_in_store>
|
| 89 |
</order_status>
|
| 90 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
<order_status_holded translate="label">
|
| 92 |
<label>Status em Análise</label>
|
| 93 |
<frontend_type>select</frontend_type>
|
| 697 |
<show_in_website>1</show_in_website>
|
| 698 |
<show_in_store>1</show_in_store>
|
| 699 |
<fields>
|
| 700 |
+
<order_status translate="label">
|
| 701 |
+
<label>Status dos Pedidos Iniciados</label>
|
| 702 |
+
<frontend_type>select</frontend_type>
|
| 703 |
+
<source_model>adminhtml/system_config_source_order_status_new</source_model>
|
| 704 |
+
<comment><![CDATA[
|
| 705 |
+
<p>É o primeiro status de todo o pedido, ele signfica que foi recebida a ordem de compra.</p>
|
| 706 |
+
<p>No entanto o pagamento ainda não foi processado ou válidado.</p>
|
| 707 |
+
<p>Saiba mais <a href="https://youtu.be/qs9EBHFBptU">no video</a>.]]>
|
| 708 |
+
</comment>
|
| 709 |
+
<sort_order>11</sort_order>
|
| 710 |
+
<show_in_default>1</show_in_default>
|
| 711 |
+
<show_in_website>1</show_in_website>
|
| 712 |
+
<show_in_store>1</show_in_store>
|
| 713 |
+
</order_status>
|
| 714 |
<api_id>
|
| 715 |
<label>API Token</label>
|
| 716 |
<frontend_type>obscure</frontend_type>
|
| 749 |
<show_in_website>1</show_in_website>
|
| 750 |
<show_in_store>0</show_in_store>
|
| 751 |
</active>
|
| 752 |
+
<order_status translate="label">
|
| 753 |
+
<label>Status dos Pedidos Iniciados</label>
|
| 754 |
+
<frontend_type>select</frontend_type>
|
| 755 |
+
<source_model>adminhtml/system_config_source_order_status_new</source_model>
|
| 756 |
+
<comment><![CDATA[
|
| 757 |
+
<p>É o primeiro status de todo o pedido, ele signfica que foi recebida a ordem de compra.</p>
|
| 758 |
+
<p>No entanto o pagamento ainda não foi processado ou válidado.</p>
|
| 759 |
+
<p>Saiba mais <a href="https://youtu.be/qs9EBHFBptU">no video</a>.]]>
|
| 760 |
+
</comment>
|
| 761 |
+
<sort_order>2</sort_order>
|
| 762 |
+
<show_in_default>1</show_in_default>
|
| 763 |
+
<show_in_website>1</show_in_website>
|
| 764 |
+
<show_in_store>1</show_in_store>
|
| 765 |
+
</order_status>
|
| 766 |
<title translate="label">
|
| 767 |
<label>Title</label>
|
| 768 |
<frontend_type>text</frontend_type>
|
| 769 |
+
<sort_order>3</sort_order>
|
| 770 |
<show_in_default>1</show_in_default>
|
| 771 |
<show_in_website>1</show_in_website>
|
| 772 |
<show_in_store>0</show_in_store>
|
| 785 |
<show_in_website>1</show_in_website>
|
| 786 |
<show_in_store>1</show_in_store>
|
| 787 |
</order_status_holded_trial>
|
| 788 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 789 |
<allowspecific translate="label">
|
| 790 |
<label>Pagamento a partir de países aplicáveis</label>
|
| 791 |
<frontend_type>select</frontend_type>
|
| 836 |
<show_in_website>1</show_in_website>
|
| 837 |
<show_in_store>0</show_in_store>
|
| 838 |
</active>
|
| 839 |
+
<order_status translate="label">
|
| 840 |
+
<label>Status dos Pedidos Iniciados</label>
|
| 841 |
+
<frontend_type>select</frontend_type>
|
| 842 |
+
<source_model>adminhtml/system_config_source_order_status_new</source_model>
|
| 843 |
+
<comment><![CDATA[
|
| 844 |
+
<p>É o primeiro status de todo o pedido, ele signfica que foi recebida a ordem de compra.</p>
|
| 845 |
+
<p>No entanto o pagamento ainda não foi processado ou válidado.</p>
|
| 846 |
+
<p>Saiba mais <a href="https://youtu.be/qs9EBHFBptU">no video</a>.]]>
|
| 847 |
+
</comment>
|
| 848 |
+
<sort_order>2</sort_order>
|
| 849 |
+
<show_in_default>1</show_in_default>
|
| 850 |
+
<show_in_website>1</show_in_website>
|
| 851 |
+
<show_in_store>1</show_in_store>
|
| 852 |
+
</order_status>
|
| 853 |
<title translate="label">
|
| 854 |
<label>Title</label>
|
| 855 |
<frontend_type>text</frontend_type>
|
| 856 |
+
<sort_order>3</sort_order>
|
| 857 |
<show_in_default>1</show_in_default>
|
| 858 |
<show_in_website>1</show_in_website>
|
| 859 |
<show_in_store>0</show_in_store>
|
| 872 |
<show_in_website>1</show_in_website>
|
| 873 |
<show_in_store>1</show_in_store>
|
| 874 |
</order_status_holded_trial>
|
| 875 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 876 |
<allowspecific translate="label">
|
| 877 |
<label>Pagamento a partir de países aplicáveis</label>
|
| 878 |
<frontend_type>select</frontend_type>
|
| 1200 |
|
| 1201 |
</advanced_reset>
|
| 1202 |
<oneclick_config>
|
| 1203 |
+
<label>Compra com 1 Click e Widgets de Parcelamento</label>
|
| 1204 |
<frontend_type>text</frontend_type>
|
| 1205 |
<sort_order>4</sort_order>
|
| 1206 |
<show_in_default>1</show_in_default>
|
| 1218 |
<show_in_store>1</show_in_store>
|
| 1219 |
</enable_oneclick>
|
| 1220 |
<enable_jquery>
|
| 1221 |
+
<label>Usar Jquery?</label>
|
| 1222 |
<frontend_type>select</frontend_type>
|
| 1223 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 1224 |
<comment>Define a chamada ou não do jquery.js na página de produto.</comment>
|
app/code/local/MOIP/Transparente/sql/transparente_setup/mysql4-upgrade-0.1.0-0.2.2.php
CHANGED
|
@@ -18,15 +18,10 @@ $resource = Mage::getSingleton('core/resource');
|
|
| 18 |
|
| 19 |
$writeConnection = $resource->getConnection('core_write');
|
| 20 |
|
| 21 |
-
$
|
| 22 |
-
|
| 23 |
-
$query = "UPDATE {$table} SET `version` = '0.1.0', `data_version` = '0.1.0' WHERE `core_resource`.`code` = 'transparente_setup'";
|
| 24 |
-
|
| 25 |
-
$writeConnection->query($query);
|
| 26 |
-
|
| 27 |
$installer->run("
|
| 28 |
-
DROP TABLE IF EXISTS `".$
|
| 29 |
-
CREATE TABLE IF NOT EXISTS `".$
|
| 30 |
`entity_id_moip` int(11) NOT NULL AUTO_INCREMENT,
|
| 31 |
`mage_pay` int(11) DEFAULT NULL,
|
| 32 |
`moip_order` varchar(256) DEFAULT NULL,
|
|
@@ -59,5 +54,4 @@ $installer->startSetup();
|
|
| 59 |
$installer->endSetup();
|
| 60 |
|
| 61 |
|
| 62 |
-
?>
|
| 63 |
-
|
| 18 |
|
| 19 |
$writeConnection = $resource->getConnection('core_write');
|
| 20 |
|
| 21 |
+
$table_moip = $tablePrefix."moip_transparentev2";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
$installer->run("
|
| 23 |
+
DROP TABLE IF EXISTS `".$table_moip."`;
|
| 24 |
+
CREATE TABLE IF NOT EXISTS `".$table_moip."` (
|
| 25 |
`entity_id_moip` int(11) NOT NULL AUTO_INCREMENT,
|
| 26 |
`mage_pay` int(11) DEFAULT NULL,
|
| 27 |
`moip_order` varchar(256) DEFAULT NULL,
|
| 54 |
$installer->endSetup();
|
| 55 |
|
| 56 |
|
| 57 |
+
?>
|
|
|
app/design/adminhtml/default/default/template/MOIP/account/system/config/button/button.phtml
DELETED
|
@@ -1,37 +0,0 @@
|
|
| 1 |
-
<?php $email = $this->getValueConfig('email'); ?>
|
| 2 |
-
<?php if(!empty($email)): ?>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
<script type="text/javascript">
|
| 6 |
-
//<![CDATA[
|
| 7 |
-
|
| 8 |
-
function check() {
|
| 9 |
-
var configForm = new varienForm('config_edit_form');
|
| 10 |
-
|
| 11 |
-
if (configForm.validator.validate()) {
|
| 12 |
-
new Ajax.Request('<?php echo $this->getAjaxCheckUrl() ?>', {
|
| 13 |
-
method: 'post',
|
| 14 |
-
onSuccess: function(transport){
|
| 15 |
-
|
| 16 |
-
if (transport.responseText){
|
| 17 |
-
var data_response = transport.responseText.evalJSON();
|
| 18 |
-
if(data_response.page_redirect == 0){
|
| 19 |
-
location.reload();
|
| 20 |
-
} else{
|
| 21 |
-
window.location.href = data_response.url_redirect;
|
| 22 |
-
|
| 23 |
-
}
|
| 24 |
-
|
| 25 |
-
}
|
| 26 |
-
}
|
| 27 |
-
});
|
| 28 |
-
}
|
| 29 |
-
}
|
| 30 |
-
//]]>
|
| 31 |
-
</script>
|
| 32 |
-
<?php $name = $this->getValueConfig('name'); ?>
|
| 33 |
-
<h2>Olá <?php echo $name ?>, crie sua conta no Moip clicando no botão a baixo:</h2>
|
| 34 |
-
<?php echo $this->getButtonHtml() ?>
|
| 35 |
-
<?php else: ?>
|
| 36 |
-
<h2>Configure sua conta moip preenchendo os dados:</h2>
|
| 37 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/layout/moip_transparente.xml
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
<text>
|
| 13 |
<![CDATA[
|
| 14 |
|
| 15 |
-
<script type="text/javascript" src="https://assets.moip.com.br/
|
| 16 |
<script type="text/javascript">
|
| 17 |
MoipPagamentosCc();
|
| 18 |
Validation.creditCartTypes.set('DC', [new RegExp('^3(?:0[0-5]|[68][0-9])[0-9]{11}$'), new RegExp('^[0-9]{3}$'), true]);
|
|
@@ -38,7 +38,7 @@
|
|
| 38 |
<text>
|
| 39 |
<![CDATA[
|
| 40 |
|
| 41 |
-
<script type="text/javascript" src="https://assets.moip.com.br/
|
| 42 |
<script type="text/javascript">
|
| 43 |
MoipPagamentosCc();
|
| 44 |
Validation.creditCartTypes.set('DC', [new RegExp('^3(?:0[0-5]|[68][0-9])[0-9]{11}$'), new RegExp('^[0-9]{3}$'), true]);
|
|
@@ -63,7 +63,7 @@
|
|
| 63 |
<text>
|
| 64 |
<![CDATA[
|
| 65 |
|
| 66 |
-
<script type="text/javascript" src="https://assets.moip.com.br/
|
| 67 |
<script type="text/javascript">
|
| 68 |
MoipPagamentosCc();
|
| 69 |
Validation.creditCartTypes.set('DC', [new RegExp('^3(?:0[0-5]|[68][0-9])[0-9]{11}$'), new RegExp('^[0-9]{3}$'), true]);
|
|
@@ -88,7 +88,7 @@
|
|
| 88 |
<text>
|
| 89 |
<![CDATA[
|
| 90 |
|
| 91 |
-
<script type="text/javascript" src="https://assets.moip.com.br/
|
| 92 |
<script type="text/javascript">
|
| 93 |
MoipPagamentosCc();
|
| 94 |
Validation.creditCartTypes.set('DC', [new RegExp('^3(?:0[0-5]|[68][0-9])[0-9]{11}$'), new RegExp('^[0-9]{3}$'), true]);
|
|
@@ -113,7 +113,7 @@
|
|
| 113 |
<action method="setText">
|
| 114 |
<text>
|
| 115 |
<![CDATA[
|
| 116 |
-
<script type="text/javascript" src="https://assets.moip.com.br/
|
| 117 |
<script type="text/javascript">
|
| 118 |
MoipPagamentosCc();
|
| 119 |
Validation.creditCartTypes.set('DC', [new RegExp('^3(?:0[0-5]|[68][0-9])[0-9]{11}$'), new RegExp('^[0-9]{3}$'), true]);
|
|
@@ -242,5 +242,59 @@
|
|
| 242 |
</block>
|
| 243 |
</reference>
|
| 244 |
</transparente_index_loginonclick>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
|
| 246 |
</layout>
|
| 12 |
<text>
|
| 13 |
<![CDATA[
|
| 14 |
|
| 15 |
+
<script type="text/javascript" src="https://assets.moip.com.br/v2/moip.min.js"></script>
|
| 16 |
<script type="text/javascript">
|
| 17 |
MoipPagamentosCc();
|
| 18 |
Validation.creditCartTypes.set('DC', [new RegExp('^3(?:0[0-5]|[68][0-9])[0-9]{11}$'), new RegExp('^[0-9]{3}$'), true]);
|
| 38 |
<text>
|
| 39 |
<![CDATA[
|
| 40 |
|
| 41 |
+
<script type="text/javascript" src="https://assets.moip.com.br/v2/moip.min.js"></script>
|
| 42 |
<script type="text/javascript">
|
| 43 |
MoipPagamentosCc();
|
| 44 |
Validation.creditCartTypes.set('DC', [new RegExp('^3(?:0[0-5]|[68][0-9])[0-9]{11}$'), new RegExp('^[0-9]{3}$'), true]);
|
| 63 |
<text>
|
| 64 |
<![CDATA[
|
| 65 |
|
| 66 |
+
<script type="text/javascript" src="https://assets.moip.com.br/v2/moip.min.js"></script>
|
| 67 |
<script type="text/javascript">
|
| 68 |
MoipPagamentosCc();
|
| 69 |
Validation.creditCartTypes.set('DC', [new RegExp('^3(?:0[0-5]|[68][0-9])[0-9]{11}$'), new RegExp('^[0-9]{3}$'), true]);
|
| 88 |
<text>
|
| 89 |
<![CDATA[
|
| 90 |
|
| 91 |
+
<script type="text/javascript" src="https://assets.moip.com.br/v2/moip.min.js"></script>
|
| 92 |
<script type="text/javascript">
|
| 93 |
MoipPagamentosCc();
|
| 94 |
Validation.creditCartTypes.set('DC', [new RegExp('^3(?:0[0-5]|[68][0-9])[0-9]{11}$'), new RegExp('^[0-9]{3}$'), true]);
|
| 113 |
<action method="setText">
|
| 114 |
<text>
|
| 115 |
<![CDATA[
|
| 116 |
+
<script type="text/javascript" src="https://assets.moip.com.br/v2/moip.min.js"></script>
|
| 117 |
<script type="text/javascript">
|
| 118 |
MoipPagamentosCc();
|
| 119 |
Validation.creditCartTypes.set('DC', [new RegExp('^3(?:0[0-5]|[68][0-9])[0-9]{11}$'), new RegExp('^[0-9]{3}$'), true]);
|
| 242 |
</block>
|
| 243 |
</reference>
|
| 244 |
</transparente_index_loginonclick>
|
| 245 |
+
<gc_checkout_finish_index>
|
| 246 |
+
<reference name="head">
|
| 247 |
+
<action method="addJs" ifconfig="moipall/config/enable_jquery"><script>MOIP/core/jquery.js</script></action>
|
| 248 |
+
<action method="addJs"><script>MOIP/core/jquery_noconflict.js</script></action>
|
| 249 |
+
<action method="addJs"><script>MOIP/transparente/moip.js</script></action>
|
| 250 |
+
<action method="addCss"><stylesheet>MOIP/transparente/css/form.css</stylesheet></action>
|
| 251 |
+
<block type="core/text" name="moip.cdn">
|
| 252 |
+
<action method="setText">
|
| 253 |
+
<text>
|
| 254 |
+
<![CDATA[
|
| 255 |
+
<script type="text/javascript" src="https://assets.moip.com.br/integration/moip.min.js"></script>
|
| 256 |
+
<script type="text/javascript">
|
| 257 |
+
MoipPagamentosCc();
|
| 258 |
+
Validation.creditCartTypes.set('DC', [new RegExp('^3(?:0[0-5]|[68][0-9])[0-9]{11}$'), new RegExp('^[0-9]{3}$'), true]);
|
| 259 |
+
Validation.creditCartTypes.set('EO', [false, new RegExp('^([0-9]{3}|[0-9]{4})?$'), false]);
|
| 260 |
+
Validation.creditCartTypes.set('HI', [false, new RegExp('^([0-9]{3}|[0-9]{4})?$'), false]);
|
| 261 |
+
Validation.creditCartTypes.set('HP', [false, new RegExp('^([0-9]{3}|[0-9]{4})?$'), false]);
|
| 262 |
+
</script>
|
| 263 |
+
]]>
|
| 264 |
+
</text>
|
| 265 |
+
</action>
|
| 266 |
+
</block>
|
| 267 |
+
</reference>
|
| 268 |
+
</gc_checkout_finish_index>
|
| 269 |
+
|
| 270 |
+
|
| 271 |
+
<checkout_onepage_success translate="label">
|
| 272 |
+
<label>One Page Checkout Success</label>
|
| 273 |
+
|
| 274 |
+
<reference name="head">
|
| 275 |
+
<action method="addCss"><stylesheet>MOIP/transparente/css/redirect.css</stylesheet></action>
|
| 276 |
+
</reference>
|
| 277 |
+
<reference name="checkout.success">
|
| 278 |
+
<block type="MOIP_Transparente_Block_Standard_Moip" name="transparente.comum" template="MOIP/transparente/checkout/success/moip.phtml">
|
| 279 |
+
<block type="MOIP_Transparente_Block_Standard_Moip" name="transparente.transferencia" template="MOIP/transparente/checkout/success/method/transferencia.phtml"></block>
|
| 280 |
+
<block type="MOIP_Transparente_Block_Standard_Moip" name="transparente.boleto" template="MOIP/transparente/checkout/success/method/boleto.phtml"></block>
|
| 281 |
+
<block type="MOIP_Transparente_Block_Standard_Moip" name="transparente.cartao" template="MOIP/transparente/checkout/success/method/cartao.phtml"></block>
|
| 282 |
+
<block type="MOIP_Transparente_Block_Standard_Details" name="success.order.details" as="details" template="MOIP/transparente/checkout/success/details.phtml">
|
| 283 |
+
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>MOIP/transparente/checkout/sales/order/items/renderer/default.phtml</template></action>
|
| 284 |
+
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>MOIP/transparente/checkout/sales/order/items/renderer/default.phtml</template></action>
|
| 285 |
+
<block type="sales/order_totals" name="order_totals" template="MOIP/transparente/checkout/sales/order/totals.phtml">
|
| 286 |
+
<action method="setLabelProperties"><value>colspan="2" class="a-right"</value></action>
|
| 287 |
+
|
| 288 |
+
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
|
| 289 |
+
<action method="setIsPlaneMode"><value>1</value></action>
|
| 290 |
+
</block>
|
| 291 |
+
</block>
|
| 292 |
+
</block>
|
| 293 |
+
</block>
|
| 294 |
+
</reference>
|
| 295 |
+
<!-- <block type="MOIP_Transparente_Block_Standard_SuccessRecurring" name="success.order" as="success_order_boletorecorrente" template="MOIP/transparente/checkout/success/method/boletorecorrente.phtml"/> -->
|
| 296 |
+
</checkout_onepage_success>
|
| 297 |
+
|
| 298 |
+
|
| 299 |
|
| 300 |
</layout>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/cadastro/CreateAccount.phtml
CHANGED
|
@@ -82,8 +82,7 @@
|
|
| 82 |
|
| 83 |
<div id="loading-mask">
|
| 84 |
<div id="loading_mask_loader" class="loader">
|
| 85 |
-
<img alt="Loading..." class="loading_img" src="<?php echo $this->getSkinUrl('
|
| 86 |
-
<p><span>Atualizando dados, por favor aguarde...</span></p>
|
| 87 |
</div>
|
| 88 |
</div>
|
| 89 |
|
| 82 |
|
| 83 |
<div id="loading-mask">
|
| 84 |
<div id="loading_mask_loader" class="loader">
|
| 85 |
+
<img alt="Loading..." class="loading_img" src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif')?>">
|
|
|
|
| 86 |
</div>
|
| 87 |
</div>
|
| 88 |
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard.phtml
CHANGED
|
@@ -22,7 +22,10 @@
|
|
| 22 |
#first_collun > .moip-osc-block-content .form-list .control label {display: block}
|
| 23 |
<?php endif;?>
|
| 24 |
</style>
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
| 26 |
$class_address_user = "col-xm-12 col-lg-4 col-md-4";
|
| 27 |
$class_set_midle_coll = "col-xm-12 col-lg-8 col-lg-8";
|
| 28 |
$class_Shippingcollun = "no-set-coll";
|
|
@@ -48,7 +51,36 @@
|
|
| 48 |
$class_Paymentcollun = "col-lg-4 col-xm-12 col-md-4";
|
| 49 |
$class_Review = "";
|
| 50 |
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
<div class="container body-wrapper">
|
|
@@ -115,31 +147,32 @@
|
|
| 115 |
<?php if(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==4 || Mage::getStoreConfig('onestepcheckout/layout/page_layout')==2): ?>
|
| 116 |
<div class="<?php echo $class_set_midle_coll ?>">
|
| 117 |
<?php endif; ?>
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
|
| 129 |
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
|
| 137 |
|
| 138 |
-
|
| 139 |
-
|
|
|
|
| 140 |
</div>
|
| 141 |
</div>
|
| 142 |
-
|
| 143 |
|
| 144 |
|
| 145 |
<div class="<?php echo $class_Paymentcollun ?>">
|
|
@@ -251,8 +284,7 @@
|
|
| 251 |
|
| 252 |
<div id="loading-mask">
|
| 253 |
<div id="loading_mask_loader" class="loader">
|
| 254 |
-
<img alt="Loading..." class="loading_img" src="<?php echo $this->getSkinUrl('
|
| 255 |
-
<p><span>Atualizando dados, por favor aguarde...</span></p>
|
| 256 |
</div>
|
| 257 |
</div>
|
| 258 |
|
| 22 |
#first_collun > .moip-osc-block-content .form-list .control label {display: block}
|
| 23 |
<?php endif;?>
|
| 24 |
</style>
|
| 25 |
+
|
| 26 |
+
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):
|
| 27 |
+
|
| 28 |
+
if(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==2){
|
| 29 |
$class_address_user = "col-xm-12 col-lg-4 col-md-4";
|
| 30 |
$class_set_midle_coll = "col-xm-12 col-lg-8 col-lg-8";
|
| 31 |
$class_Shippingcollun = "no-set-coll";
|
| 51 |
$class_Paymentcollun = "col-lg-4 col-xm-12 col-md-4";
|
| 52 |
$class_Review = "";
|
| 53 |
|
| 54 |
+
}
|
| 55 |
+
else:
|
| 56 |
+
if(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==2){
|
| 57 |
+
$class_address_user = "col-xm-12 col-lg-4 col-md-4";
|
| 58 |
+
$class_set_midle_coll = "col-xm-12 col-lg-8 col-lg-8";
|
| 59 |
+
$class_Shippingcollun = "no-set-coll";
|
| 60 |
+
$class_Paymentcollun = "no-set-coll";
|
| 61 |
+
$class_Review = "col-lg-4 col-xm-12 col-md-4";
|
| 62 |
+
|
| 63 |
+
} elseif(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==3){
|
| 64 |
+
$class_address_user = "col-xm-12 col-lg-4 col-md-4";
|
| 65 |
+
$class_set_midle_coll = "no-set-coll";
|
| 66 |
+
$class_Shippingcollun = "no-set-coll";
|
| 67 |
+
$class_Paymentcollun = "col-lg-8 col-xm-12 col-md-8";
|
| 68 |
+
$class_Review = "col-lg-12 col-xm-12 col-md-12";
|
| 69 |
+
} elseif(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==4){
|
| 70 |
+
|
| 71 |
+
$class_address_user = "col-xm-12 col-lg-4 col-md-4";
|
| 72 |
+
$class_set_midle_coll = "col-xm-12 col-lg-4 col-md-4";
|
| 73 |
+
$class_Shippingcollun = "no-set-coll";
|
| 74 |
+
$class_Paymentcollun = "no-set-coll";
|
| 75 |
+
$class_Review = "col-lg-4 col-xm-12 col-md-4";
|
| 76 |
+
} else {
|
| 77 |
+
$class_address_user = "col-xm-12 col-lg-4 col-md-4";
|
| 78 |
+
$class_Shippingcollun = "no-set-coll";
|
| 79 |
+
$class_Paymentcollun = "col-lg-8 col-xm-12 col-md-8";
|
| 80 |
+
$class_Review = "";
|
| 81 |
+
|
| 82 |
+
}
|
| 83 |
+
endif; ?>
|
| 84 |
|
| 85 |
|
| 86 |
<div class="container body-wrapper">
|
| 147 |
<?php if(Mage::getStoreConfig('onestepcheckout/layout/page_layout')==4 || Mage::getStoreConfig('onestepcheckout/layout/page_layout')==2): ?>
|
| 148 |
<div class="<?php echo $class_set_midle_coll ?>">
|
| 149 |
<?php endif; ?>
|
| 150 |
+
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()): ?>
|
| 151 |
+
<div class="<?php echo $class_Shippingcollun ?>">
|
| 152 |
+
<div class="moip-osc-block" >
|
| 153 |
+
<div class="moip-osc-block-title">
|
| 154 |
+
<h3> <?php echo $this->__('Entrega');?> </h3>
|
| 155 |
+
</div>
|
| 156 |
|
| 157 |
+
<div class="moip-osc-block-content">
|
| 158 |
+
|
| 159 |
+
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
| 160 |
|
| 161 |
|
| 162 |
+
|
| 163 |
+
<?php echo $this->getChildHtml('shipping_method',false,true);?>
|
| 164 |
+
<?php if(Mage::helper('onestepcheckout')->enableGiftMessage()):?>
|
| 165 |
+
<?php echo $this->getChildHtml('additional',false,true) ?>
|
| 166 |
+
<?php endif; ?>
|
| 167 |
+
|
| 168 |
|
| 169 |
|
| 170 |
+
<?php endif?>
|
| 171 |
+
|
| 172 |
+
</div>
|
| 173 |
</div>
|
| 174 |
</div>
|
| 175 |
+
<?php endif; ?>
|
| 176 |
|
| 177 |
|
| 178 |
<div class="<?php echo $class_Paymentcollun ?>">
|
| 284 |
|
| 285 |
<div id="loading-mask">
|
| 286 |
<div id="loading_mask_loader" class="loader">
|
| 287 |
+
<img alt="Loading..." class="loading_img" src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif')?>">
|
|
|
|
| 288 |
</div>
|
| 289 |
</div>
|
| 290 |
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/payment/methods.phtml
CHANGED
|
@@ -24,7 +24,5 @@
|
|
| 24 |
<?php endforeach; ?>
|
| 25 |
</dl>
|
| 26 |
<script type="text/javascript">
|
| 27 |
-
|
| 28 |
-
<?php echo $this->getChildHtml('scripts'); ?>
|
| 29 |
-
//]]>
|
| 30 |
</script>
|
| 24 |
<?php endforeach; ?>
|
| 25 |
</dl>
|
| 26 |
<script type="text/javascript">
|
| 27 |
+
<?php echo $this->getChildHtml('scripts'); ?>
|
|
|
|
|
|
|
| 28 |
</script>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/daskboard/onepage/shipping_method/available.phtml
CHANGED
|
@@ -23,7 +23,11 @@
|
|
| 23 |
<?php else: ?>
|
| 24 |
<?php if ($_sole) : ?>
|
| 25 |
<span class="no-display"><input name="shipping_method" type="radio" title="Meio de Envio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" class="validate-one-required-by-name"/></span>
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
<?php else: ?>
|
| 28 |
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" title="Meio de Envio" id="s_method_<?php echo $_rate->getCode() ?>" class="radio shipping_method_handle validate-one-required-by-name"/>
|
| 29 |
<?php endif; ?>
|
| 23 |
<?php else: ?>
|
| 24 |
<?php if ($_sole) : ?>
|
| 25 |
<span class="no-display"><input name="shipping_method" type="radio" title="Meio de Envio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" class="validate-one-required-by-name"/></span>
|
| 26 |
+
<script type="text/javascript">
|
| 27 |
+
jQuery(document).ready(function(){
|
| 28 |
+
updateShippingMethod();
|
| 29 |
+
});
|
| 30 |
+
</script>
|
| 31 |
<?php else: ?>
|
| 32 |
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" title="Meio de Envio" id="s_method_<?php echo $_rate->getCode() ?>" class="radio shipping_method_handle validate-one-required-by-name"/>
|
| 33 |
<?php endif; ?>
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/onepagejs.phtml
CHANGED
|
@@ -1,9 +1,7 @@
|
|
| 1 |
<script type="text/javascript">countryRegions = <?php echo $this->helper('directory')->getRegionJson() ?></script>
|
| 2 |
-
|
| 3 |
<script type="text/javascript">
|
| 4 |
//<![CDATA[
|
| 5 |
|
| 6 |
-
|
| 7 |
var message_payment = "Por Favor, selecione um meio de pagamento.";
|
| 8 |
var message_ship = "Por favor, selecione um Meio de Envio";
|
| 9 |
var updatepaymenttypeurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymenttype')?>";
|
|
@@ -31,13 +29,10 @@ ProxCamp = function(fields) {
|
|
| 31 |
}
|
| 32 |
};
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
soNumeros = function(v){
|
| 37 |
return v.replace(/\D/g,"")
|
| 38 |
};
|
| 39 |
|
| 40 |
-
|
| 41 |
has_default_billing = function()
|
| 42 |
{
|
| 43 |
<?php if (Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?>
|
|
@@ -51,8 +46,6 @@ has_default_billing = function()
|
|
| 51 |
<?php endif ?>
|
| 52 |
};
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
getval = function(sel) {
|
| 57 |
if (sel.value == 1){
|
| 58 |
jQuery('.dados-pj').slideUp();
|
|
@@ -67,8 +60,6 @@ marcar_isento = function() {
|
|
| 67 |
jQuery("#insestadual").val("Isento");
|
| 68 |
};
|
| 69 |
|
| 70 |
-
|
| 71 |
-
|
| 72 |
buscarEndereco = function(whatform) {
|
| 73 |
if (whatform == "billing") {
|
| 74 |
jQuery(".hide-zip-code").addClass("show-zip-code");
|
|
@@ -138,6 +129,7 @@ buscarEndereco = function(whatform) {
|
|
| 138 |
if (campos.postcode != "" && campos.postcode != ".")
|
| 139 |
{
|
| 140 |
updateShippingType(campos.postcode);
|
|
|
|
| 141 |
};
|
| 142 |
|
| 143 |
} else {
|
|
@@ -148,6 +140,7 @@ buscarEndereco = function(whatform) {
|
|
| 148 |
if (campos.postcode != "" && campos.postcode != ".")
|
| 149 |
{
|
| 150 |
updateShippingType(campos.postcode);
|
|
|
|
| 151 |
};
|
| 152 |
}
|
| 153 |
},
|
|
@@ -190,25 +183,19 @@ updateShippingMethod = function() {
|
|
| 190 |
jQuery.ajax({
|
| 191 |
type: "POST",
|
| 192 |
url: updateshippingmethodurl,
|
| 193 |
-
|
| 194 |
data: jQuery("#onestep_form").serialize(),
|
| 195 |
beforeSend: function(){
|
| 196 |
-
|
| 197 |
jQuery('.validation-advice').hide();
|
| 198 |
jQuery("input[name='shipping_method']").removeClass('validation-failed');
|
| 199 |
-
jQuery('#checkout-payment-method-load').html('<div class="update_payment"><p>Calculando valor do pagamento.</p><img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("
|
| 200 |
-
|
| 201 |
-
|
| 202 |
},
|
| 203 |
success: function(msg) {
|
| 204 |
-
|
| 205 |
-
|
| 206 |
jQuery('#checkout-review-table-wrapper').html(msg);
|
| 207 |
jQuery('#checkout-review-table-wrapper').find("script").each(function(i) {
|
| 208 |
eval(jQuery(this).text());
|
| 209 |
});
|
| 210 |
-
|
| 211 |
-
|
| 212 |
},
|
| 213 |
fail:function() {
|
| 214 |
updateShippingMethod();
|
|
@@ -226,9 +213,7 @@ updateOrderMethod = function() {
|
|
| 226 |
jQuery.ajax({
|
| 227 |
type: "POST",
|
| 228 |
url: updateordermethodurl,
|
| 229 |
-
|
| 230 |
-
data: jQuery("#onestep_form").serialize(),
|
| 231 |
-
|
| 232 |
success: function(msg) {
|
| 233 |
var result = jQuery.parseJSON(msg);
|
| 234 |
if(result.erros == 1){
|
|
@@ -239,9 +224,6 @@ updateOrderMethod = function() {
|
|
| 239 |
} else{
|
| 240 |
window.location.href = result.msg_success;
|
| 241 |
}
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
},
|
| 246 |
fail:function() {
|
| 247 |
location.reload();
|
|
@@ -250,8 +232,6 @@ updateOrderMethod = function() {
|
|
| 250 |
|
| 251 |
},
|
| 252 |
})
|
| 253 |
-
|
| 254 |
-
|
| 255 |
};
|
| 256 |
|
| 257 |
updateShippingType = function(){
|
|
@@ -263,13 +243,14 @@ updateShippingType = function(){
|
|
| 263 |
data:jQuery("#onestep_form").serialize(),
|
| 264 |
beforeSend: function(){
|
| 265 |
jQuery('#message-box').html('');
|
| 266 |
-
jQuery('#checkout-shipping-method-load').html('<div class="update_shipping"><p>Calculando Frete.</p><img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("
|
| 267 |
},
|
| 268 |
success: function(msg){
|
| 269 |
jQuery('#checkout-shipping-method-load').html(msg);
|
| 270 |
jQuery('#checkout-shipping-method-load').find("script").each(function(i) {
|
| 271 |
eval(jQuery(this).text());
|
| 272 |
});
|
|
|
|
| 273 |
},
|
| 274 |
error: function(){
|
| 275 |
jQuery('#checkout-shipping-method-load').html("Não foi possível cotar o seu frete, por favor recarrege a página ou entre em contato com nossa loja.");
|
|
@@ -279,7 +260,6 @@ updateShippingType = function(){
|
|
| 279 |
};
|
| 280 |
|
| 281 |
updateClear = function() {
|
| 282 |
-
|
| 283 |
jQuery.ajax({
|
| 284 |
async: false,
|
| 285 |
type: "POST",
|
|
@@ -323,18 +303,14 @@ updatePaymentMethod = function() {
|
|
| 323 |
jQuery.ajax({
|
| 324 |
url: updatepaymentmethodurl,
|
| 325 |
type: "POST",
|
| 326 |
-
|
| 327 |
data: jQuery("#onestep_form").serialize(),
|
| 328 |
success: function(msg) {
|
| 329 |
-
|
| 330 |
jQuery('#checkout-review-table-wrapper').html(msg);
|
| 331 |
-
|
| 332 |
jQuery('#checkout-review-table-wrapper').find("script").each(function(i) {
|
| 333 |
eval(jQuery(this).text());
|
| 334 |
});
|
| 335 |
},
|
| 336 |
});
|
| 337 |
-
|
| 338 |
};
|
| 339 |
|
| 340 |
updateCoupon = function() {
|
|
@@ -387,11 +363,7 @@ removeProduct = function(id) {
|
|
| 387 |
}
|
| 388 |
logined = function()
|
| 389 |
{
|
| 390 |
-
<?php
|
| 391 |
-
return 1;
|
| 392 |
-
<?php else: ?>
|
| 393 |
-
return 0;
|
| 394 |
-
<?php endif ?>
|
| 395 |
}
|
| 396 |
hasaddress = function(){
|
| 397 |
<?php if(count(Mage::getSingleton('customer/session')->getCustomer()->getAddresses())): ?>
|
|
@@ -477,6 +449,11 @@ updateQty = function(){
|
|
| 477 |
|
| 478 |
}
|
| 479 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 480 |
|
| 481 |
inbtn = function(id){
|
| 482 |
removeElemento = "#up_"+id;
|
|
@@ -486,8 +463,6 @@ inbtn = function(id){
|
|
| 486 |
|
| 487 |
})(jQuery);
|
| 488 |
|
| 489 |
-
|
| 490 |
-
|
| 491 |
jQuery(document).ready(function(){
|
| 492 |
var payment = new Payment('co-payment-form', '<?php echo $this->getUrl("checkout/onepage/savePayment") ?>');
|
| 493 |
|
|
@@ -497,6 +472,7 @@ jQuery(document).ready(function(){
|
|
| 497 |
ChangeEvents();
|
| 498 |
Setmask();
|
| 499 |
updateClear();
|
|
|
|
| 500 |
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
| 501 |
jQuery('#moip_cc_number').focus(function() {
|
| 502 |
var selectShipping = jQuery("input[name='shipping_method']:checked").val();
|
|
@@ -505,9 +481,6 @@ jQuery(document).ready(function(){
|
|
| 505 |
}
|
| 506 |
});
|
| 507 |
<?php endif?>
|
| 508 |
-
jQuery("input[name='shipping_method']").change(function () {
|
| 509 |
-
updateShippingMethod();
|
| 510 |
-
});
|
| 511 |
});
|
| 512 |
|
| 513 |
|
| 1 |
<script type="text/javascript">countryRegions = <?php echo $this->helper('directory')->getRegionJson() ?></script>
|
|
|
|
| 2 |
<script type="text/javascript">
|
| 3 |
//<![CDATA[
|
| 4 |
|
|
|
|
| 5 |
var message_payment = "Por Favor, selecione um meio de pagamento.";
|
| 6 |
var message_ship = "Por favor, selecione um Meio de Envio";
|
| 7 |
var updatepaymenttypeurl = "<?php echo Mage::getUrl('onestepcheckout/index/updatepaymenttype')?>";
|
| 29 |
}
|
| 30 |
};
|
| 31 |
|
|
|
|
|
|
|
| 32 |
soNumeros = function(v){
|
| 33 |
return v.replace(/\D/g,"")
|
| 34 |
};
|
| 35 |
|
|
|
|
| 36 |
has_default_billing = function()
|
| 37 |
{
|
| 38 |
<?php if (Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling()): ?>
|
| 46 |
<?php endif ?>
|
| 47 |
};
|
| 48 |
|
|
|
|
|
|
|
| 49 |
getval = function(sel) {
|
| 50 |
if (sel.value == 1){
|
| 51 |
jQuery('.dados-pj').slideUp();
|
| 60 |
jQuery("#insestadual").val("Isento");
|
| 61 |
};
|
| 62 |
|
|
|
|
|
|
|
| 63 |
buscarEndereco = function(whatform) {
|
| 64 |
if (whatform == "billing") {
|
| 65 |
jQuery(".hide-zip-code").addClass("show-zip-code");
|
| 129 |
if (campos.postcode != "" && campos.postcode != ".")
|
| 130 |
{
|
| 131 |
updateShippingType(campos.postcode);
|
| 132 |
+
console.log('1');
|
| 133 |
};
|
| 134 |
|
| 135 |
} else {
|
| 140 |
if (campos.postcode != "" && campos.postcode != ".")
|
| 141 |
{
|
| 142 |
updateShippingType(campos.postcode);
|
| 143 |
+
console.log('2');
|
| 144 |
};
|
| 145 |
}
|
| 146 |
},
|
| 183 |
jQuery.ajax({
|
| 184 |
type: "POST",
|
| 185 |
url: updateshippingmethodurl,
|
|
|
|
| 186 |
data: jQuery("#onestep_form").serialize(),
|
| 187 |
beforeSend: function(){
|
|
|
|
| 188 |
jQuery('.validation-advice').hide();
|
| 189 |
jQuery("input[name='shipping_method']").removeClass('validation-failed');
|
| 190 |
+
jQuery('#checkout-payment-method-load').html('<div class="update_payment"><p>Calculando valor do pagamento.</p><img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("images/opc-ajax-loader.gif")?>"></div>');
|
| 191 |
+
|
|
|
|
| 192 |
},
|
| 193 |
success: function(msg) {
|
|
|
|
|
|
|
| 194 |
jQuery('#checkout-review-table-wrapper').html(msg);
|
| 195 |
jQuery('#checkout-review-table-wrapper').find("script").each(function(i) {
|
| 196 |
eval(jQuery(this).text());
|
| 197 |
});
|
| 198 |
+
updatePaymentAssociated();
|
|
|
|
| 199 |
},
|
| 200 |
fail:function() {
|
| 201 |
updateShippingMethod();
|
| 213 |
jQuery.ajax({
|
| 214 |
type: "POST",
|
| 215 |
url: updateordermethodurl,
|
| 216 |
+
data: jQuery("#onestep_form").serialize(),
|
|
|
|
|
|
|
| 217 |
success: function(msg) {
|
| 218 |
var result = jQuery.parseJSON(msg);
|
| 219 |
if(result.erros == 1){
|
| 224 |
} else{
|
| 225 |
window.location.href = result.msg_success;
|
| 226 |
}
|
|
|
|
|
|
|
|
|
|
| 227 |
},
|
| 228 |
fail:function() {
|
| 229 |
location.reload();
|
| 232 |
|
| 233 |
},
|
| 234 |
})
|
|
|
|
|
|
|
| 235 |
};
|
| 236 |
|
| 237 |
updateShippingType = function(){
|
| 243 |
data:jQuery("#onestep_form").serialize(),
|
| 244 |
beforeSend: function(){
|
| 245 |
jQuery('#message-box').html('');
|
| 246 |
+
jQuery('#checkout-shipping-method-load').html('<div class="update_shipping"><p>Calculando Frete.</p><img class="Loading" alt="Loading..." src="<?php echo $this->getSkinUrl("images/opc-ajax-loader.gif")?>"></div>');
|
| 247 |
},
|
| 248 |
success: function(msg){
|
| 249 |
jQuery('#checkout-shipping-method-load').html(msg);
|
| 250 |
jQuery('#checkout-shipping-method-load').find("script").each(function(i) {
|
| 251 |
eval(jQuery(this).text());
|
| 252 |
});
|
| 253 |
+
shippingChange();
|
| 254 |
},
|
| 255 |
error: function(){
|
| 256 |
jQuery('#checkout-shipping-method-load').html("Não foi possível cotar o seu frete, por favor recarrege a página ou entre em contato com nossa loja.");
|
| 260 |
};
|
| 261 |
|
| 262 |
updateClear = function() {
|
|
|
|
| 263 |
jQuery.ajax({
|
| 264 |
async: false,
|
| 265 |
type: "POST",
|
| 303 |
jQuery.ajax({
|
| 304 |
url: updatepaymentmethodurl,
|
| 305 |
type: "POST",
|
|
|
|
| 306 |
data: jQuery("#onestep_form").serialize(),
|
| 307 |
success: function(msg) {
|
|
|
|
| 308 |
jQuery('#checkout-review-table-wrapper').html(msg);
|
|
|
|
| 309 |
jQuery('#checkout-review-table-wrapper').find("script").each(function(i) {
|
| 310 |
eval(jQuery(this).text());
|
| 311 |
});
|
| 312 |
},
|
| 313 |
});
|
|
|
|
| 314 |
};
|
| 315 |
|
| 316 |
updateCoupon = function() {
|
| 363 |
}
|
| 364 |
logined = function()
|
| 365 |
{
|
| 366 |
+
return <?php echo Mage::getSingleton('customer/session')->isLoggedIn() ?>;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 367 |
}
|
| 368 |
hasaddress = function(){
|
| 369 |
<?php if(count(Mage::getSingleton('customer/session')->getCustomer()->getAddresses())): ?>
|
| 449 |
|
| 450 |
}
|
| 451 |
|
| 452 |
+
shippingChange = function(){
|
| 453 |
+
jQuery("input[name='shipping_method']").on('change', function () {
|
| 454 |
+
updateShippingMethod();
|
| 455 |
+
});
|
| 456 |
+
}
|
| 457 |
|
| 458 |
inbtn = function(id){
|
| 459 |
removeElemento = "#up_"+id;
|
| 463 |
|
| 464 |
})(jQuery);
|
| 465 |
|
|
|
|
|
|
|
| 466 |
jQuery(document).ready(function(){
|
| 467 |
var payment = new Payment('co-payment-form', '<?php echo $this->getUrl("checkout/onepage/savePayment") ?>');
|
| 468 |
|
| 472 |
ChangeEvents();
|
| 473 |
Setmask();
|
| 474 |
updateClear();
|
| 475 |
+
shippingChange();
|
| 476 |
<?php if(!Mage::helper('onestepcheckout')->onlyProductDownloadable()):?>
|
| 477 |
jQuery('#moip_cc_number').focus(function() {
|
| 478 |
var selectShipping = jQuery("input[name='shipping_method']:checked").val();
|
| 481 |
}
|
| 482 |
});
|
| 483 |
<?php endif?>
|
|
|
|
|
|
|
|
|
|
| 484 |
});
|
| 485 |
|
| 486 |
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/page/footer.phtml
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
incluir selos de compra segura...
|
|
|
app/design/frontend/base/default/template/MOIP/onestepcheckout/page/single-header.phtml
CHANGED
|
@@ -32,13 +32,13 @@
|
|
| 32 |
<div class="container">
|
| 33 |
<div class="row">
|
| 34 |
<div class="header">
|
| 35 |
-
<div class="col-lg-3 col-md-3 col-xm-12">
|
| 36 |
|
| 37 |
<a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a>
|
| 38 |
|
| 39 |
|
| 40 |
</div>
|
| 41 |
-
<div class="col-lg-6 col-md-6 col-xm-12">
|
| 42 |
<h1 class="checkout-title-header">Pagamento</h1>
|
| 43 |
<?php if(Mage::getStoreConfig('onestepcheckout/layout/use_linha_suporte')): ?>
|
| 44 |
<?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/content_linha_suporte'));?>
|
| 32 |
<div class="container">
|
| 33 |
<div class="row">
|
| 34 |
<div class="header">
|
| 35 |
+
<div class="col-lg-3 col-md-3 col-xm-12 col-xs-12">
|
| 36 |
|
| 37 |
<a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a>
|
| 38 |
|
| 39 |
|
| 40 |
</div>
|
| 41 |
+
<div class="col-lg-6 col-md-6 col-xm-12 col-xs-12">
|
| 42 |
<h1 class="checkout-title-header">Pagamento</h1>
|
| 43 |
<?php if(Mage::getStoreConfig('onestepcheckout/layout/use_linha_suporte')): ?>
|
| 44 |
<?php echo $this->__(Mage::getStoreConfig('onestepcheckout/layout/content_linha_suporte'));?>
|
app/design/frontend/base/default/template/MOIP/product/view/discount.phtml
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
<?php if($this->getPercentual()): ?>
|
| 2 |
-
<div class="background double price-boleto"><span> ou </span></div>
|
| 3 |
<div class="line-boleto-text"><?php echo $this->__(' %s de desconto no boleto', (int)$this->getPercentual().'%') ?></div>
|
| 4 |
<div class="line-boleto-price"><?php echo $this->getNewPriceDiscount(); ?></div>
|
| 5 |
<?php endif ?>
|
| 1 |
+
<?php if($this->getPercentual() && $this->getNewPriceDiscount()): ?>
|
|
|
|
| 2 |
<div class="line-boleto-text"><?php echo $this->__(' %s de desconto no boleto', (int)$this->getPercentual().'%') ?></div>
|
| 3 |
<div class="line-boleto-price"><?php echo $this->getNewPriceDiscount(); ?></div>
|
| 4 |
<?php endif ?>
|
app/design/frontend/base/default/template/MOIP/transparente/SuccessDetails.phtml
DELETED
|
@@ -1,91 +0,0 @@
|
|
| 1 |
-
<?php $_order = $this->getOrder() ?>
|
| 2 |
-
<div class="container">
|
| 3 |
-
<div class="row">
|
| 4 |
-
|
| 5 |
-
<div class="col-sm-12 col-lg-5 grid12-5">
|
| 6 |
-
<div class="box">
|
| 7 |
-
<div class="box-title">
|
| 8 |
-
<h3>Número do Pedido</h3>
|
| 9 |
-
</div>
|
| 10 |
-
<div class="box-content">
|
| 11 |
-
<div class="order-id">#<?php echo $_order->getIncrementId() ?></div>
|
| 12 |
-
</div>
|
| 13 |
-
</div>
|
| 14 |
-
<?php if($_order->getShippingDescription()): ?>
|
| 15 |
-
<div class="box">
|
| 16 |
-
|
| 17 |
-
<div class="box-title">
|
| 18 |
-
<h3><?php echo $this->__('Endereço de Entrega') ?></h3>
|
| 19 |
-
</div>
|
| 20 |
-
<div class="box-content">
|
| 21 |
-
<address>
|
| 22 |
-
|
| 23 |
-
<?php echo $_order->getShippingAddress()->format('html'); ?>
|
| 24 |
-
|
| 25 |
-
</address>
|
| 26 |
-
</div>
|
| 27 |
-
</div>
|
| 28 |
-
<div class="box">
|
| 29 |
-
|
| 30 |
-
<div class="box-title">
|
| 31 |
-
<h3><?php echo $this->__('Dados de Entrega') ?></h3>
|
| 32 |
-
</div>
|
| 33 |
-
<div class="box-content">
|
| 34 |
-
<p>
|
| 35 |
-
Seu pedido será enviado por:
|
| 36 |
-
<div> <?php echo $_order->getShippingDescription(); ?></div>
|
| 37 |
-
</p>
|
| 38 |
-
</div>
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
</div>
|
| 42 |
-
<?php endif; ?>
|
| 43 |
-
</div>
|
| 44 |
-
<div class="col-sm-12 col-lg-7 grid12-7">
|
| 45 |
-
<div class="box">
|
| 46 |
-
|
| 47 |
-
<div class="box-title">
|
| 48 |
-
<h3>Itens</h3>
|
| 49 |
-
</div>
|
| 50 |
-
<div class="box-content">
|
| 51 |
-
<table class="data-table cart-table-items" id="checkout-review-table">
|
| 52 |
-
<col />
|
| 53 |
-
<col width="25%" />
|
| 54 |
-
<col width="1" />
|
| 55 |
-
<col width="1" />
|
| 56 |
-
<thead>
|
| 57 |
-
<tr>
|
| 58 |
-
<th><?php echo $this->__('Product Name') ?></th>
|
| 59 |
-
<th class="a-center"><?php echo $this->__('Qty') ?></th>
|
| 60 |
-
<th class="a-right"><?php echo $this->__('Subtotal') ?></th>
|
| 61 |
-
</tr>
|
| 62 |
-
</thead>
|
| 63 |
-
<tfoot>
|
| 64 |
-
<?php echo $this->getChildHtml('order_totals') ?>
|
| 65 |
-
</tfoot>
|
| 66 |
-
<?php $_items = $_order->getItemsCollection(); ?>
|
| 67 |
-
<?php $_index = 0; ?>
|
| 68 |
-
<?php $_count = $_items->count(); ?>
|
| 69 |
-
<?php foreach ($_items as $_item): ?>
|
| 70 |
-
<?php if ($_item->getParentItem()) continue; ?>
|
| 71 |
-
<tbody>
|
| 72 |
-
<?php echo $this->getItemHtml($_item) ?>
|
| 73 |
-
</tbody>
|
| 74 |
-
<?php endforeach; ?>
|
| 75 |
-
</table>
|
| 76 |
-
<script type="text/javascript">decorateTable('checkout-review-table', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
|
| 77 |
-
</div>
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
</div>
|
| 81 |
-
</div>
|
| 82 |
-
</div>
|
| 83 |
-
|
| 84 |
-
</div>
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
<div class="goto-home">
|
| 90 |
-
<?php echo Mage::getStoreConfig("moipall/google/outros_funil"); ?>
|
| 91 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/checkout/success/boleto.phtml
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
<?php $boleto = Mage::getSingleton('checkout/session')->getMoipBoletoLink() ?>
|
| 4 |
-
|
| 5 |
-
<?php if($boleto): ?>
|
| 6 |
-
|
| 7 |
-
<?php $url_boleto = $boleto.'/print'; ?>
|
| 8 |
-
|
| 9 |
-
<div class="method-type-payment grid12-12">
|
| 10 |
-
<h3><?php echo $this->__('Quase lá! Agora só falta pagar o boleto.') ?></h3>
|
| 11 |
-
</div>
|
| 12 |
-
<div class="method-type-action grid12-12">
|
| 13 |
-
<div class="grid12-6">
|
| 14 |
-
<h3><?php echo $this->__('Código de Barra') ?></h3>
|
| 15 |
-
<div>
|
| 16 |
-
|
| 17 |
-
<div class="input-box">
|
| 18 |
-
<input type="text" name="codigo-barra" id="bar-code" value="" title="Código de Barra" class="input-text required-entry">
|
| 19 |
-
</div>
|
| 20 |
-
</div>
|
| 21 |
-
</div>
|
| 22 |
-
<div class="grid12-6">
|
| 23 |
-
<h3><?php echo $this->__('Visualizar Boleto') ?></h3>
|
| 24 |
-
<button class="button btn-checkout" data-toggle="modal" data-target="#largeModal" ><span><span><i class="fa fa-print"></i> Visualizar Boleto</span></span></button>
|
| 25 |
-
</div>
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
</div>
|
| 30 |
-
|
| 31 |
-
<script type="text/javascript">
|
| 32 |
-
//<![CDATA[
|
| 33 |
-
jQuery('body').append('<div class="modal fade animated" id="largeModal" tabindex="-1" role="dialog" aria-labelledby="largeModal" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="myModalLabel">Boleto Bancário</h4> </div> <div class="modal-body"> <iframe width="800" onload="this.height=screen.height;" scrolling= "no" frameBorder="0" allowtransparency="true" src="<?php echo $url_boleto ?>"> </iframe> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button> </div> </div> </div> </div>');
|
| 34 |
-
jQuery('#largeModal').modal('toggle');
|
| 35 |
-
//]]>
|
| 36 |
-
</script>
|
| 37 |
-
|
| 38 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/checkout/success/details.phtml
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php $_order = $this->getOrder() ?>
|
| 2 |
+
<?php if($_order): ?>
|
| 3 |
+
<div class="row">
|
| 4 |
+
<div class="col-xm-12 col-sm-12 col-md-5 col-lg-5 grid12-5">
|
| 5 |
+
<?php if($_order->getShippingDescription()): ?>
|
| 6 |
+
<div class="box">
|
| 7 |
+
<div class="box">
|
| 8 |
+
|
| 9 |
+
<div class="box-title">
|
| 10 |
+
<h3><?php echo $this->__('Endereço de Entrega') ?></h3>
|
| 11 |
+
</div>
|
| 12 |
+
<div class="box-content">
|
| 13 |
+
<address>
|
| 14 |
+
<?php echo $_order->getShippingAddress()->format('html'); ?>
|
| 15 |
+
</address>
|
| 16 |
+
</div>
|
| 17 |
+
</div>
|
| 18 |
+
<div class="box">
|
| 19 |
+
<div class="box-title">
|
| 20 |
+
<h3><?php echo $this->__('Dados de Entrega') ?></h3>
|
| 21 |
+
</div>
|
| 22 |
+
<div class="box-content">
|
| 23 |
+
<p>
|
| 24 |
+
Seu pedido será enviado por:
|
| 25 |
+
<div> <?php echo $_order->getShippingDescription(); ?></div>
|
| 26 |
+
</p>
|
| 27 |
+
</div>
|
| 28 |
+
</div>
|
| 29 |
+
</div>
|
| 30 |
+
<?php endif; ?>
|
| 31 |
+
</div>
|
| 32 |
+
<div class="col-xm-12 col-sm-12 col-md-7 col-lg-7 grid12-7">
|
| 33 |
+
<div class="box">
|
| 34 |
+
<div class="box-title">
|
| 35 |
+
<h3>Itens</h3>
|
| 36 |
+
</div>
|
| 37 |
+
<div class="box-content">
|
| 38 |
+
<table class="data-table cart-table-items" id="checkout-review-table">
|
| 39 |
+
|
| 40 |
+
<thead>
|
| 41 |
+
<tr>
|
| 42 |
+
<th><?php echo $this->__('Product Name') ?></th>
|
| 43 |
+
<th class="a-center"><?php echo $this->__('Qty') ?></th>
|
| 44 |
+
<th class="a-right"><?php echo $this->__('Subtotal') ?></th>
|
| 45 |
+
</tr>
|
| 46 |
+
</thead>
|
| 47 |
+
<tfoot>
|
| 48 |
+
<?php echo $this->getChildHtml('order_totals') ?>
|
| 49 |
+
</tfoot>
|
| 50 |
+
<?php $_items = $_order->getItemsCollection(); ?>
|
| 51 |
+
<?php $_index = 0; ?>
|
| 52 |
+
<?php $_count = $_items->count(); ?>
|
| 53 |
+
<?php foreach ($_items as $_item): ?>
|
| 54 |
+
<?php if ($_item->getParentItem()) continue; ?>
|
| 55 |
+
<tbody>
|
| 56 |
+
<?php echo $this->getItemHtml($_item) ?>
|
| 57 |
+
</tbody>
|
| 58 |
+
<?php endforeach; ?>
|
| 59 |
+
</table>
|
| 60 |
+
|
| 61 |
+
</div>
|
| 62 |
+
</div>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
<script type="text/javascript">
|
| 66 |
+
decorateTable('checkout-review-table', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']});
|
| 67 |
+
</script>
|
| 68 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/MOIP/transparente/{redirect → checkout/success/method}/boleto.phtml
RENAMED
|
@@ -1,10 +1,8 @@
|
|
| 1 |
-
<?php $this->setDataMoip(); ?>
|
| 2 |
-
|
| 3 |
<?php $url_boleto = $this->getBoletoLinks().'/print'; ?>
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
<h3><?php echo $this->__('Quase lá! Agora só falta pagar o boleto.') ?></h3>
|
| 7 |
</div>
|
|
|
|
| 8 |
<div class="method-type-action grid12-12">
|
| 9 |
<div class="grid12-6">
|
| 10 |
<h3><?php echo $this->__('Código de Barra') ?></h3>
|
|
|
|
|
|
|
| 1 |
<?php $url_boleto = $this->getBoletoLinks().'/print'; ?>
|
| 2 |
+
<div class="page-title">
|
| 3 |
+
<h1><?php echo $this->__('Quase lá! Agora só falta pagar o boleto.') ?></h1>
|
|
|
|
| 4 |
</div>
|
| 5 |
+
|
| 6 |
<div class="method-type-action grid12-12">
|
| 7 |
<div class="grid12-6">
|
| 8 |
<h3><?php echo $this->__('Código de Barra') ?></h3>
|
app/design/frontend/base/default/template/MOIP/transparente/checkout/success/method/boletorecorrente.phtml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php $boleto = Mage::getSingleton('checkout/session')->getMoipBoletoLink() ?>
|
| 2 |
+
<?php if($boleto): ?>
|
| 3 |
+
<?php echo ($boleto) ?>
|
| 4 |
+
<?php $url_boleto = $boleto.'/print'; ?>
|
| 5 |
+
<div class="method-type-payment grid12-12">
|
| 6 |
+
<h3><?php echo $this->__('Quase lá! Agora só falta pagar o boleto.') ?></h3>
|
| 7 |
+
</div>
|
| 8 |
+
<div class="method-type-action grid12-12">
|
| 9 |
+
<!-- <div class="grid12-6">
|
| 10 |
+
<h3><?php #echo $this->__('Código de Barra') ?></h3>
|
| 11 |
+
<div>
|
| 12 |
+
|
| 13 |
+
<div class="input-box">
|
| 14 |
+
<input type="text" name="codigo-barra" id="bar-code" value="" title="Código de Barra" class="input-text required-entry">
|
| 15 |
+
</div>
|
| 16 |
+
</div>
|
| 17 |
+
</div> -->
|
| 18 |
+
<div class="grid12-12">
|
| 19 |
+
<h3><?php echo $this->__('Visualizar Boleto') ?></h3>
|
| 20 |
+
<button class="button btn-checkout" data-toggle="modal" data-target="#largeModal" ><span><span><i class="fa fa-print"></i> Visualizar Boleto</span></span></button>
|
| 21 |
+
</div>
|
| 22 |
+
</div>
|
| 23 |
+
|
| 24 |
+
<script type="text/javascript">
|
| 25 |
+
//<![CDATA[
|
| 26 |
+
jQuery('body').append('<div class="modal fade animated" id="largeModal" tabindex="-1" role="dialog" aria-labelledby="largeModal" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="myModalLabel">Boleto Bancário</h4> </div> <div class="modal-body"> <iframe width="800" onload="this.height=screen.height;" scrolling= "no" frameBorder="0" allowtransparency="true" src="<?php echo $url_boleto ?>"> </iframe> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button> </div> </div> </div> </div>');
|
| 27 |
+
jQuery('#largeModal').modal('toggle');
|
| 28 |
+
//]]>
|
| 29 |
+
</script>
|
| 30 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/MOIP/transparente/{redirect → checkout/success/method}/cartao.phtml
RENAMED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
-
<?php $this->setDataMoip(); ?>
|
| 2 |
<?php $status = $this->getCardStatus(); ?>
|
| 3 |
|
| 4 |
|
| 5 |
<?php if($status == "CANCELLED"): ?>
|
| 6 |
-
<div class="
|
| 7 |
-
|
| 8 |
</div>
|
|
|
|
| 9 |
<div class="method-type-action grid12-12">
|
| 10 |
<ul class="messages"><li class="error-msg"><ul><li><span><?php echo $this->__('O pagamento não pode ser realizado com sucesso por favor escolha outro método de pagamento.') ?></span></li></ul></li></ul>
|
| 11 |
<p>
|
|
@@ -14,29 +14,29 @@
|
|
| 14 |
</div>
|
| 15 |
|
| 16 |
<?php elseif($status == "IN_ANALYSIS"): ?>
|
| 17 |
-
<div class="
|
| 18 |
-
|
| 19 |
-
</
|
| 20 |
<div class="method-type-action grid12-12">
|
| 21 |
<p><?php echo $this->__('Seu pagamento foi encaminhado para a análise, por favor aguarde a atualização automática do pedido.') ?></p>
|
| 22 |
</div>
|
| 23 |
<?php elseif($status == "AUTHORIZED"): ?>
|
| 24 |
-
<div class="
|
| 25 |
-
|
| 26 |
-
</
|
| 27 |
<div class="method-type-action grid12-12">
|
| 28 |
<p><?php echo $this->__('Seu pagamento foi aprovado.') ?></p>
|
| 29 |
</div>
|
| 30 |
<?php elseif($status == "WAITING"): ?>
|
| 31 |
-
<div class="
|
| 32 |
-
|
| 33 |
-
</
|
| 34 |
<div class="method-type-action grid12-12">
|
| 35 |
<p><?php echo $this->__('Seu pagamento foi encaminhado para a análise, por favor aguarde a atualização automática do pedido.') ?></p>
|
| 36 |
</div>
|
| 37 |
<?php else: ?>
|
| 38 |
<div class="method-type-payment grid12-12">
|
| 39 |
-
<
|
| 40 |
</div>
|
| 41 |
<div class="method-type-action grid12-12">
|
| 42 |
<ul class="messages"><li class="error-msg"><ul><li><span><?php echo $this->__('Não conseguimos identificar o status de seu pagamento, por favor entre em contato com nossa equipe de atendimento antes de realizar uma nova transação.') ?></span></li></ul></li></ul>
|
|
|
|
| 1 |
<?php $status = $this->getCardStatus(); ?>
|
| 2 |
|
| 3 |
|
| 4 |
<?php if($status == "CANCELLED"): ?>
|
| 5 |
+
<div class="page-title">
|
| 6 |
+
<h1><?php echo $this->__('Pagamento Cancelado') ?></h1>
|
| 7 |
</div>
|
| 8 |
+
|
| 9 |
<div class="method-type-action grid12-12">
|
| 10 |
<ul class="messages"><li class="error-msg"><ul><li><span><?php echo $this->__('O pagamento não pode ser realizado com sucesso por favor escolha outro método de pagamento.') ?></span></li></ul></li></ul>
|
| 11 |
<p>
|
| 14 |
</div>
|
| 15 |
|
| 16 |
<?php elseif($status == "IN_ANALYSIS"): ?>
|
| 17 |
+
<div class="page-title">
|
| 18 |
+
<h1><?php echo $this->__('Aguardando confirmação de pagamento') ?></h1>
|
| 19 |
+
</di>
|
| 20 |
<div class="method-type-action grid12-12">
|
| 21 |
<p><?php echo $this->__('Seu pagamento foi encaminhado para a análise, por favor aguarde a atualização automática do pedido.') ?></p>
|
| 22 |
</div>
|
| 23 |
<?php elseif($status == "AUTHORIZED"): ?>
|
| 24 |
+
<div class="page-title">
|
| 25 |
+
<h1><?php echo $this->__('Pagamento Aprovado') ?></h1>
|
| 26 |
+
</di>
|
| 27 |
<div class="method-type-action grid12-12">
|
| 28 |
<p><?php echo $this->__('Seu pagamento foi aprovado.') ?></p>
|
| 29 |
</div>
|
| 30 |
<?php elseif($status == "WAITING"): ?>
|
| 31 |
+
<div class="page-title">
|
| 32 |
+
<h1><?php echo $this->__('Aguardando confirmação de pagamento') ?></h1>
|
| 33 |
+
</di>
|
| 34 |
<div class="method-type-action grid12-12">
|
| 35 |
<p><?php echo $this->__('Seu pagamento foi encaminhado para a análise, por favor aguarde a atualização automática do pedido.') ?></p>
|
| 36 |
</div>
|
| 37 |
<?php else: ?>
|
| 38 |
<div class="method-type-payment grid12-12">
|
| 39 |
+
<h1><?php echo $this->__('Desculpe, houve um erro em nosso sistema') ?></h1>
|
| 40 |
</div>
|
| 41 |
<div class="method-type-action grid12-12">
|
| 42 |
<ul class="messages"><li class="error-msg"><ul><li><span><?php echo $this->__('Não conseguimos identificar o status de seu pagamento, por favor entre em contato com nossa equipe de atendimento antes de realizar uma nova transação.') ?></span></li></ul></li></ul>
|
app/design/frontend/base/default/template/MOIP/transparente/{redirect → checkout/success/method}/transferencia.phtml
RENAMED
|
@@ -1,8 +1,7 @@
|
|
| 1 |
-
<?php $this->setDataMoip(); ?>
|
| 2 |
<?php $href = $this->getDebitLinks(); ?>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
<div class="method-type-action grid12-12">
|
| 7 |
<p>Você será redirecionado para o seu banco em <strong><span id="count">10</span>s</strong>, para concluir o pagamento</p>
|
| 8 |
<button type="button" title="Finalizar compra" class="button btn-checkout" onclick="window.location='<?php echo $href ?>'"><span><span>Ir ao Banco <i class="fa fa-arrow-right"></i></span></span></button>
|
|
@@ -13,7 +12,7 @@
|
|
| 13 |
var counter = 10;
|
| 14 |
setInterval(function() {
|
| 15 |
counter--;
|
| 16 |
-
if(counter
|
| 17 |
window.location = '<?php echo $href ?>';
|
| 18 |
} else {
|
| 19 |
document.getElementById("count").innerHTML = counter;
|
|
|
|
| 1 |
<?php $href = $this->getDebitLinks(); ?>
|
| 2 |
+
<div class="page-title">
|
| 3 |
+
<h1><?php echo $this->__('Quase lá! Por favor conclua a transação em seu banco.') ?></h1>
|
| 4 |
+
</di>
|
| 5 |
<div class="method-type-action grid12-12">
|
| 6 |
<p>Você será redirecionado para o seu banco em <strong><span id="count">10</span>s</strong>, para concluir o pagamento</p>
|
| 7 |
<button type="button" title="Finalizar compra" class="button btn-checkout" onclick="window.location='<?php echo $href ?>'"><span><span>Ir ao Banco <i class="fa fa-arrow-right"></i></span></span></button>
|
| 12 |
var counter = 10;
|
| 13 |
setInterval(function() {
|
| 14 |
counter--;
|
| 15 |
+
if(counter == 0) {
|
| 16 |
window.location = '<?php echo $href ?>';
|
| 17 |
} else {
|
| 18 |
document.getElementById("count").innerHTML = counter;
|
app/design/frontend/base/default/template/MOIP/transparente/checkout/success/moip.phtml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<div class="row">
|
| 2 |
+
<?php echo $this->getChildTemplate(); ?>
|
| 3 |
+
</div>
|
| 4 |
+
<div class="row">
|
| 5 |
+
<?php echo $this->getChildHtml('details'); ?>
|
| 6 |
+
</div>
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
app/design/frontend/base/default/template/MOIP/transparente/checkout/success/success.phtml
DELETED
|
@@ -1,67 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Magento
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/afl-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 license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
-
*
|
| 15 |
-
* DISCLAIMER
|
| 16 |
-
*
|
| 17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
| 18 |
-
* versions in the future. If you wish to customize Magento for your
|
| 19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
-
*
|
| 21 |
-
* @category design
|
| 22 |
-
* @package base_default
|
| 23 |
-
* @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
|
| 24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
-
*/
|
| 26 |
-
?>
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
<div class="page-title">
|
| 30 |
-
<h1><?php echo $this->__('Your order has been received.') ?></h1>
|
| 31 |
-
</div>
|
| 32 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
| 33 |
-
<h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
|
| 34 |
-
|
| 35 |
-
<?php if ($this->getOrderId()):?>
|
| 36 |
-
<?php if ($this->getCanViewOrder()) :?>
|
| 37 |
-
<p><?php echo $this->__('Your order # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p>
|
| 38 |
-
<?php else :?>
|
| 39 |
-
<p><?php echo $this->__('Your order # is: %s.', $this->escapeHtml($this->getOrderId())) ?></p>
|
| 40 |
-
<?php endif;?>
|
| 41 |
-
<p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p>
|
| 42 |
-
<?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) :?>
|
| 43 |
-
<p>
|
| 44 |
-
<?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?>
|
| 45 |
-
<?php echo $this->getChildHtml() ?>
|
| 46 |
-
</p>
|
| 47 |
-
<?php endif;?>
|
| 48 |
-
<?php endif;?>
|
| 49 |
-
|
| 50 |
-
<?php if ($this->getAgreementRefId()): ?>
|
| 51 |
-
<p><?php echo $this->__('Your billing agreement # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getAgreementUrl()), $this->escapeHtml($this->getAgreementRefId())))?></p>
|
| 52 |
-
<?php endif;?>
|
| 53 |
-
|
| 54 |
-
<?php if ($profiles = $this->getRecurringProfiles()):?>
|
| 55 |
-
<p><?php echo $this->__('Your recurring payment profiles:'); ?></p>
|
| 56 |
-
<ul class="disc">
|
| 57 |
-
<?php foreach($profiles as $profile):?>
|
| 58 |
-
<?php $profileIdHtml = ($this->getCanViewProfiles() ? sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getProfileUrl($profile)), $this->escapeHtml($this->getObjectData($profile, 'reference_id'))) : $this->escapeHtml($this->getObjectData($profile, 'reference_id')));?>
|
| 59 |
-
<li><?php echo $this->__('Payment profile # %s: "%s".', $profileIdHtml, $this->escapeHtml($this->getObjectData($profile, 'schedule_description')))?></li>
|
| 60 |
-
<?php endforeach;?>
|
| 61 |
-
</ul>
|
| 62 |
-
<?php endif;?>
|
| 63 |
-
<?php echo $this->getChildHtml('success_order_boleto'); ?>
|
| 64 |
-
<div class="buttons-set">
|
| 65 |
-
<button type="button" class="button" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
|
| 66 |
-
</div>
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/emptyupdate.phtml
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 1 |
-
<?php if($this->getRequest()->getParams()){
|
| 2 |
-
$post = $this->getRequest()->getPost();
|
| 3 |
-
$transparente_id = $post['transparente_id'];
|
| 4 |
-
$pgtoArray = array();
|
| 5 |
-
$pgtoArray['forma_pagamento'] = $post['forma_de_pagamento'];
|
| 6 |
-
$pgtoArray['credito_instituicao'] = $post['bandeira'];
|
| 7 |
-
$pgtoArray['credito_numero'] = $post['Numero'];
|
| 8 |
-
$pgtoArray['credito_expiracao_mes'] = $post['Expiracao_mes'];
|
| 9 |
-
$pgtoArray['credito_expiracao_ano'] = $post['Expiracao_ano'];
|
| 10 |
-
$pgtoArray['credito_codigo_seguranca'] = $post['CodigoSeguranca'];
|
| 11 |
-
$pgtoArray['credito_parcelamento'] = $post['parcelas'];
|
| 12 |
-
$pgtoArray['credito_portador_nome'] = $post['Portador'];
|
| 13 |
-
$pgtoArray["vcmentoboleto"] = "3";
|
| 14 |
-
$cpf = $post['CPF'];
|
| 15 |
-
$pgtoArray['credito_portador_cpf'] = preg_replace("/[^0-9]/", "", $cpf);
|
| 16 |
-
$pgtoArray['credito_portador_DDD'] = $this->getNumberOrDDD($post['Telefone'], true);
|
| 17 |
-
$pgtoArray['credito_portador_telefone'] = $this->getNumberOrDDD($post['Telefone']);
|
| 18 |
-
$pgtoArray['credito_portador_nascimento'] = date('Y-m-d', strtotime($post['DataNascimento']));
|
| 19 |
-
Mage::unregister('result_decode');
|
| 20 |
-
$api = Mage::getModel('transparente/api');
|
| 21 |
-
$pagar = $api->getRePagar($transparente_id, $pgtoArray);
|
| 22 |
-
Mage::Register('result_decode', $pagar);
|
| 23 |
-
$refez = json_decode($pagar);
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
echo $refez; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/horizontal_form.phtml
DELETED
|
@@ -1,340 +0,0 @@
|
|
| 1 |
-
<?php $_code=$this->getMethodCode() ?>
|
| 2 |
-
<ul id="payment_form_<?php echo $_code ?>" style="display:none">
|
| 3 |
-
|
| 4 |
-
<ul class="nav nav-tabs nav-pills" id="moipPagamentos">
|
| 5 |
-
<?php if($this->mostraCartao()): ?>
|
| 6 |
-
<li><a href="#CartaoCredito"><span class="icon-tab-moip"><img alt="Cartão de Crédito" src="<?php echo $this->getCartaoIcon(); ?>"></span> Cartão</a></li>
|
| 7 |
-
<?php endif; ?>
|
| 8 |
-
<?php if($this->mostraBoleto()): ?>
|
| 9 |
-
<li><a href="#BoletoBancario"><span class="icon-tab-moip"><img alt="Boleto Bancário" src="<?php echo $this->getBoletoIcon(); ?>"></span> Boleto</a></li>
|
| 10 |
-
<?php endif; ?>
|
| 11 |
-
<?php if($this->mostraTransferencia()): ?>
|
| 12 |
-
<li><a href="#DebitoBancario"><span class="icon-tab-moip"><img alt="Transferência Bancária" id="imageboleto" src="<?php echo $this->getTransferenciaIcon(); ?>"></span> Transf.</a></li>
|
| 13 |
-
<?php endif; ?>
|
| 14 |
-
</ul>
|
| 15 |
-
|
| 16 |
-
<div class="tab-content">
|
| 17 |
-
<input type="hidden" value="CartaoCredito" id="forma_pagamento_moip" name="payment[<?php echo $_code ?>_forma_pagamento]" title="Selecione Meio de Pagamento">
|
| 18 |
-
<div class="tab-pane" id="CartaoCredito" style="display:none;">
|
| 19 |
-
<li>
|
| 20 |
-
|
| 21 |
-
<div class="no-display">
|
| 22 |
-
<input class="<?php echo $_code ?>_cc_type" id="<?php echo $_code ?>_cc_type" type="hidden" name="payment[<?php echo $_code ?>_cc_type]" />
|
| 23 |
-
</div>
|
| 24 |
-
</li>
|
| 25 |
-
|
| 26 |
-
<li class="fields card-number">
|
| 27 |
-
<label for="<?php echo $_code ?>_cc_number" class="required"><em>*</em><?php echo $this->__('Número do Cartão') ?></label>
|
| 28 |
-
<div class="input-box">
|
| 29 |
-
<input type="text" id="moip_cc_number" pattern="\d*" name="payment[<?php echo $_code ?>_cc_number]" data-encrypted-input="fundingInstrument[creditCard][number]" title="Número do seu Cartão de Crédito" class="input-text validate-cc-number validate-cc-type" placeholder="Número do Cartão" value="">
|
| 30 |
-
</div>
|
| 31 |
-
</li>
|
| 32 |
-
|
| 33 |
-
<li class="fields card-cvv">
|
| 34 |
-
<label for="<?php echo $_code ?>_cc_cid" class="required"><em>*</em><?php echo $this->__('Cod. de Segurança') ?></label>
|
| 35 |
-
<div class="input-box">
|
| 36 |
-
<div class="v-fix">
|
| 37 |
-
<input type="text" pattern="\d*" name="payment[<?php echo $_code ?>_cc_cid]" data-encrypted-input="fundingInstrument[creditCard][cvc]" title="Código de Seguranção do Seu Cartão" class="input-text cvv required-entry" id="<?php echo $_code ?>_cc_cid" placeholder="CVV" value="">
|
| 38 |
-
</div>
|
| 39 |
-
|
| 40 |
-
</div>
|
| 41 |
-
</li>
|
| 42 |
-
<li class="wide">
|
| 43 |
-
<ul id="<?php echo $_code ?>_cc_type">
|
| 44 |
-
<li class="VI">Visa</li>
|
| 45 |
-
<li class="MC">Mastercard</li>
|
| 46 |
-
<li class="AE">American Express</li>
|
| 47 |
-
<li class="DI ">Dinners</li>
|
| 48 |
-
<li class="EO">Elo</li>
|
| 49 |
-
</ul>
|
| 50 |
-
</li>
|
| 51 |
-
<li class="wide">
|
| 52 |
-
<label for="<?php echo $_code ?>_expiration" class="required"><em>*</em><?php echo $this->__('Expiração') ?></label>
|
| 53 |
-
<div class="input-box">
|
| 54 |
-
<div class="v-fix">
|
| 55 |
-
<select name="payment[<?php echo $_code ?>_cc_exp_month]" id="credito_expiracao_mes" class="validate-select" title="Mês de Vencimento do seu Cartão" data-input="fundingInstrument[creditCard][expirationMonth]">
|
| 56 |
-
<option value="">Mês</option>
|
| 57 |
-
<option value="01">01 - Janeiro</option>
|
| 58 |
-
<option value="02">02 - Fevereiro</option>
|
| 59 |
-
<option value="03">03 - Março</option>
|
| 60 |
-
<option value="04">04 - Abril</option>
|
| 61 |
-
<option value="05">05 - Maio</option>
|
| 62 |
-
<option value="06">06 - Junho</option>
|
| 63 |
-
<option value="07">07 - Julho</option>
|
| 64 |
-
<option value="08">08 - Agosto</option>
|
| 65 |
-
<option value="09">09 - Setembro</option>
|
| 66 |
-
<option value="10">10 - Outubro</option>
|
| 67 |
-
<option value="11">11 - Novembro</option>
|
| 68 |
-
<option value="12">12 - Dezembro</option>
|
| 69 |
-
</select>
|
| 70 |
-
</div>
|
| 71 |
-
<div class="v-fix">
|
| 72 |
-
<select name="payment[<?php echo $_code ?>_cc_exp_year]" id="credito_expiracao_ano" class="validate-select" title="Ano de Vencimento do seu Cartão" data-input="fundingInstrument[creditCard][expirationYear]">
|
| 73 |
-
<option value="">Ano</option>
|
| 74 |
-
|
| 75 |
-
<option value="2015">15</option>
|
| 76 |
-
<option value="2016">16</option>
|
| 77 |
-
<option value="2017">17</option>
|
| 78 |
-
<option value="2018">18</option>
|
| 79 |
-
<option value="2019">19</option>
|
| 80 |
-
<option value="2020">20</option>
|
| 81 |
-
<option value="2021">21</option>
|
| 82 |
-
<option value="2022">22</option>
|
| 83 |
-
<option value="2023">23</option>
|
| 84 |
-
<option value="2024">24</option>
|
| 85 |
-
<option value="2025">25</option>
|
| 86 |
-
<option value="2026">26</option>
|
| 87 |
-
<option value="2027">27</option>
|
| 88 |
-
<option value="2028">28</option>
|
| 89 |
-
<option value="2029">29</option>
|
| 90 |
-
<option value="2030">30</option>
|
| 91 |
-
</select>
|
| 92 |
-
</div>
|
| 93 |
-
</div>
|
| 94 |
-
</li>
|
| 95 |
-
<li class="wide">
|
| 96 |
-
<label for="<?php echo $_code ?>_cc_installment_count" class="required"><em>*</em><?php echo $this->__('Parcelas') ?></label>
|
| 97 |
-
<div class="input-box">
|
| 98 |
-
<select name="payment[<?php echo $_code ?>_cc_installment_count]" data-input="installmentCount" id="credito_parcelamento" class="validate-select" title="Número de Parcelas de sua Compra" data-input="fundingInstrument[creditCard][expirationYear]">
|
| 99 |
-
<option select>Selecione as parcelas</option>
|
| 100 |
-
<?php $parcelas = $this->getParcelamento('parcelas'); ?>
|
| 101 |
-
<?php foreach ( $parcelas as $key => $value) { ?>
|
| 102 |
-
<?php echo $parcelas[$key]; ?>
|
| 103 |
-
<?php } ?>
|
| 104 |
-
</select>
|
| 105 |
-
</div>
|
| 106 |
-
</li>
|
| 107 |
-
|
| 108 |
-
<li class="wide card-port">
|
| 109 |
-
<label for="<?php echo $_code ?>_cc_fullname" class="required"><em>*</em><?php echo $this->__('Nome do Titular Cartão') ?></label>
|
| 110 |
-
<div class="input-box">
|
| 111 |
-
<input type="text" name="payment[<?php echo $_code ?>_cc_owner]" value="<?php echo $this->getDateCard('name') ?>" class="input-text required-entry" title="Nome Impresso em seu Cartão" id="credito_portador_nome" placeholder="Nome Impresso no Cartão" data-input="fundingInstrument[creditCard][holder][fullname]">
|
| 112 |
-
</div>
|
| 113 |
-
</li>
|
| 114 |
-
<li class="wide card-port">
|
| 115 |
-
<label for="<?php echo $_code ?>_cc_taxDocument" class="required"><em>*</em><?php echo $this->__('CPF do Titular do Cartão') ?></label>
|
| 116 |
-
<div class="input-box">
|
| 117 |
-
<input type="text" name="payment[<?php echo $_code ?>_cc_taxdocument]" value="<?php echo $this->getDateCard('taxvat') ?>" class="input-text required-entry" title="CPF do Titular de seu Cartão" id="credito_portador_cpf" placeholder="CPF do Titular do Cartão" data-input="fundingInstrument[creditCard][holder][taxDocument][number]">
|
| 118 |
-
</div>
|
| 119 |
-
</li>
|
| 120 |
-
<li class="wide card-port">
|
| 121 |
-
<label for="<?php echo $_code ?>_cc_Phone" class="required"><em>*</em><?php echo $this->__('Telefone do Titular Cartão') ?></label>
|
| 122 |
-
<div class="input-box">
|
| 123 |
-
<input type="hidden" name="payment[<?php echo $_code ?>_cc_PhoneRegion]" value="55" id="credito_portador_telefone" title="Telefone do Titular do Cartão" class="input-text required-entry" placeholder="Telefone de Contato" data-input="fundingInstrument[creditCard][holder][phone][countryCode]">
|
| 124 |
-
<div class="v-fix">
|
| 125 |
-
( <input type="text" pattern="\d*" name="payment[<?php echo $_code ?>_cc_phone_code]" value="<?php echo $this->getDateCard('telephone-ddd') ?>" id="credito_portador_telefone" title="Telefone do Titular do Cartão" class="input-text ddd required-entry" placeholder="Telefone de Contato" data-input="fundingInstrument[creditCard][holder][phone][areaCode]"> )
|
| 126 |
-
</div>
|
| 127 |
-
<div class="v-fix">
|
| 128 |
-
<input type="text" pattern="\d*" name="payment[<?php echo $_code ?>_cc_phone_number]" value="<?php echo $this->getDateCard('telephone-number') ?>" d="credito_portador_telefone" title="Telefone do Titular do Cartão" class="input-text telefone required-entry" placeholder="Telefone de Contato" data-input="fundingInstrument[creditCard][holder][phone][number]">
|
| 129 |
-
</div>
|
| 130 |
-
</div>
|
| 131 |
-
</li>
|
| 132 |
-
<li class="wide card-port">
|
| 133 |
-
<label for="<?php echo $_code ?>_cc_birthdate" class="required"><em>*</em><?php echo $this->__('Data de Nascimento Titular do Cartão') ?></label>
|
| 134 |
-
<div class="input-box">
|
| 135 |
-
<div class="v-fix">
|
| 136 |
-
<select name="payment[<?php echo $_code ?>_cc_owner_exp_day]" class="validate-select owner_day" title="Ano de Nacimento do Titular do Catão" data-input="fundingInstrument[creditCard][holder][birthdateDay]">
|
| 137 |
-
<option value="<?php echo $this->getDateCard('dob-day') ?>" select><?php echo ($this->getDateCard('dob-day') ? $this->getDateCard('dob-day') : "Dia" )?></option>
|
| 138 |
-
<option value="01">01</option>
|
| 139 |
-
<option value="02">02</option>
|
| 140 |
-
<option value="03">03</option>
|
| 141 |
-
<option value="04">04</option>
|
| 142 |
-
<option value="05">05</option>
|
| 143 |
-
<option value="06">06</option>
|
| 144 |
-
<option value="07">07</option>
|
| 145 |
-
<option value="08">08</option>
|
| 146 |
-
<option value="09">09</option>
|
| 147 |
-
<option value="10">10</option>
|
| 148 |
-
<option value="11">11</option>
|
| 149 |
-
<option value="12">12</option>
|
| 150 |
-
<option value="13">13</option>
|
| 151 |
-
<option value="14">14</option>
|
| 152 |
-
<option value="15">15</option>
|
| 153 |
-
<option value="16">16</option>
|
| 154 |
-
<option value="17">17</option>
|
| 155 |
-
<option value="18">18</option>
|
| 156 |
-
<option value="19">19</option>
|
| 157 |
-
<option value="20">20</option>
|
| 158 |
-
<option value="21">21</option>
|
| 159 |
-
<option value="22">22</option>
|
| 160 |
-
<option value="23">23</option>
|
| 161 |
-
<option value="24">24</option>
|
| 162 |
-
<option value="25">25</option>
|
| 163 |
-
<option value="26">26</option>
|
| 164 |
-
<option value="27">27</option>
|
| 165 |
-
<option value="28">28</option>
|
| 166 |
-
<option value="29">29</option>
|
| 167 |
-
<option value="30">30</option>
|
| 168 |
-
<option value="31">31</option>
|
| 169 |
-
</select>
|
| 170 |
-
</div>
|
| 171 |
-
<div class="v-fix">
|
| 172 |
-
<select name="payment[<?php echo $_code ?>_cc_owner_exp_month]" class="validate-select owner_month" title="Ano de Nacimento do Titular do Catão" data-input="fundingInstrument[creditCard][holder][birthdateMonth]">
|
| 173 |
-
<option value="<?php echo $this->getDateCard('dob-month') ?>" select><?php echo ($this->getDateCard('dob-month') ? $this->getDateCard('dob-month') : "Mês" )?></option>
|
| 174 |
-
<option value="01">01 - Janeiro</option>
|
| 175 |
-
<option value="02">02 - Fevereiro</option>
|
| 176 |
-
<option value="03">03 - Março</option>
|
| 177 |
-
<option value="04">04 - Abril</option>
|
| 178 |
-
<option value="05">05 - Maio</option>
|
| 179 |
-
<option value="06">06 - Junho</option>
|
| 180 |
-
<option value="07">07 - Jullho</option>
|
| 181 |
-
<option value="08">08 - Agosto</option>
|
| 182 |
-
<option value="09">09 - Setembro</option>
|
| 183 |
-
<option value="10">10 - Outubro</option>
|
| 184 |
-
<option value="11">11 - Novembro</option>
|
| 185 |
-
<option value="12">12 - Dezembro</option>
|
| 186 |
-
</select>
|
| 187 |
-
</div>
|
| 188 |
-
<div class="v-fix">
|
| 189 |
-
<select name="payment[<?php echo $_code ?>_cc_owner_exp_year]" class="validate-select owner_year" title="Ano de Nacimento do Titular do Catão" data-input="fundingInstrument[creditCard][holder][birthdateYear]">
|
| 190 |
-
<option value="<?php echo $this->getDateCard('dob-year') ?>" select><?php echo ($this->getDateCard('dob-year') ? $this->getDateCard('dob-year') : "Ano" )?></option>
|
| 191 |
-
<option value="1935">1935</option>
|
| 192 |
-
<option value="1936">1936</option>
|
| 193 |
-
<option value="1937">1937</option>
|
| 194 |
-
<option value="1938">1938</option>
|
| 195 |
-
<option value="1939">1939</option>
|
| 196 |
-
<option value="1940">1940</option>
|
| 197 |
-
<option value="1941">1941</option>
|
| 198 |
-
<option value="1942">1942</option>
|
| 199 |
-
<option value="1943">1943</option>
|
| 200 |
-
<option value="1944">1944</option>
|
| 201 |
-
<option value="1945">1945</option>
|
| 202 |
-
<option value="1946">1946</option>
|
| 203 |
-
<option value="1947">1947</option>
|
| 204 |
-
<option value="1948">1948</option>
|
| 205 |
-
<option value="1949">1949</option>
|
| 206 |
-
<option value="1950">1950</option>
|
| 207 |
-
<option value="1951">1951</option>
|
| 208 |
-
<option value="1952">1952</option>
|
| 209 |
-
<option value="1953">1953</option>
|
| 210 |
-
<option value="1954">1954</option>
|
| 211 |
-
<option value="1955">1955</option>
|
| 212 |
-
<option value="1956">1956</option>
|
| 213 |
-
<option value="1957">1957</option>
|
| 214 |
-
<option value="1958">1958</option>
|
| 215 |
-
<option value="1959">1959</option>
|
| 216 |
-
<option value="1960">1960</option>
|
| 217 |
-
<option value="1961">1961</option>
|
| 218 |
-
<option value="1962">1962</option>
|
| 219 |
-
<option value="1963">1963</option>
|
| 220 |
-
<option value="1964">1964</option>
|
| 221 |
-
<option value="1965">1965</option>
|
| 222 |
-
<option value="1966">1966</option>
|
| 223 |
-
<option value="1967">1967</option>
|
| 224 |
-
<option value="1968">1968</option>
|
| 225 |
-
<option value="1969">1969</option>
|
| 226 |
-
<option value="1970">1970</option>
|
| 227 |
-
<option value="1971">1971</option>
|
| 228 |
-
<option value="1972">1972</option>
|
| 229 |
-
<option value="1973">1973</option>
|
| 230 |
-
<option value="1974">1974</option>
|
| 231 |
-
<option value="1975">1975</option>
|
| 232 |
-
<option value="1976">1976</option>
|
| 233 |
-
<option value="1977">1977</option>
|
| 234 |
-
<option value="1978">1978</option>
|
| 235 |
-
<option value="1979">1979</option>
|
| 236 |
-
<option value="1980">1980</option>
|
| 237 |
-
<option value="1981">1981</option>
|
| 238 |
-
<option value="1982">1982</option>
|
| 239 |
-
<option value="1983">1983</option>
|
| 240 |
-
<option value="1984">1984</option>
|
| 241 |
-
<option value="1985">1985</option>
|
| 242 |
-
<option value="1986">1986</option>
|
| 243 |
-
<option value="1987">1987</option>
|
| 244 |
-
<option value="1988">1988</option>
|
| 245 |
-
<option value="1989">1989</option>
|
| 246 |
-
<option value="1990">1990</option>
|
| 247 |
-
<option value="1991">1991</option>
|
| 248 |
-
<option value="1992">1992</option>
|
| 249 |
-
<option value="1993">1993</option>
|
| 250 |
-
<option value="1994">1994</option>
|
| 251 |
-
<option value="1995">1995</option>
|
| 252 |
-
<option value="1996">1996</option>
|
| 253 |
-
<option value="1997">1997</option>
|
| 254 |
-
<option value="1998">1998</option>
|
| 255 |
-
<option value="1999">1999</option>
|
| 256 |
-
<option value="2000">2000</option>
|
| 257 |
-
<option value="2001">2001</option>
|
| 258 |
-
<option value="2002">2002</option>
|
| 259 |
-
<option value="2003">2003</option>
|
| 260 |
-
<option value="2004">2004</option>
|
| 261 |
-
<option value="2005">2005</option>
|
| 262 |
-
<option value="2006">2006</option>
|
| 263 |
-
<option value="2007">2007</option>
|
| 264 |
-
<option value="2008">2008</option>
|
| 265 |
-
<option value="2009">2009</option>
|
| 266 |
-
<option value="2010">2010</option>
|
| 267 |
-
<option value="2011">2011</option>
|
| 268 |
-
<option value="2012">2012</option>
|
| 269 |
-
<option value="2013">2013</option>
|
| 270 |
-
<option value="2014">2014</option>
|
| 271 |
-
</select>
|
| 272 |
-
</div>
|
| 273 |
-
</div>
|
| 274 |
-
</li>
|
| 275 |
-
<div class="clearer">
|
| 276 |
-
<textarea id="id-chave-publica" class="chave-publica-moip" style="display:none !important;"><?php echo $this->getPublicKey() ?></textarea>
|
| 277 |
-
<input id="encrypted_value" class="encrypted_value input-text required-entry" name="payment[<?php echo $_code ?>_cc_encrypted]" type="hidden" value="" title="Os dados do cartão de crédito são inválidos.">
|
| 278 |
-
<li class="wide">
|
| 279 |
-
<label>
|
| 280 |
-
<input type="checkbox" name="titular-card" title="Salvar este endereço" class="titular-card checkbox" checked="checked"> Eu sou o Titular do Cartão</label>
|
| 281 |
-
</li>
|
| 282 |
-
</div>
|
| 283 |
-
|
| 284 |
-
</div>
|
| 285 |
-
<div class="tab-pane" id="BoletoBancario" style="display:none">
|
| 286 |
-
<h3>Boleto Bancário</h3>
|
| 287 |
-
|
| 288 |
-
<div class="recommendation">
|
| 289 |
-
<ul class="checkout-info-boleto">
|
| 290 |
-
<li class="checkout-info-item"><p class="checkout-info-text">Pagamento somente à vista.</p></li>
|
| 291 |
-
<li class="checkout-info-item"><p class="checkout-info-text">O boleto vence em 3 dias úteis.</p></li>
|
| 292 |
-
<li class="checkout-info-item"><p class="checkout-info-text">É necessário imprimir o boleto ou utilizar o código de barras do mesmo para fazer o pagamento.</p></li>
|
| 293 |
-
<li class="checkout-info-item"><p class="checkout-info-text">Imprima o boleto após a finalização da compra.</p></li>
|
| 294 |
-
<li class="checkout-info-item"><p class="checkout-info-text">O boleto não será enviado para o seu endereço físico</p></li>
|
| 295 |
-
</ul>
|
| 296 |
-
</div>
|
| 297 |
-
</div>
|
| 298 |
-
<div class="tab-pane" id="DebitoBancario" style="display:none">
|
| 299 |
-
<h3>Transferência Online</h3>
|
| 300 |
-
<ul>
|
| 301 |
-
<li>
|
| 302 |
-
<label for="<?php echo $_code ?>_banknumber" class="required"><em>*</em><?php echo $this->__('Banco para Transferência On-line') ?></label>
|
| 303 |
-
<div class="input-box">
|
| 304 |
-
<select name="payment[<?php echo $_code ?>_banknumber]" class="validate-select" title="Banco Para Transferência">
|
| 305 |
-
<option value="" select>Selecione o seu banco.</option>
|
| 306 |
-
<option value="001">Banco do Brasil</option>
|
| 307 |
-
<option value="237">Brandesco</option>
|
| 308 |
-
<option value="341">Itaú</option>
|
| 309 |
-
<option value="041">Banrisul</option>
|
| 310 |
-
</select>
|
| 311 |
-
</div>
|
| 312 |
-
</li>
|
| 313 |
-
</ul>
|
| 314 |
-
<div class="recommendation">
|
| 315 |
-
<ul class="checkout-info-boleto">
|
| 316 |
-
<li class="checkout-info-item"><p class="checkout-info-text">É Obrigatório ter o TOKEN do banco em mãos.</p></li>
|
| 317 |
-
<li class="checkout-info-item"><p class="checkout-info-text">Pagamento somente à vista.</p></li>
|
| 318 |
-
</ul>
|
| 319 |
-
</div>
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
</div>
|
| 323 |
-
</div>
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
</ul>
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
<?php echo $this->getChildHtml('scripts'); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/info/boleto.phtml
CHANGED
|
@@ -1,23 +1,13 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
<?php $info =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
-
<div class="box-content">
|
| 8 |
-
<p><?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?></p>
|
| 9 |
-
<p><a class="button btn-checkout btn-default" title="Finalizar compra" href="<?php echo $info['moip_href_boleto'] ?>" target="_blank" style="
|
| 10 |
-
max-width: 200px;">Imprimir Boleto</a></p>
|
| 11 |
-
<p>Código de Barras</p>
|
| 12 |
-
<p><input type="text" value="<?php echo $info['moip_linecode_boleto'] ?>" readonly="disable" style="
|
| 13 |
-
max-width: 200px; white-space: nowrap;
|
| 14 |
-
overflow: hidden;
|
| 15 |
-
text-overflow: ellipsis;"></p>
|
| 16 |
-
<p>Vencimento: <?php echo date('d-m-Y', strtotime($info['moip_expiration_boleto'])) ?></p>
|
| 17 |
-
|
| 18 |
-
</div>
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
<?php } else { ?>
|
| 22 |
-
<?php echo $addtional['formapagamento_moip'] ?>
|
| 23 |
-
<?php } ?>
|
| 1 |
+
<?php if(Mage::app()->getRequest()->getControllerModule() != "Mage_Checkout" && Mage::app()->getRequest()->getActionName() != "progresscheckout"): ?>
|
| 2 |
+
<?php $info = $this->_prepareInfo(); ?>
|
| 3 |
+
<div class="box-content">
|
| 4 |
+
<p><?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?></p>
|
| 5 |
+
<p><a class="button btn-checkout btn-default" title="Finalizar compra" href="<?php echo $info['moip_href_boleto'] ?>" target="_blank" style="max-width: 200px;">Imprimir Boleto</a></p>
|
| 6 |
+
<p>Código de Barras</p>
|
| 7 |
+
<p><input type="text" value="<?php echo $info['moip_linecode_boleto'] ?>" readonly="disable" style="max-width: 200px; white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"></p>
|
| 8 |
+
<p>Vencimento: <?php echo date('d-m-Y', strtotime($info['moip_expiration_boleto'])) ?></p>
|
| 9 |
+
</div>
|
| 10 |
+
<?php else: ?>
|
| 11 |
+
Pagamento via Boleto
|
| 12 |
+
<?php endif; ?>
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/info/boletorecurring.phtml
CHANGED
|
@@ -1,16 +1,10 @@
|
|
| 1 |
-
|
| 2 |
<?php $info = $this->_prepareInfo(); ?>
|
| 3 |
<?php if($info): ?>
|
| 4 |
<?php $url = $info.'/print' ?>
|
| 5 |
-
|
| 6 |
-
|
| 7 |
<div class="box-content">
|
| 8 |
<p><?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?></p>
|
| 9 |
<p><a class="button btn-checkout btn-default" title="Finalizar compra" href="<?php echo $url ?>" target="_blank" style="max-width: 200px;">Imprimir Boleto</a></p>
|
| 10 |
-
|
| 11 |
-
|
| 12 |
</div>
|
| 13 |
-
|
| 14 |
<?php else: ?>
|
| 15 |
<p><?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?></p>
|
| 16 |
<?php endif; ?>
|
|
|
|
| 1 |
<?php $info = $this->_prepareInfo(); ?>
|
| 2 |
<?php if($info): ?>
|
| 3 |
<?php $url = $info.'/print' ?>
|
|
|
|
|
|
|
| 4 |
<div class="box-content">
|
| 5 |
<p><?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?></p>
|
| 6 |
<p><a class="button btn-checkout btn-default" title="Finalizar compra" href="<?php echo $url ?>" target="_blank" style="max-width: 200px;">Imprimir Boleto</a></p>
|
|
|
|
|
|
|
| 7 |
</div>
|
|
|
|
| 8 |
<?php else: ?>
|
| 9 |
<p><?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?></p>
|
| 10 |
<?php endif; ?>
|
app/design/frontend/base/default/template/MOIP/transparente/info/cc.phtml
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
if(Mage::app()->getRequest()->getModuleName() != "onestepcheckout" && Mage::app()->getRequest()->getModuleName() != "checkout"){
|
| 4 |
-
?>
|
| 5 |
<?php $info = $this->_prepareInfo(); ?>
|
| 6 |
|
| 7 |
|
|
@@ -29,16 +27,6 @@ if(Mage::app()->getRequest()->getModuleName() != "onestepcheckout" && Mage::app(
|
|
| 29 |
</div>
|
| 30 |
|
| 31 |
</div>
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
<?php } else { ?>
|
| 36 |
-
|
| 37 |
-
<?php $addtional = $this->getMethod()->getInfoInstance()->getAdditionalData();?>
|
| 38 |
-
<?php $addtional = unserialize($addtional); ?>
|
| 39 |
-
|
| 40 |
-
<?php echo Mage::helper('transparente')->__('Nome Impresso no cartão: %s', $this->htmlEscape($this->getInfo()->getCcOwner())) ?><br/>
|
| 41 |
-
<?php echo Mage::helper('transparente')->__('Bandeira: %s', $this->htmlEscape($this->getInfo()->getCcType())) ?><br/>
|
| 42 |
-
<?php echo Mage::helper('transparente')->__('Número do cartão: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ?><br/>
|
| 43 |
-
<?php echo Mage::helper('transparente')->__('Vencimento do cartão: %s/%s', $this->htmlEscape($this->getInfo()->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?><br/>
|
| 44 |
-
<?php } ?>
|
| 1 |
+
<?php if(Mage::app()->getRequest()->getControllerModule() != "Mage_Checkout" && Mage::app()->getRequest()->getActionName() != "progresscheckout"): ?>
|
| 2 |
+
|
|
|
|
|
|
|
| 3 |
<?php $info = $this->_prepareInfo(); ?>
|
| 4 |
|
| 5 |
|
| 27 |
</div>
|
| 28 |
|
| 29 |
</div>
|
| 30 |
+
<?php else: ?>
|
| 31 |
+
Pagamento via Cartão de Crédito
|
| 32 |
+
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/info/tef.phtml
CHANGED
|
@@ -1,17 +1,9 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/* Mage::getModel("sales/order")->getCollection()->getLastItem()->getIncrementId(); */
|
| 3 |
-
if(Mage::app()->getRequest()->getModuleName() != "onestepcheckout" && Mage::app()->getRequest()->getModuleName() != "checkout"){
|
| 4 |
-
?>
|
| 5 |
<?php $info = $this->_prepareInfo(); ?>
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
<?php } else { ?>
|
| 14 |
-
|
| 15 |
-
<p><?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?></p>
|
| 16 |
-
|
| 17 |
-
<?php } ?>
|
| 1 |
+
<?php if(Mage::app()->getRequest()->getControllerModule() != "Mage_Checkout" && Mage::app()->getRequest()->getActionName() != "progresscheckout"): ?>
|
|
|
|
|
|
|
|
|
|
| 2 |
<?php $info = $this->_prepareInfo(); ?>
|
| 3 |
+
<div class="box-content">
|
| 4 |
+
<p><?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?></p>
|
| 5 |
+
<p><a class="button btn-checkout btn-default" title="Finalizar compra" href="<?php echo $info['moip_href_trans'] ?>" target="_blank">Ir Ao banco</a></p>
|
| 6 |
+
</div>
|
| 7 |
+
<?php else: ?>
|
| 8 |
+
Pagamento via Transf. Eletrônica
|
| 9 |
+
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/onclick/ShippingMethods.phtml
CHANGED
|
@@ -11,11 +11,13 @@
|
|
| 11 |
|
| 12 |
<?php if ($_sole) : ?>
|
| 13 |
<span class="no-display"><input name="shipping_method" type="radio" title="Meio de Envio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" class="validate-one-required-by-name radio-inline"/></span>
|
| 14 |
-
|
|
|
|
|
|
|
| 15 |
<?php else: ?>
|
|
|
|
| 16 |
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" title="Meio de Envio" id="s_method_<?php echo $_rate->getCode() ?>" class="radio shipping_method_handle validate-one-required-by-name radio-inline" />
|
| 17 |
-
|
| 18 |
-
<label for="s_method_<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" value="<?php echo $_rate->getPrice() ?>">
|
| 19 |
<?php echo $_rate->getMethodTitle() ?>
|
| 20 |
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
| 21 |
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
|
@@ -23,11 +25,12 @@
|
|
| 23 |
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
| 24 |
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
| 25 |
<?php endif; ?>
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
|
| 28 |
<?php endforeach; ?>
|
| 29 |
|
| 30 |
<?php endforeach; ?>
|
| 31 |
-
<p>* O Prazo de envio inicia após a confirmação automática do pagamento.</p>
|
| 32 |
</div>
|
| 33 |
<?php endif; ?>
|
| 11 |
|
| 12 |
<?php if ($_sole) : ?>
|
| 13 |
<span class="no-display"><input name="shipping_method" type="radio" title="Meio de Envio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" class="validate-one-required-by-name radio-inline"/></span>
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
<?php else: ?>
|
| 18 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" value="<?php echo $_rate->getPrice() ?>">
|
| 19 |
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" title="Meio de Envio" id="s_method_<?php echo $_rate->getCode() ?>" class="radio shipping_method_handle validate-one-required-by-name radio-inline" />
|
| 20 |
+
|
|
|
|
| 21 |
<?php echo $_rate->getMethodTitle() ?>
|
| 22 |
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
| 23 |
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
| 25 |
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
| 26 |
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
| 27 |
<?php endif; ?>
|
| 28 |
+
</label>
|
| 29 |
+
|
| 30 |
+
<?php endif; ?>
|
| 31 |
|
| 32 |
<?php endforeach; ?>
|
| 33 |
|
| 34 |
<?php endforeach; ?>
|
|
|
|
| 35 |
</div>
|
| 36 |
<?php endif; ?>
|
app/design/frontend/base/default/template/MOIP/transparente/redirect.phtml
DELETED
|
@@ -1,11 +0,0 @@
|
|
| 1 |
-
<div class="container">
|
| 2 |
-
<div class="row">
|
| 3 |
-
<?php
|
| 4 |
-
echo $this->getChildTemplate();
|
| 5 |
-
?>
|
| 6 |
-
</div>
|
| 7 |
-
|
| 8 |
-
</div>
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/MOIP/transparente/redirect/layout_boleto.phtml
DELETED
|
@@ -1,508 +0,0 @@
|
|
| 1 |
-
<?php $boleto = $this->getBoleto_Transparente(Mage::registry('result_decode')); ?>
|
| 2 |
-
<?php $cliente = $this->getCliente(Mage::registry('client_array')); ?>
|
| 3 |
-
<?php $pgtoArray = $this->getOrder_dados(Mage::registry('client_array')); ?>
|
| 4 |
-
<?php $order = Mage::getModel('sales/order')->loadByIncrementId($pgtoArray['id_transacao']); ?>
|
| 5 |
-
<?php $this->getSaveDate($pgtoArray['id_transacao'], $boleto, Mage::registry('result_decode'), Mage::registry('dados_boleto'), Mage::registry('pgtoarry'), 'BoletoBancario'); ?>
|
| 6 |
-
<?php $vcmento = date("d/m/Y", strtotime($boleto['expirationDate'])); ?>
|
| 7 |
-
<?php $data_hj = date("d/m/Y") ?>
|
| 8 |
-
<?php $total = $boleto['total'] ?>
|
| 9 |
-
<?php $total = ($total/100); ?>
|
| 10 |
-
<?php $total = number_format($total,'2',',',''); ?>
|
| 11 |
-
|
| 12 |
-
<html>
|
| 13 |
-
<head>
|
| 14 |
-
<meta http-equiv="content-type" content="text/html">
|
| 15 |
-
<title>Boleto Bradesco</title>
|
| 16 |
-
<style>
|
| 17 |
-
div{
|
| 18 |
-
font-family: arial;
|
| 19 |
-
size: 11px;
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
.btn_print:hover{
|
| 23 |
-
color: #333333;
|
| 24 |
-
background-color: #e6e6e6;
|
| 25 |
-
*background-color: #d9d9d9;
|
| 26 |
-
cursor: pointer;
|
| 27 |
-
-webkit-appearance: button;
|
| 28 |
-
}
|
| 29 |
-
|
| 30 |
-
.btn_print {
|
| 31 |
-
display: inline-block;
|
| 32 |
-
*display: inline;
|
| 33 |
-
padding: 4px 14px;
|
| 34 |
-
margin-bottom: 0;
|
| 35 |
-
*margin-left: .3em;
|
| 36 |
-
font-size: 14px;
|
| 37 |
-
line-height: 20px;
|
| 38 |
-
*line-height: 20px;
|
| 39 |
-
color: #333333;
|
| 40 |
-
text-align: center;
|
| 41 |
-
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
|
| 42 |
-
vertical-align: middle;
|
| 43 |
-
cursor: pointer;
|
| 44 |
-
background-color: #f5f5f5;
|
| 45 |
-
*background-color: #e6e6e6;
|
| 46 |
-
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
|
| 47 |
-
background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
|
| 48 |
-
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
|
| 49 |
-
background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
|
| 50 |
-
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
|
| 51 |
-
background-repeat: repeat-x;
|
| 52 |
-
border: 1px solid #bbbbbb;
|
| 53 |
-
*border: 0;
|
| 54 |
-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
| 55 |
-
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
|
| 56 |
-
border-bottom-color: #a2a2a2;
|
| 57 |
-
-webkit-border-radius: 4px;
|
| 58 |
-
-moz-border-radius: 4px;
|
| 59 |
-
border-radius: 4px;
|
| 60 |
-
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
|
| 61 |
-
filter: progid:dximagetransform.microsoft.gradient(enabled=false);
|
| 62 |
-
*zoom: 1;
|
| 63 |
-
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
| 64 |
-
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
| 65 |
-
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
| 66 |
-
}
|
| 67 |
-
|
| 68 |
-
.right{
|
| 69 |
-
float:right;
|
| 70 |
-
}
|
| 71 |
-
|
| 72 |
-
.editable_line{
|
| 73 |
-
float:right;text-align:right;padding-right:5px;margin-top:15px;margin-bottom:9px;width:400px;
|
| 74 |
-
}
|
| 75 |
-
</style>
|
| 76 |
-
</head>
|
| 77 |
-
|
| 78 |
-
<body leftmargin="0" topmargin="0" text="#000000" vlink="#990000" alink="#ff0000" bgcolor="#ffffff" link="#aa0000">
|
| 79 |
-
|
| 80 |
-
<div style="width:100%; padding:12px 12px 12px 0">
|
| 81 |
-
|
| 82 |
-
<div style="clear:left">
|
| 83 |
-
<div style="float:left;margin-top:7px;">
|
| 84 |
-
<strong>Imprima e pague seu boleto</strong><br/>
|
| 85 |
-
em qualquer agência bancária até o vencimento.<br/>
|
| 86 |
-
Não imprima em modo rascunho.
|
| 87 |
-
</div>
|
| 88 |
-
<div id="btn_print" class="btn_print right" style="margin-top:23px;" onClick="window.print();return false">
|
| 89 |
-
<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem/icon_print_14x14.png') ?>" width="14" height="14"> imprimir
|
| 90 |
-
</div>
|
| 91 |
-
</div>
|
| 92 |
-
<div style="clear:left">
|
| 93 |
-
<div style="float:left;margin-top:7px;">
|
| 94 |
-
<strong>Pague pelo internet banking</strong><br/>
|
| 95 |
-
utilize a linha editável ao lado
|
| 96 |
-
</div>
|
| 97 |
-
<input type="text" value="<?php echo $boleto['line']; ?>" class="editable_line input-text">
|
| 98 |
-
</div>
|
| 99 |
-
</div>
|
| 100 |
-
|
| 101 |
-
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 102 |
-
<tbody>
|
| 103 |
-
<tr>
|
| 104 |
-
<td>
|
| 105 |
-
<div align="right">
|
| 106 |
-
<font face="Arial, Helvetica, sans-serif">
|
| 107 |
-
<i>
|
| 108 |
-
<font size="1">Cortar nas linhas Pontilhadas </font>
|
| 109 |
-
</i>
|
| 110 |
-
</font>
|
| 111 |
-
</div>
|
| 112 |
-
</td>
|
| 113 |
-
</tr>
|
| 114 |
-
<tr valign="top">
|
| 115 |
-
<td>
|
| 116 |
-
<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem//tesoura.gif') ?>" style="margin-bottom: 3px;" width="100%" height="5">
|
| 117 |
-
</td>
|
| 118 |
-
</tr>
|
| 119 |
-
</tbody>
|
| 120 |
-
</table>
|
| 121 |
-
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 122 |
-
<tbody>
|
| 123 |
-
<tr>
|
| 124 |
-
<td width="320">
|
| 125 |
-
<font size="3" face="Arial, Helvetica, sans-serif">
|
| 126 |
-
<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem//ico.gif') ?>" vspace="0" width="25" align="absbottom" height="23" hspace="1">
|
| 127 |
-
<b> Bradesco</b>
|
| 128 |
-
</font>
|
| 129 |
-
</td>
|
| 130 |
-
<td valign="bottom" width="320" align="right">
|
| 131 |
-
<b>
|
| 132 |
-
<font size="3" face="Arial, Helvetica, sans-serif">Recibo do Sacado</font>
|
| 133 |
-
</b>
|
| 134 |
-
</td>
|
| 135 |
-
</tr>
|
| 136 |
-
</tbody>
|
| 137 |
-
</table>
|
| 138 |
-
<table bordercolorlight="#FFFFFF" width="100%" border="1" cellpadding="0" cellspacing="0">
|
| 139 |
-
<tbody>
|
| 140 |
-
<tr>
|
| 141 |
-
<td width="43%">
|
| 142 |
-
<font size="1" face="Arial, Helvetica, sans-serif"> Cedente<br></font>
|
| 143 |
-
<font size="2" face="Arial, Helvetica, sans-serif">
|
| 144 |
-
<b> <?php echo Mage::app()->getWebsite()->getName(); ?> | Transparente S.A.</b>
|
| 145 |
-
</font>
|
| 146 |
-
<font size="1" face="Arial, Helvetica, sans-serif"> </font>
|
| 147 |
-
</td>
|
| 148 |
-
<td width="21%">
|
| 149 |
-
<div align="center">
|
| 150 |
-
<font size="1" face="Arial, Helvetica, sans-serif"> Agência/Cod. Cedente<br></font>
|
| 151 |
-
<font size="2" face="Arial, Helvetica, sans-serif">3391-0 / 0017479-3</font>
|
| 152 |
-
<font size="1" face="Arial, Helvetica, sans-serif"></font>
|
| 153 |
-
</div>
|
| 154 |
-
</td>
|
| 155 |
-
<td width="18%">
|
| 156 |
-
<div align="center">
|
| 157 |
-
<font size="1" face="Arial, Helvetica, sans-serif">Data do Documento<br></font>
|
| 158 |
-
<font size="2" face="Arial, Helvetica, sans-serif"><?php echo $data_hj ?></font>
|
| 159 |
-
</div>
|
| 160 |
-
</td>
|
| 161 |
-
<td width="18%">
|
| 162 |
-
<font size="1" face="Arial, Helvetica, sans-serif"> Vencimento</font>
|
| 163 |
-
<font size="3" face="Arial">
|
| 164 |
-
<b>
|
| 165 |
-
<div align="right">
|
| 166 |
-
<font size="2" face="Arial, Helvetica, sans-serif"><?php echo $vcmento ?> </font>
|
| 167 |
-
</div>
|
| 168 |
-
</b>
|
| 169 |
-
</font>
|
| 170 |
-
</td>
|
| 171 |
-
</tr>
|
| 172 |
-
<tr>
|
| 173 |
-
<td width="43%">
|
| 174 |
-
<font size="1" face="Arial"> Sacado </font>
|
| 175 |
-
<font size="1" face="Arial, Helvetica, sans-serif"><br></font>
|
| 176 |
-
<font size="2" face="Arial, Helvetica, sans-serif">
|
| 177 |
-
<b> </b>
|
| 178 |
-
</font>
|
| 179 |
-
<font size="2" face="Arial">
|
| 180 |
-
<b><?php echo $cliente['pagador_nome'] ?></b>
|
| 181 |
-
</font>
|
| 182 |
-
<font size="1" face="Arial, Helvetica, sans-serif"> </font>
|
| 183 |
-
</td>
|
| 184 |
-
<td width="21%">
|
| 185 |
-
<div align="center">
|
| 186 |
-
<font size="1" face="Arial">Número Documento</font>
|
| 187 |
-
<font size="1" face="Arial, Helvetica, sans-serif"><br></font>
|
| 188 |
-
<font size="2" face="Arial"> como obeter???????</font>
|
| 189 |
-
<font size="1" face="Arial, Helvetica, sans-serif"></font>
|
| 190 |
-
</div>
|
| 191 |
-
</td>
|
| 192 |
-
<td width="18%">
|
| 193 |
-
<div align="center">
|
| 194 |
-
<font size="1" face="Arial">Carteira/Nosso Número</font>
|
| 195 |
-
<font size="1" face="Arial, Helvetica, sans-serif"><br></font>
|
| 196 |
-
<font size="2" face="Arial">25/como obeter?</font>
|
| 197 |
-
</div>
|
| 198 |
-
</td>
|
| 199 |
-
<td width="18%">
|
| 200 |
-
<font size="1" face="Arial, Helvetica, sans-serif"> Valor do Documento<br></font>
|
| 201 |
-
<font size="3" face="Arial">
|
| 202 |
-
<b>
|
| 203 |
-
<div align="right">
|
| 204 |
-
<font size="2" face="Arial, Helvetica, sans-serif">
|
| 205 |
-
<b><?php echo $total; ?></b>
|
| 206 |
-
</font>
|
| 207 |
-
<font size="3" face="Arial">
|
| 208 |
-
<b>
|
| 209 |
-
<font size="2" face="Arial, Helvetica, sans-serif"> </font>
|
| 210 |
-
</b>
|
| 211 |
-
</font>
|
| 212 |
-
</div>
|
| 213 |
-
</b>
|
| 214 |
-
</font>
|
| 215 |
-
</td>
|
| 216 |
-
</tr>
|
| 217 |
-
<tr>
|
| 218 |
-
<td colspan="4">
|
| 219 |
-
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 220 |
-
<tbody>
|
| 221 |
-
<tr>
|
| 222 |
-
<td width="4"></td>
|
| 223 |
-
<td width="626">
|
| 224 |
-
<font style="font-size: 10px;" face="Arial">Demonstrativo
|
| 225 |
-
<br>
|
| 226 |
-
<b>
|
| 227 |
-
===============================================================<br>
|
| 228 |
-
Pagamento do pedido <?php echo $pgtoArray['id_transacao'] ?> a <?php echo Mage::app()->getWebsite()->getName(); ?><br>
|
| 229 |
-
===============================================================<br>
|
| 230 |
-
<br>
|
| 231 |
-
</b>
|
| 232 |
-
</font>
|
| 233 |
-
</td>
|
| 234 |
-
</tr>
|
| 235 |
-
</tbody>
|
| 236 |
-
</table>
|
| 237 |
-
</td>
|
| 238 |
-
</tr>
|
| 239 |
-
</tbody>
|
| 240 |
-
</table>
|
| 241 |
-
<table width="100%" border="0" cellpadding="2" cellspacing="0">
|
| 242 |
-
<tbody>
|
| 243 |
-
<tr>
|
| 244 |
-
<td width="100%" align="right">
|
| 245 |
-
<b>
|
| 246 |
-
<font size="1" face="Arial">Autenticação mecânica</font>
|
| 247 |
-
</b>
|
| 248 |
-
<br>
|
| 249 |
-
</td>
|
| 250 |
-
</tr>
|
| 251 |
-
<tr>
|
| 252 |
-
<td width="100%" align="middle" height="17"> </td>
|
| 253 |
-
</tr>
|
| 254 |
-
</tbody>
|
| 255 |
-
</table>
|
| 256 |
-
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 257 |
-
<tbody>
|
| 258 |
-
<tr valign="top">
|
| 259 |
-
<td>
|
| 260 |
-
<img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem//tesoura.gif') ?>" style="margin-bottom: 3px;" width="100%" height="5">
|
| 261 |
-
</td>
|
| 262 |
-
</tr>
|
| 263 |
-
</tbody></table>
|
| 264 |
-
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 265 |
-
<tbody><tr>
|
| 266 |
-
<td valign="bottom" width="112"><font size="3" face="Arial, Helvetica, sans-serif"><img src="<?php echo $this->getSkinUrl('MOIP/transparente/imagem//ico.gif') ?>" vspace="0" width="25" align="absbottom" height="23" hspace="1"><b> Bradesco</b></font></td>
|
| 267 |
-
<td valign="bottom" width="66" align="center">
|
| 268 |
-
<font size="4" face="Arial, Helvetica, sans-serif"><b>| <font color="#999999">237-2</font> |</b></font>
|
| 269 |
-
</td>
|
| 270 |
-
<td valign="bottom" width="462" align="right" nowrap="nowrap"><font size="3" face="Arial"><?php echo $boleto['line']; ?> </font></td>
|
| 271 |
-
</tr>
|
| 272 |
-
</tbody></table>
|
| 273 |
-
<table bordercolorlight="#FFFFFF" width="100%" border="1" cellpadding="1" cellspacing="0">
|
| 274 |
-
<tbody><tr>
|
| 275 |
-
<td colspan="6"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 276 |
-
<tbody><tr>
|
| 277 |
-
<td valign="top" width="120"><font size="1" face="Arial, Helvetica, sans-serif"> Local
|
| 278 |
-
de Pagamento</font><font face="Arial, Helvetica, sans-serif"><br>
|
| 279 |
-
<font size="3"> </font><br>
|
| 280 |
-
</font></td>
|
| 281 |
-
<td valign="middle" width="370"><font size="2" face="Arial, Helvetica, sans-serif"><b> Pagável em qualquer banco até o vencimento</b></font> <font face="Arial, Helvetica, sans-serif"><br>
|
| 282 |
-
</font></td>
|
| 283 |
-
</tr>
|
| 284 |
-
</tbody></table></td>
|
| 285 |
-
<td width="140"> <table bordercolorlight="#FFFFFF" width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
|
| 286 |
-
<tbody><tr bgcolor="#cccccc">
|
| 287 |
-
<td><font size="1" face="Arial, Helvetica, sans-serif"> Vencimento
|
| 288 |
-
</font><font face="Arial, Helvetica, sans-serif"><br>
|
| 289 |
-
</font></td>
|
| 290 |
-
</tr>
|
| 291 |
-
<tr bgcolor="#cccccc">
|
| 292 |
-
<td align="right"><font face="Arial, Helvetica, sans-serif"><b><font size="3"><?php echo $vcmento ?></font></b></font><font size="3" face="Arial"><b><font size="2" face="Arial, Helvetica, sans-serif"> </font></b></font><font face="Arial, Helvetica, sans-serif"><br>
|
| 293 |
-
</font></td>
|
| 294 |
-
</tr>
|
| 295 |
-
</tbody></table></td>
|
| 296 |
-
</tr>
|
| 297 |
-
<tr>
|
| 298 |
-
<td colspan="6" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 299 |
-
<tbody><tr>
|
| 300 |
-
<td valign="top"><font size="1" face="Arial"> Cedente </font><br> </td>
|
| 301 |
-
</tr>
|
| 302 |
-
<tr>
|
| 303 |
-
<td valign="top"><font size="2" face="Arial"><b> <?php echo Mage::app()->getWebsite()->getName(); ?> | Transparente S.A.</b></font><br> </td>
|
| 304 |
-
</tr>
|
| 305 |
-
</tbody></table></td>
|
| 306 |
-
<td valign="top" width="140"> <table width="100%" border="0" cellpadding="1" cellspacing="1">
|
| 307 |
-
<tbody><tr>
|
| 308 |
-
<td><font size="1" face="Arial, Helvetica, sans-serif"> Agência/Código
|
| 309 |
-
Cedente</font></td>
|
| 310 |
-
</tr>
|
| 311 |
-
<tr>
|
| 312 |
-
<td align="right"><font size="2" face="Arial, Helvetica, sans-serif"><b>3391-0 / 0017479-3</b></font></td>
|
| 313 |
-
</tr>
|
| 314 |
-
</tbody></table></td>
|
| 315 |
-
</tr>
|
| 316 |
-
<tr>
|
| 317 |
-
<td width="103"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 318 |
-
<tbody><tr>
|
| 319 |
-
<td> <div align="center"><font size="1" face="Arial">Data do documento</font><br>
|
| 320 |
-
</div></td>
|
| 321 |
-
</tr>
|
| 322 |
-
<tr>
|
| 323 |
-
<td align="middle"> <div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><?php echo $data_hj ?></font><br>
|
| 324 |
-
</div></td>
|
| 325 |
-
</tr>
|
| 326 |
-
</tbody></table></td>
|
| 327 |
-
<td colspan="2"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 328 |
-
<tbody><tr>
|
| 329 |
-
<td> <div align="center"><font size="1" face="Arial">No. do documento</font><br>
|
| 330 |
-
</div></td>
|
| 331 |
-
</tr>
|
| 332 |
-
<tr>
|
| 333 |
-
<td align="middle"> <div align="center"><font size="2" face="Arial, Helvetica, sans-serif">como obeter?</font><br>
|
| 334 |
-
</div></td>
|
| 335 |
-
</tr>
|
| 336 |
-
</tbody></table></td>
|
| 337 |
-
<td width="65"> <table width="98%" border="0" cellpadding="0" cellspacing="0">
|
| 338 |
-
<tbody><tr>
|
| 339 |
-
<td> <div align="center"><font size="1" face="Arial">Espécie doc</font><br>
|
| 340 |
-
</div></td>
|
| 341 |
-
</tr>
|
| 342 |
-
<tr>
|
| 343 |
-
<td align="middle"> <div align="center"><font size="1" face="Arial"><font size="2">Outros</font></font><br>
|
| 344 |
-
</div></td>
|
| 345 |
-
</tr>
|
| 346 |
-
</tbody></table></td>
|
| 347 |
-
<td width="44"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 348 |
-
<tbody><tr>
|
| 349 |
-
<td> <div align="center"><font size="1" face="Arial"> Aceite</font><br>
|
| 350 |
-
</div></td>
|
| 351 |
-
</tr>
|
| 352 |
-
<tr>
|
| 353 |
-
<td align="middle"> <div align="center"><font size="2" face="Arial">N</font><br>
|
| 354 |
-
</div></td>
|
| 355 |
-
</tr>
|
| 356 |
-
</tbody></table></td>
|
| 357 |
-
<td width="126"> <table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
|
| 358 |
-
<tbody><tr>
|
| 359 |
-
<td nowrap="nowrap"> <div align="center"><font size="1" face="Arial">Data Processamento</font></div></td>
|
| 360 |
-
</tr>
|
| 361 |
-
<tr>
|
| 362 |
-
<td align="middle" nowrap="nowrap"> <div align="center"><font size="2" face="Arial">26/01/2014</font></div></td>
|
| 363 |
-
</tr>
|
| 364 |
-
</tbody></table></td>
|
| 365 |
-
<td width="140"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 366 |
-
<tbody><tr>
|
| 367 |
-
<td><font size="1" face="Arial, Helvetica, sans-serif"> Nosso Número
|
| 368 |
-
</font><font face="Arial, Helvetica, sans-serif"><br>
|
| 369 |
-
</font></td>
|
| 370 |
-
</tr>
|
| 371 |
-
<tr>
|
| 372 |
-
<td align="right"><font size="2" face="Arial, Helvetica, sans-serif"><b>25/00024163628-8</b></font><font size="3" face="Arial"><b><font size="2" face="Arial, Helvetica, sans-serif"> </font></b></font><font face="Arial, Helvetica, sans-serif"><br>
|
| 373 |
-
</font></td>
|
| 374 |
-
</tr>
|
| 375 |
-
</tbody></table></td>
|
| 376 |
-
</tr>
|
| 377 |
-
<tr align="center">
|
| 378 |
-
<td valign="top" width="103"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 379 |
-
<tbody><tr valign="top">
|
| 380 |
-
<td> <div align="center"><font size="1" face="Arial">Uso do Banco</font><br>
|
| 381 |
-
</div></td>
|
| 382 |
-
</tr>
|
| 383 |
-
<tr valign="top">
|
| 384 |
-
<td> <div align="center"><font size="2" face="Arial"> </font><br>
|
| 385 |
-
</div></td>
|
| 386 |
-
</tr>
|
| 387 |
-
</tbody></table></td>
|
| 388 |
-
<td valign="top" width="39" align="center"> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
|
| 389 |
-
<tbody><tr valign="top">
|
| 390 |
-
<td align="center"> <font size="1" face="Arial">Carteira</font></td>
|
| 391 |
-
</tr>
|
| 392 |
-
<tr valign="top">
|
| 393 |
-
<td align="center"><font size="2" face="Arial">25</font></td>
|
| 394 |
-
</tr>
|
| 395 |
-
</tbody></table></td>
|
| 396 |
-
<td valign="top" width="93"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 397 |
-
<tbody><tr valign="top">
|
| 398 |
-
<td> <div align="center"><font size="1" face="Arial"> Moeda</font><br>
|
| 399 |
-
</div></td>
|
| 400 |
-
</tr>
|
| 401 |
-
<tr valign="top">
|
| 402 |
-
<td> <div align="center"><font size="2" face="Arial">R$</font><br>
|
| 403 |
-
</div></td>
|
| 404 |
-
</tr>
|
| 405 |
-
</tbody></table></td>
|
| 406 |
-
<td colspan="2" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 407 |
-
<tbody><tr valign="top">
|
| 408 |
-
<td> <div align="center"><font size="1" face="Arial">Quantidade</font><br>
|
| 409 |
-
</div></td>
|
| 410 |
-
</tr>
|
| 411 |
-
<tr valign="top">
|
| 412 |
-
<td> <div align="center"><br>
|
| 413 |
-
</div></td>
|
| 414 |
-
</tr>
|
| 415 |
-
</tbody></table></td>
|
| 416 |
-
<td valign="top" width="126"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 417 |
-
<tbody><tr valign="top">
|
| 418 |
-
<td> <div align="center"><font size="1" face="Arial"> Valor</font><br>
|
| 419 |
-
</div></td>
|
| 420 |
-
</tr>
|
| 421 |
-
<tr valign="top">
|
| 422 |
-
<td> <div align="center"><font size="2" face="Arial"> </font><br>
|
| 423 |
-
</div></td>
|
| 424 |
-
</tr>
|
| 425 |
-
</tbody></table></td>
|
| 426 |
-
<td valign="top" width="140"> <table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
|
| 427 |
-
<tbody><tr>
|
| 428 |
-
<td bgcolor="lightgrey" height="50%"><font size="1" face="Arial, Helvetica, sans-serif"> (=)
|
| 429 |
-
Valor do Documento </font></td>
|
| 430 |
-
</tr>
|
| 431 |
-
<tr>
|
| 432 |
-
<td align="right" bgcolor="lightgrey" height="50%"><font face="Arial, Helvetica, sans-serif"><b><font size="2"><?php echo $total; ?></font></b></font><font size="3" face="Arial"><b><font size="2" face="Arial, Helvetica, sans-serif"> </font></b></font></td>
|
| 433 |
-
</tr>
|
| 434 |
-
</tbody></table></td>
|
| 435 |
-
</tr>
|
| 436 |
-
<tr>
|
| 437 |
-
<td colspan="6" rowspan="5" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 438 |
-
<tbody><tr valign="center">
|
| 439 |
-
<td colspan="2" height="23"><font size="2" face="Arial"><b> Instruções
|
| 440 |
-
</b><br>
|
| 441 |
-
</font></td>
|
| 442 |
-
</tr>
|
| 443 |
-
<tr valign="top">
|
| 444 |
-
<td width="4">
|
| 445 |
-
</td>
|
| 446 |
-
<td width="457"><font style="font-size: 10px;" face="Arial">Sr. Caixa, não receber após o vencimento<br>
|
| 447 |
-
<br>
|
| 448 |
-
</font>
|
| 449 |
-
<font style="font-size: 11px;" face="Courier New">
|
| 450 |
-
<br>
|
| 451 |
-
<br>
|
| 452 |
-
<br>
|
| 453 |
-
<br>
|
| 454 |
-
<br>
|
| 455 |
-
</font>
|
| 456 |
-
</td>
|
| 457 |
-
</tr>
|
| 458 |
-
</tbody></table></td>
|
| 459 |
-
<td valign="top" width="140"><font style="font-size: 10px;" face="Arial"> (-) Descontos/Abatimento
|
| 460 |
-
<br><br>
|
| 461 |
-
</font></td>
|
| 462 |
-
</tr>
|
| 463 |
-
<tr>
|
| 464 |
-
<td valign="top" width="140"><font style="font-size: 10px;" face="Arial"> (-) Outras
|
| 465 |
-
Deduções <br><br>
|
| 466 |
-
</font></td>
|
| 467 |
-
</tr>
|
| 468 |
-
<tr>
|
| 469 |
-
<td valign="top" width="140"><font style="font-size: 10px;" face="Arial"> (+) Mora/Multa
|
| 470 |
-
<br><br>
|
| 471 |
-
</font></td>
|
| 472 |
-
</tr>
|
| 473 |
-
<tr>
|
| 474 |
-
<td valign="top" width="140"><font style="font-size: 10px;" face="Arial"> (+) Outros
|
| 475 |
-
Acréscimos <br><br>
|
| 476 |
-
</font></td>
|
| 477 |
-
</tr>
|
| 478 |
-
<tr>
|
| 479 |
-
<td valign="top" width="140" bgcolor="#cccccc"><font style="font-size: 10px;" face="Arial"> (=)
|
| 480 |
-
Valor Cobrado <br><br>
|
| 481 |
-
</font></td>
|
| 482 |
-
</tr>
|
| 483 |
-
<tr>
|
| 484 |
-
<td colspan="5"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 485 |
-
<tbody><tr>
|
| 486 |
-
<td valign="top" width="100"><font size="1" face="Arial, Helvetica, sans-serif"> Sacado
|
| 487 |
-
</font><font face="Arial, Helvetica, sans-serif"><br>
|
| 488 |
-
</font></td>
|
| 489 |
-
<td valign="top" width="100%" height="40"><font size="1" face="Arial, Helvetica, sans-serif">
|
| 490 |
-
<?php echo($order->getShippingAddress()->getStreet(1)); ?>, n.º <?php echo($order->getShippingAddress()->getStreet(2)); ?>, Bairro: <?php echo($order->getShippingAddress()->getStreet(4)); ?><br>
|
| 491 |
-
<?php echo($order->getShippingAddress()->getCity()); ?>,<?php echo($order->getShippingAddress()->getRegion()); ?> | <?php echo($order->getShippingAddress()->getPostcode()); ?>
|
| 492 |
-
</tr>
|
| 493 |
-
</tbody></table></td>
|
| 494 |
-
<td colspan="2" valign="bottom" align="middle"><b><font size="3" face="Arial"> Ficha
|
| 495 |
-
de Compensação </font></b></td>
|
| 496 |
-
</tr>
|
| 497 |
-
</tbody></table>
|
| 498 |
-
<table width="637" border="0" cellpadding="0" cellspacing="0" height="86">
|
| 499 |
-
<div style="margin-top:15px;"><?php echo $boleto['imagem']; ?></div>
|
| 500 |
-
<div><?php echo $boleto['line']; ?></div>
|
| 501 |
-
</table>
|
| 502 |
-
</font></td>
|
| 503 |
-
</tr></tbody>
|
| 504 |
-
</table>
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
</body>
|
| 508 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/MOIP/transparente/moip.js
CHANGED
|
@@ -50,11 +50,11 @@ MoipPagamentosCc = function(){
|
|
| 50 |
break;
|
| 51 |
case 'HIPERCARD':
|
| 52 |
jQuery('#moip_cc_type .HI').addClass('active');
|
| 53 |
-
jQuery("input[id=moip_cc_type]").val('
|
| 54 |
break;
|
| 55 |
case 'HIPER':
|
| 56 |
jQuery('#moip_cc_type .HP').addClass('active');
|
| 57 |
-
jQuery("input[id=moip_cc_type]").val('
|
| 58 |
break;
|
| 59 |
};
|
| 60 |
} else {
|
|
@@ -225,12 +225,12 @@ MoipPagamentosRecurring = function(){
|
|
| 225 |
break;
|
| 226 |
case 'HIPERCARD':
|
| 227 |
jQuery('#moip_ccrecurring_type .HI').addClass('active');
|
| 228 |
-
jQuery("input[id=moip_ccrecurring_type]").val('
|
| 229 |
alert('Ainda nao estamos trabalhando com o HIPERCARD, por favor escolha outro cartão');
|
| 230 |
break;
|
| 231 |
case 'HIPER':
|
| 232 |
jQuery('#moip_ccrecurring_type .HP').addClass('active');
|
| 233 |
-
jQuery("input[id=moip_ccrecurring_type]").val('
|
| 234 |
alert('Ainda nao estamos trabalhando com o HIPER, por favor escolha outro cartão');
|
| 235 |
break;
|
| 236 |
};
|
| 50 |
break;
|
| 51 |
case 'HIPERCARD':
|
| 52 |
jQuery('#moip_cc_type .HI').addClass('active');
|
| 53 |
+
jQuery("input[id=moip_cc_type]").val('HP');
|
| 54 |
break;
|
| 55 |
case 'HIPER':
|
| 56 |
jQuery('#moip_cc_type .HP').addClass('active');
|
| 57 |
+
jQuery("input[id=moip_cc_type]").val('HI');
|
| 58 |
break;
|
| 59 |
};
|
| 60 |
} else {
|
| 225 |
break;
|
| 226 |
case 'HIPERCARD':
|
| 227 |
jQuery('#moip_ccrecurring_type .HI').addClass('active');
|
| 228 |
+
jQuery("input[id=moip_ccrecurring_type]").val('HP');
|
| 229 |
alert('Ainda nao estamos trabalhando com o HIPERCARD, por favor escolha outro cartão');
|
| 230 |
break;
|
| 231 |
case 'HIPER':
|
| 232 |
jQuery('#moip_ccrecurring_type .HP').addClass('active');
|
| 233 |
+
jQuery("input[id=moip_ccrecurring_type]").val('HI');
|
| 234 |
alert('Ainda nao estamos trabalhando com o HIPER, por favor escolha outro cartão');
|
| 235 |
break;
|
| 236 |
};
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>o2ti_moip</name>
|
| 4 |
-
<version>2.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://moip.com/licensa_checkout_transparente.txt">Exclusivo para clientes Moip Pagamentos S/A</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -13,11 +13,11 @@ Solução integrada para vendas via moip. gratuito e exclusivo para clie
|
|
| 13 |

|
| 14 |

|
| 15 |
</description>
|
| 16 |
-
<notes>
|
| 17 |
<authors><author><name>MOIP</name><user>moip</user><email>contato@o2ti.com</email></author></authors>
|
| 18 |
-
<date>2016-
|
| 19 |
-
<time>
|
| 20 |
-
<contents><target name="magelocal"><dir name="MOIP"><dir name="Account"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Button"><file name="Button.php" hash="007feb0784ae1478f0ae0990081f8620"/></dir><dir name="Field"><file name="Date.php" hash="0870f256c23b9a7eac0c7e9e7622ff27"/><file name="Selectcron.php" hash="85c0eceec8c74aa841bc1128f3ce1a4a"/><file name="Text.php" hash="101389c0b3a334919bf4efa5a8012eb5"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d46e407f76d70a006d456a33b7210d25"/></dir><dir name="Model"><file name="Observer.php" hash="9b28f254978c7576bf361d6f757bcf22"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MoipaccountController.php" hash="2c0831f968c67fcfdc0cd840e06f00fa"/></dir></dir><dir name="etc"><file name="config.xml" hash="a21af3d69524bab554faebb174b19698"/><file name="system.xml" hash="416cc1192af6e508c945b03483e92964"/></dir></dir><dir name="All"><dir name="Helper"><file name="Data.php" hash="10b776758585cb50355c0d6d0a5fdd5b"/></dir><dir name="etc"><file name="config.xml" hash="0d6788a7062e82243626e1caf3987a4d"/><file name="system.xml" hash="825545991621cd6e0fc34a19476d78cc"/></dir></dir><dir name="Onestepcheckout"><dir name="Block"><dir name="Adminhtml"><dir name="Onestepcheckout"><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><dir name="Info"><file name="Customermessages.php" hash="ddb3c364bb288b2e48f5ca20dbaf262b"/></dir></dir></dir></dir></dir></dir><dir name="System"><dir name="Config"><file name="Editor.php" hash="620ffe2b11d51c059aae85d069d17dd9"/></dir></dir></dir><dir name="Checkout"><dir name="Cart"><file name="Promotion.php" hash="40ade64028b400796d0fb77060703370"/></dir><dir name="Onepage"><dir name="Billing"><file name="Sortbilling.php" hash="aac00cf619be021d627bc6d6e0632247"/></dir><file name="Billing.php" hash="c41241da962110ee7bca3c7656148bde"/><dir name="Review"><file name="Info.php" hash="8585d5415e0589c9ffc53c160921cdb0"/><file name="Options.php" hash="7e3a4f53f4d687536ae3ff80728c0cc4"/></dir><file name="Shipping.php" hash="40b5b13c8408bac25d7eb45f6ddbdc86"/></dir></dir><file name="Onestepcheckout.php" hash="f6a3bc3e394fbadd34985586f71ee782"/></dir><dir name="Helper"><file name="Data.php" hash="5c19376368e6b2f744b448f0012f693e"/></dir><dir name="Model"><dir name="Customer"><file name="Customer.php" hash="f038378053e082fea387c16056624540"/></dir><dir name="Mysql4"><dir name="Onestepcheckout"><file name="Collection.php" hash="cb452401f753d3cd63196488d2985e09"/></dir><file name="Onestepcheckout.php" hash="370e27b4bdd3d450fff995f94bc74ad3"/></dir><file name="Observer.php" hash="e8b37e9fb11cf2f47eb61d1629927ed1"/><file name="Onestepcheckout.php" hash="90db8eeb14fc762e79098edfac0684f8"/><dir name="Sales"><dir name="Quote"><file name="Address.php" hash="904bdc6b5836ccdbb91810dba55b4a4b"/></dir></dir><file name="Status.php" hash="cd2132bb22a1992e6ea762586391733b"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Checkuncheck.php" hash="febcb4b243d5e09ae7b77d603af45d63"/><file name="Disablefield.php" hash="196dcdb92863dbe110a8edc0be4cf953"/><file name="Optionaddfield.php" hash="574f6f8d27245ab4f0d0362372f5082d"/><file name="Optionhidefield.php" hash="0cf65ef82933d93293eaada3125c3b1d"/><file name="Pagelayout.php" hash="b6ca9f9394e84806aecc39f5e62c11d5"/><dir name="Payment"><file name="Allowedmethods.php" hash="d1f4b5a2e79f2f9378fb58a88ce2732b"/></dir><file name="Subscribenewletter.php" hash="a4c99e4f5417aa1b6d42364f4c83258c"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="84956d00de1473ad3bf4a9098a037d46"/><file name="OrderController.php" hash="67f444751f3bc90bf9a4eca8e5e16c02"/><file name="TestController.php" hash="0ee82be0e1607d92fb4afa2bc6886b57"/></dir><dir name="etc"><file name="config.xml" hash="6da1f67c15a989f4d55b327e2c04e09b"/><file name="system.xml" hash="361dfe0b7931bc76a2026b2d3e1e4898"/></dir><dir name="sql"><dir name="moip_onestepcheckout_setup"><file name="mysql4-install-0.1.0.php" hash="ca03016b7dc2a6c84e258b9e7248e5ff"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><dir name="Transparente"><dir name="Block"><dir name="Adminhtml"><dir name="Info"><file name="Boleto.php" hash="8839b160428c9bbe482c79a9637e9889"/><file name="Cc.php" hash="2e457a673e02024472f8145201cfb519"/><file name="Tef.php" hash="aaf85a2846426db34534c56eacbe3f01"/></dir><dir name="Sales"><dir name="Order"><dir name="Create"><dir name="Totals"><file name="Fee.php" hash="ff5c32dc11ba021ce5a08feece2c95c8"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><dir name="Modules"><file name="Header.php" hash="b0fd3aa33c52191c41a486f3077f3564"/><file name="Oauth.php" hash="0d7425a67467f24348edb88a15fef4ea"/><file name="Reset.php" hash="66b629c16de08ffaf1826df704ff3158"/></dir></dir></dir></dir></dir><dir name="moip"><dir name="Info"><file name="Boleto.php" hash="65cc077e82ff199700a2741ff9e4d128"/><file name="Cc.php" hash="386ec65663d683c611a6f53d7e90365d"/><file name="Info.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Tef.php" hash="c93516fb7d7e308c1e09d9583164b17b"/></dir></dir></dir><dir name="Checkout"><dir name="Totals"><file name="Fee.php" hash="77b13900da5c1fbda76bc59d12c50c58"/></dir></dir><dir name="Form"><file name="Admin.php" hash="8e14d3f9688bb9276b289749ac103876"/><file name="Boleto.php" hash="838b429eb4963a6946570836cf248475"/><file name="Cc.php" hash="bf49ad37ddfd9c68c705ca0ed4b41072"/><file name="Recurring.php" hash="3b05247c93000b5348f48a0924d916e9"/><file name="Tef.php" hash="ddbe5dfafbdcb22ec9d4fb901452f879"/></dir><dir name="Info"><file name="Admin.php" hash="d9f032feed4a4b8a4cd2ba920556ddee"/><file name="Boleto.php" hash="65cc077e82ff199700a2741ff9e4d128"/><file name="Boletorecurring.php" hash="3c2cefde47b7fd19361402dd8330c9f7"/><file name="Cc.php" hash="1a10028a49805b73db3a621a8171e605"/><file name="Tef.php" hash="c93516fb7d7e308c1e09d9583164b17b"/></dir><dir name="Onclick"><file name="Button.php" hash="2f1b70163cae117458228219cd37b790"/><file name="MoipOnclick.php" hash="ed325429be5a897762b89e860064e6bd"/><file name="PaymentMethod.php" hash="ab03241a3dc85f8537df83e5e294d385"/><file name="ShippingAddress.php" hash="bd069a1a705a60688fed1184ac84e76f"/><file name="ShippingMethods.php" hash="3084994424c4adcc12e700ad3f5c1226"/><file name="UpdateParcelas.php" hash="e5eb7e7ac75fbfcc8fc369e95ad3811a"/></dir><dir name="Product"><dir name="List"><file name="Parcelas.php" hash="df5d74cbf099971722dede2e279afc6c"/></dir><file name="List.php" hash="881a94bac6f0dfd100c39c1416c54b07"/><dir name="View"><file name="Discount.php" hash="74daeb4dc2e02fbfec5460edf6c1acdd"/><file name="Parcelas.php" hash="1b2c92b9e10da86523341cdb1e4bb4a7"/></dir><file name="View.php" hash="54f00539a0ce45c0aecdbd05d3a0323d"/></dir><dir name="Sales"><dir name="Order"><file name="Fee.php" hash="c468eae460f961c148ae542d95fc08a0"/></dir></dir><dir name="Standard"><file name="Cancel.php" hash="e7ebf3cdb13dcb613a57c28c05786db5"/><file name="CartSave.php" hash="12122d801ff6b8be4e1011bb5b0a2fac"/><file name="Form.php" hash="f3e3e6eb00a562c2c9d9982002d919b9"/><file name="Info.php" hash="c8b5f6584a4f9509465543eff575b9bf"/><file name="Novaforma.php" hash="bb3d5b10530e42aaaf0512b1256ef520"/><file name="Redirect.php" hash="67e925c23a929f7e86b8a2ddfceb30a4"/><file name="SuccessDetails.php" hash="38bacf81b6bb7197812d382eb30c2849"/><file name="SuccessRecurring.php" hash="f10661bf737963e896abda8c76f2e900"/></dir></dir><dir name="Helper"><file name="Data.php" hash="c8446f51a9fff30e01b8dbafe5011d3f"/></dir><dir name="Model"><file name="Admin.php" hash="fbf30f6692af7accab65fc510ed1c324"/><dir name="Adminhtml"><dir name="Method"><file name="Boleto.php" hash="e18c37bc0809131bfcd2cd48e3ba26c6"/><file name="Cc.php" hash="9d7ea1d6ee3211b8b773c75caa186895"/><file name="Tef.php" hash="a9cd73fc05421ab5a57455e35be6449c"/></dir></dir><file name="Api.php" hash="0523f5f5fbc04d7946cd7f9b296a6955"/><dir name="Method"><file name="Boleto.php" hash="207360169ff21ebd28f51ce4cfbc332a"/><file name="BoletoRecurring.php" hash="4114ae194d6c40e9465985640e44526e"/><file name="Cc.php" hash="34db6def9d01fd1b0ed83cd43427f4cd"/><file name="CcRecurring.php" hash="86d7c1a4b1f6a00bf14d469ea4d6dfc1"/><file name="Tef.php" hash="97716f1e29dde587a6a997ece801a5bc"/></dir><dir name="Mysql4"><file name="Collection.php" hash="97a5f80b4f89f83884481284785e2eeb"/><file name="Write.php" hash="d942fb856c2c7eaceac6866d88d85c54"/></dir><file name="Observer.php" hash="4ae2cdd2476499ec42b3ce7c08f96943"/><file name="Orders.php" hash="8de01cfc16794f2ded44c7a04be987a3"/><file name="Recurringapi.php" hash="7ef528c88d5d5e0cdb85ca45d8a3f190"/><dir name="Resource"><file name="Custommodel.php" hash="660a4b13ed53781dca0776830d2f44ed"/></dir><dir name="Sales"><dir name="Order"><dir name="Total"><dir name="Creditmemo"><file name="Fee.php" hash="b67ac4751127fbe629f3dd18b106da4e"/></dir><dir name="Invoice"><file name="Fee.php" hash="5e48ddfd32f32b33158457ab846a474c"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Fee.php" hash="1350d2100bb7b21cd9c268f370cba155"/></dir></dir></dir></dir><dir name="Source"><file name="Ambiente.php" hash="76749ed0937e4882357b23ac74ee22a0"/><file name="FormasPagamento.php" hash="9edf4a675cd6340a5fabd19996361eb4"/><file name="Holded.php" hash="91b7d0376723f0533b024eafae411f82"/><file name="Layout.php" hash="212b1597bdbc653a2c7c0ad94e710474"/></dir><file name="Standard.php" hash="a9d1d7aa440eaa93b87f232304cb1255"/><file name="Write.php" hash="2fa2858e62c781d368e9f53faa578dc5"/></dir><dir name="controllers"><file name="IndexController.php" hash="1dec7ee7a57f7b2b86f0a6765bc6d85f"/><file name="RecurringController.php" hash="cc20758ace2c4bfa51f376caf18971b1"/><file name="StandardController.php" hash="f1185941787fa54ff0bb155261a60670"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1a54627d1dd35f685aa9fa2068ad7336"/><file name="config.xml" hash="e83def0640d09f4e7ee073bbaa1ee5cb"/><file name="system.xml" hash="759e1c721a00415d6f2ad54c2373c505"/></dir><dir name="sql"><dir name="transparente_setup"><file name="mysql4-install-0.1.0.php" hash="a670fdca751bdf66c3420cab5b05e2a9"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="81fca0fb48f978b4bfd697f17d7da05c"/><file name="mysql4-upgrade-0.1.0-0.2.2.php" hash="4026d30782262aba9040eaa9ac656dab"/><file name="mysql4-upgrade-0.2.0-0.2.1.php" hash="595c8684baa681ec619f5a0d335a4a33"/><file name="mysql4-upgrade-0.2.0-0.2.3.php" hash="596bb5051a36e2b89c57d6e65752b8d3"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="moip_transparente.xml" hash="5fdff234b2e3e62c8f1857f9bf638bba"/><file name="moip_onestepcheckout.xml" hash="d9c83c04973ad72160796f1c6859cb44"/></dir><dir name="template"><dir name="MOIP"><dir name="customer"><dir name="address"><file name="book.phtml" hash="07747e72a21de6cc5ba6afa9ccc3aed1"/><file name="edit.phtml" hash="9ea60abf23fd6d0ca04c528d75f67e35"/></dir><dir name="widget"><file name="dob.phtml" hash="fc4646c6f8f786e2e72e473bbdaf94bc"/><file name="taxvat.phtml" hash="67333f779d3c7503209ce057a3b44c34"/></dir></dir><dir name="onestepcheckout"><dir name="cadastro"><file name="CreateAccount.phtml" hash="8161a6cf78af954f671fbe39c5409e35"/><dir name="billing"><file name="billingform.phtml" hash="f7020c0f158575800cdc8d256a5ccfb0"/></dir><file name="billing.phtml" hash="601777b8bb81397682644f0b3a5bb48c"/><dir name="logged"><file name="forgotpassword.phtml" hash="01a4f512208b98042d8007151e2ae646"/><file name="login-pre.phtml" hash="c6fb46f65aa08edd7679c3b4e9277bf4"/></dir><file name="onepagejs.phtml" hash="bae17ddaed80f065bf5861a1b9a1e1bb"/></dir><dir name="daskboard"><dir name="onepage"><file name="agreements.phtml" hash="5b762aa76287b160fcbec8fed8b789e8"/><dir name="billing"><file name="billingform.phtml" hash="ab7c63247f6b3621e6113749dea1d631"/></dir><file name="billing.phtml" hash="601777b8bb81397682644f0b3a5bb48c"/><file name="coupon.phtml" hash="f53bbf81c555e3aa7f46c73e73233d16"/><file name="forgotpassword.phtml" hash="01a4f512208b98042d8007151e2ae646"/><file name="local.xml" hash="8d97f2c4d496b6a9ddf0a5453c861c80"/><file name="login.phtml" hash="08e7e9b4b3aa0b727d5ce35963de5db4"/><dir name="payment"><file name="methods.phtml" hash="0130a95f8d2e31f54b33ac701aadbdf6"/></dir><file name="payment.phtml" hash="3460a788826602c1059c2c4181ac2d27"/><dir name="review"><file name="button.phtml" hash="4d5c7c5a2d70f85ec324e79c7e81946b"/><file name="info.phtml" hash="84647398b66c129520413a957b4cb053"/><file name="info_simple.phtml" hash="423835c379f4f48f92f59fbcbbe79919"/><file name="item.phtml" hash="0634a6ab2409000d64a7f7e766935795"/><dir name="options"><file name="additional.phtml" hash="c7623ae5c2736421c911ed77fce09d4b"/></dir><file name="options.phtml" hash="35d426f28c2b87a853f811ab7a18e544"/><file name="totals.phtml" hash="2ba2a0937b2a08cd1f1bff1c8cf15c14"/><file name="totals_simple.phtml" hash="2d9a81ef0db47332f0e9c2105121c5fa"/></dir><file name="review.phtml" hash="145c515f7353809bf75113b67d014ad2"/><dir name="shipping"><file name="shipping_form.phtml" hash="0830100d1cc18a3885c39e79a00f769f"/></dir><file name="shipping.phtml" hash="09747a1b91974d35412d774cc53deb99"/><dir name="shipping_method"><file name="available.phtml" hash="8a815e7d1bc4e2b24a127c92c479e6bb"/></dir><file name="shipping_method.phtml" hash="d2b6d4e99c21febfbd122e548464e011"/></dir></dir><file name="daskboard.phtml" hash="1d1dcfd7ca58ee1fc14fb0ec491319f9"/><file name="emptyupdate.phtml" hash="7bf34446254428a5c42740731127b435"/><file name="onepagejs.phtml" hash="ba60b07df1a09cb88580cbcfb3081619"/><dir name="page"><file name="1column.phtml" hash="696ed828b609ca6f681aec0b6ee2a6d1"/><file name="footer.phtml" hash="90bac8e4118dced808b68c33a19951ec"/><file name="single-header.phtml" hash="d71dea9b988ccb1879ed17493373168a"/></dir><file name="progresso.phtml" hash="1c96e111ef12a90c9c401babf4b32bbd"/><dir name="sales"><dir name="order"><dir name="info"><file name="customermessages.phtml" hash="813c6150e0e309612f40c9aee0d63c84"/><file name="customermessages.phtml~" hash="aa6199bb564edbf6d950fa154b624c02"/><file name="deliverydate.phtml" hash="a188cdefd8c346c28dbe2737097b208e"/><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 name="product"><dir name="list"><file name="parcelas.phtml" hash="9949b22a379f0d3dd3280ac5ef2ec1aa"/></dir><dir name="view"><file name="discount.phtml" hash="c0da2db78abfa783b0371081a7022708"/><file name="parcelas.phtml" hash="819808c25f66211be0f4d8815c76ee0d"/></dir></dir><dir name="transparente"><file name="SuccessDetails.phtml" hash="4a9ce00efb864182add86a707e960373"/><file name="cartoes_my_account.phtml" hash="b344b81ca409096b299e7ed3b9ea5227"/><dir name="checkout"><dir name="sales"><dir name="order"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="92632830eb4c9da086b5f0e6e009c91c"/></dir></dir><file name="totals.phtml" hash="6477e543bda9576c165c1f6535dd210e"/></dir></dir><dir name="success"><file name="boleto.phtml" hash="7b7bf59324f817c97ce6086f3dce9a39"/><file name="success.phtml" hash="5ec122e95d05067f9cbe8b4d14e8ea1e"/></dir></dir><file name="emptyupdate.phtml" hash="5504d0197f33a3db19ae9f75b5a43b86"/><dir name="form"><file name="boleto.phtml" hash="1ce47db3c03c369c210cf84d5faf71a8"/><file name="cc.phtml" hash="101df14905e2eebda9911cfd808b1399"/><file name="recurring.phtml" hash="328096b3dd3c33e5168ef589ede3e665"/><file name="tef.phtml" hash="007b06785147218cac812540df06bae6"/></dir><file name="horizontal_form.phtml" hash="5c0faf030d2f6ab70db994a738a3802c"/><dir name="info"><file name="admin.phtml" hash="6d22084d77797f31ec3c2ddf1d553f18"/><file name="boleto.phtml" hash="5ad35332c6e26388e315c939e90f1233"/><file name="boletorecurring.phtml" hash="b009def412655e442222ae7f25859628"/><file name="cc.phtml" hash="785a305ead96710b7ca48b5f001271fd"/><file name="tef.phtml" hash="eaf549920ac0c2e73e2222bfb82d9b82"/></dir><dir name="onclick"><file name="Button.phtml" hash="d19fa9db94b23448838c4ba558b9ed0d"/><file name="LoginOnclick.phtml" hash="034b27d272993dce6664bf8e6b64d8d2"/><file name="MoipOnclick.phtml" hash="0a62dc2d7259a10705b664720cf604e0"/><file name="Parcelas.phtml" hash="566c445c3ab4c41e4c0ee1dad735883a"/><file name="PaymentMethod.phtml" hash="2f80a6d4709d3860cef1f1da4f07dc94"/><file name="ShippingAddress.phtml" hash="10ab67699295331027c985b9d89113a4"/><file name="ShippingMethods.phtml" hash="fbcb438d723cea5e62f6a2cf8fae3721"/><file name="js.phtml" hash="19049dbed5e0369303430698b94e7062"/></dir><dir name="redirect"><file name="boleto.phtml" hash="bf53ff32e92e4d7890b4d27838b6b941"/><file name="cartao.phtml" hash="1699df8b1205b1d5ab846c6b1cee0312"/><file name="layout_boleto.phtml" hash="8d91c7873e692648a7c1d9bd29091793"/><file name="transferencia.phtml" hash="bf869064e0542a95c6a2de98b276b1bc"/></dir><file name="redirect.phtml" hash="c4f7f6fb47602100f6e09f7dbe56322b"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="MOIP"><dir name="account"><dir name="system"><dir name="config"><dir name="button"><file name="button.phtml" hash="a58ebe4073491f8f6c43b890fe3a394a"/></dir></dir></dir></dir><dir name="onestepcheckout"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><dir name="info"><file name="Customermessages.phtml" hash="336f1612d37946b870e3ac5e18e52dc1"/></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 name="transparente"><file name="Novaforma.phtml" hash="49d046daa42bae37c1c5e80ff88c3e0d"/><file name="SuccessDetails.phtml" hash="2835e1bad2aeb2c6da0f1a37698a0919"/><file name="boleto.phtml" hash="51e688993d1e51662b427fb8876d4543"/><file name="cartao.phtml" hash="ab138a2c019a14bcff47a9a24f9375ac"/><file name="cartoes_my_account.phtml" hash="1614656ebf335b419e727dc77ac1872f"/><file name="emptyupdate.phtml" hash="5504d0197f33a3db19ae9f75b5a43b86"/><dir name="form"><file name="admin.phtml" hash="aeb89bec1f82fac1fa489aa8b649ba51"/><file name="boleto.phtml" hash="7837ded090d7162d8444abc92943c998"/><file name="cc.phtml" hash="36aad4686a0bbd6ccd49c82bf8aa3cc1"/><file name="cc_info.phtml" hash="1eb275e7c943dcca608c5a3038c2a41a"/><file name="tef.phtml" hash="48b06cf947ee26b27311aadae012c730"/><file name="tef_info.phtml" hash="1eb275e7c943dcca608c5a3038c2a41a"/></dir><file name="form.phtml" hash="2085219ca42621f5ab0172cba283ee1a"/><file name="horizontal_form.phtml" hash="0f662bb905c79187454513b73fce2184"/><dir name="info"><file name="admin.phtml" hash="e4d4c7d6fadf9849ba4de459a5670fcd"/><file name="boleto.phtml" hash="5ad35332c6e26388e315c939e90f1233"/><file name="cc.phtml" hash="722c9b18f1da1c58575dd0817dfca5da"/><file name="pdf.phtml" hash="4b61a33fa3736e6c461cf4e9fd983398"/><file name="tef.phtml" hash="eaf549920ac0c2e73e2222bfb82d9b82"/></dir><file name="info.phtml" hash="1eb275e7c943dcca608c5a3038c2a41a"/><dir name="redirect"><file name="boleto.phtml" hash="51e688993d1e51662b427fb8876d4543"/><file name="cartao.phtml" hash="ab138a2c019a14bcff47a9a24f9375ac"/><file name="layout_boleto.phtml" hash="8d91c7873e692648a7c1d9bd29091793"/><file name="transferencia.phtml" hash="bf869064e0542a95c6a2de98b276b1bc"/></dir><file name="redirect.phtml" hash="c6ca09427cccb6038b5eaac783d1ace7"/><file name="script.phtml" hash="1da65a08f8a6425a2f463e617d8ac9e0"/><file name="transferencia.phtml" hash="ba3d60beab741b28bdf0e037fe6730b5"/></dir></dir></dir><dir name="layout"><file name="moip_onestepcheckout.xml" hash="c560a0a699348e116b8ffeef56be490a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MOIP_All.xml" hash="5b4232633c10117c66c4054b95984c0d"/><file name="MOIP_Transparente.xml" hash="ab4257449d5d37535d98c590bc896443"/><file name="MOIP_Onestepcheckout.xml" hash="07ae6f8ec3e1bccc5001ae9a8386c3fc"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="MOIP_Onestepcheckout.csv" hash="d7fd83d1c115af767311368be3b3a2e4"/></dir><dir name="pt_BR"><file name="MOIP_Onestepcheckout.csv" hash="d7fd83d1c115af767311368be3b3a2e4"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="MOIP"><dir name="core"><dir name="css"><file name="bootstrap-modal.css" hash="89d6e243998ccb3cd89ba523c3eefcdc"/><file name="bootstrap-popover.css" hash="e1c6ddd150ea0a5da1cc3afa669ec921"/><file name="bootstrap-tabs.css" hash="6b3cdf6b171a0d6da7fdfe9f6c6ba7ec"/></dir></dir><dir name="onestepcheckout"><dir name="css"><file name="onestepcheckout.css" hash="7a1538bc463922db283a99aea3924931"/></dir><dir name="images"><file name="01.png" hash="4713bea09af9f742b6c2122f6fb59912"/><file name="02.png" hash="15cb983a16c4c1d8be6479ae5de625e6"/><file name="03.png" hash="3bc178975c6f25aecdaebbb7e86adaea"/><file name="04.png" hash="68ae3a414c70c12f340e7c801d854c53"/><file name="05.png" hash="6e8fe636f0593ed3cf00d140e68d2308"/><file name="ajax-loader-tr.gif" hash="6aadaa7b6f0a72ec38b7ca13c35e76f3"/><file name="bkg-giftmessage.png" hash="e0dc9f84c687af088bcc04e3ea200e0b"/><file name="bkg-step-review.png" hash="5acb4aba6f616dabbd8c94581d99122c"/><file name="error-icon.jpg" hash="8e44669e97a57d1d5cd00cb8b42fb506"/><file name="fancy_title_over.png" hash="b886fd165d4b7ac77d41fb52d87ffc60"/><file name="loja_segura.jpg" hash="327ad46c035ce265eaa5c5d85c0aa57a"/><file name="opc-ajax-loader.gif" hash="c289d3760794d891738c3de9a25bd298"/><file name="passed-icon.jpg" hash="c7b3467752d8ab38c8bcde4baaad505f"/><file name="validation_advice_bg.gif" hash="4903665d3dff3903fd31f87b82dffbd5"/></dir></dir><dir name="transparente"><dir name="css"><file name="cartao_save.css" hash="c6f20ba395b66de7abbec30b980de70d"/><file name="form.css" hash="a20913a06033cfa33f332d5c181aaf57"/><file name="redirect.css" hash="9e8385d037fa8690df6052ec051afc82"/></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="Elo.jpg" hash="d849a077b3033a5593b948c637ce99eb"/><file name="Elo.png" hash="dac4f02eb184c9e950bbcaf5d788f04d"/><file name="Hiper.jpg" hash="bce8dd2429c800aca14d9c5291a20abf"/><file name="Hiper.png" hash="fb470078d57f645fdbcc8405776a769e"/><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="ajax-loader.gif" hash="a6addc833d7e5401b13e3e6368854181"/><dir name="azul"><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/></dir><file name="banktransfer.png" hash="097193377d68a8d249534e7b097b17f3"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto.png" hash="270edbd8f289228beb39d300da96029e"/><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="24d2a4e6a39d33a263f2605bb1fdf9dd"/><file name="e-sedex.png" hash="19c04d68032987d594c4da51e3b66094"/><file name="pac.gif" hash="9e6328e16b3d29e94fcd6987c605ee90"/><file name="pac.png" hash="17aaff70f9924a8e37166429ceae549e"/><file name="sedex.gif" hash="9019cbbbf623e0ba58d5f3c7c81c3ee2"/><file name="sedex.png" hash="15e2831cad72756b9a9bf99a6e2af5e5"/></dir><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="freeshipping_freeshipping.gif" hash="cfc75257c8e52ff1b0a9e2f957667cec"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moip_boleto.png" hash="c7619a9e9c0978df5a3b87b45dbc616f"/><file name="moip_brands_card.jpg" hash="a01377d0afa7ddd802a286c249ffcb90"/><file name="moip_cc.png" hash="cd1c4b1210235e1ec371370b185f75b1"/><file name="moip_tef.png" hash="097193377d68a8d249534e7b097b17f3"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><dir name="preto"><file name="ababoleto.png" hash="a728ac886e7e57744e62bba2c7b0b969"/><file name="abacartao.png" hash="50b6103cb5b7e51a27f3c26eaa7411d0"/><file name="abatransf.png" hash="61eec388356aea3230fc5d811ef996ea"/></dir><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></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="MOIP"><dir name="transparente"><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="Elo.jpg" hash="dac4f02eb184c9e950bbcaf5d788f04d"/><file name="Elo.png" hash="dac4f02eb184c9e950bbcaf5d788f04d"/><file name="Hiper.jpg" hash="fb470078d57f645fdbcc8405776a769e"/><file name="Hiper.png" hash="fb470078d57f645fdbcc8405776a769e"/><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="btn-login-moip.png" hash="3459add85a9d0d069cdf6ea0cc5d2814"/><file name="moip_brands_card.jpg" hash="738ed90e8f040993ef9ebfb1517482d6"/><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"/></dir></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="MOIP"><dir name="core"><file name="bootstrap-modal.js" hash="33eee22cac655155b91eadd1e7b6e417"/><file name="bootstrap-tab.js" hash="ceef3daf42068b97915c25e392f81b8b"/><file name="bootstrap.min.js" hash="4becdc9104623e891fbb9d38bba01be4"/><file name="jquery.js" hash="315136162c3a659832e0f3bc79377315"/><file name="jquery_noconflict.js" hash="d41c4c89089b9e7e06a4a104ae37018f"/></dir><file name="jquery.js" hash="f8e2833ce2f57ec673b178be7eefbd82"/><file name="jquery.mask.min.js" hash="c5e89b28b44bdd0319c64fb6451a819d"/><file name="jquery_noconflict.js" hash="3edd24e3725ffc4569238df773b805f8"/><dir name="onestepcheckout"><file name="billing.js" hash="9d5f468c9e8d10e32781d347f2b8e41b"/><file name="change-events.js" hash="7a56dfda6d371393034912ff702f1830"/><file name="shipping.js" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="transparente"><file name="moip.js" hash="5667e0ae375ce0af1701f0b65189f0d7"/><file name="oneclick.js" hash="c57e4938898692222f825a2bb3ca0238"/></dir><file name="validacao.js" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></target></contents>
|
| 21 |
<compatible/>
|
| 22 |
-
<dependencies><required><php><min>5.0.0</min><max>15.5.5</max></php><extension><name>openssl</name><min>1</min><max>1</max></extension><extension><name>
|
| 23 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>o2ti_moip</name>
|
| 4 |
+
<version>2.0.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://moip.com/licensa_checkout_transparente.txt">Exclusivo para clientes Moip Pagamentos S/A</license>
|
| 7 |
<channel>community</channel>
|
| 13 |

|
| 14 |

|
| 15 |
</description>
|
| 16 |
+
<notes>Ajuste na ACL para Evento Consultar Status no Moip</notes>
|
| 17 |
<authors><author><name>MOIP</name><user>moip</user><email>contato@o2ti.com</email></author></authors>
|
| 18 |
+
<date>2016-07-11</date>
|
| 19 |
+
<time>20:28:21</time>
|
| 20 |
+
<contents><target name="magelocal"><dir name="MOIP"><dir name="All"><dir name="Helper"><file name="Data.php" hash="10b776758585cb50355c0d6d0a5fdd5b"/></dir><dir name="etc"><file name="config.xml" hash="f6612823c717080d755692bfa97f6e2f"/><file name="system.xml" hash="825545991621cd6e0fc34a19476d78cc"/></dir></dir><dir name="Onestepcheckout"><dir name="Block"><dir name="Adminhtml"><dir name="Onestepcheckout"><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><dir name="Info"><file name="Customermessages.php" hash="ddb3c364bb288b2e48f5ca20dbaf262b"/></dir></dir></dir></dir></dir></dir><dir name="System"><dir name="Config"><file name="Editor.php" hash="620ffe2b11d51c059aae85d069d17dd9"/></dir></dir></dir><dir name="Checkout"><dir name="Cart"><file name="Promotion.php" hash="40ade64028b400796d0fb77060703370"/></dir><dir name="Onepage"><dir name="Billing"><file name="Sortbilling.php" hash="aac00cf619be021d627bc6d6e0632247"/></dir><file name="Billing.php" hash="c41241da962110ee7bca3c7656148bde"/><dir name="Review"><file name="Info.php" hash="8585d5415e0589c9ffc53c160921cdb0"/><file name="Options.php" hash="7e3a4f53f4d687536ae3ff80728c0cc4"/></dir><file name="Shipping.php" hash="40b5b13c8408bac25d7eb45f6ddbdc86"/></dir></dir><file name="Onestepcheckout.php" hash="f6a3bc3e394fbadd34985586f71ee782"/></dir><dir name="Helper"><file name="Data.php" hash="5c19376368e6b2f744b448f0012f693e"/></dir><dir name="Model"><dir name="Customer"><file name="Customer.php" hash="f038378053e082fea387c16056624540"/></dir><dir name="Mysql4"><dir name="Onestepcheckout"><file name="Collection.php" hash="cb452401f753d3cd63196488d2985e09"/></dir><file name="Onestepcheckout.php" hash="370e27b4bdd3d450fff995f94bc74ad3"/></dir><file name="Observer.php" hash="e8b37e9fb11cf2f47eb61d1629927ed1"/><file name="Onestepcheckout.php" hash="90db8eeb14fc762e79098edfac0684f8"/><dir name="Sales"><dir name="Quote"><file name="Address.php" hash="904bdc6b5836ccdbb91810dba55b4a4b"/></dir></dir><file name="Status.php" hash="cd2132bb22a1992e6ea762586391733b"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Checkuncheck.php" hash="febcb4b243d5e09ae7b77d603af45d63"/><file name="Disablefield.php" hash="196dcdb92863dbe110a8edc0be4cf953"/><file name="Optionaddfield.php" hash="574f6f8d27245ab4f0d0362372f5082d"/><file name="Optionhidefield.php" hash="0cf65ef82933d93293eaada3125c3b1d"/><file name="Pagelayout.php" hash="b6ca9f9394e84806aecc39f5e62c11d5"/><dir name="Payment"><file name="Allowedmethods.php" hash="d1f4b5a2e79f2f9378fb58a88ce2732b"/></dir><file name="Subscribenewletter.php" hash="a4c99e4f5417aa1b6d42364f4c83258c"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="84956d00de1473ad3bf4a9098a037d46"/><file name="OrderController.php" hash="67f444751f3bc90bf9a4eca8e5e16c02"/><file name="TestController.php" hash="0ee82be0e1607d92fb4afa2bc6886b57"/></dir><dir name="etc"><file name="config.xml" hash="65ff724e6fe0f2e4125c9fb83afa3915"/><file name="system.xml" hash="494ffb0859c8616f2afc0002d2ab3e12"/></dir><dir name="sql"><dir name="moip_onestepcheckout_setup"><file name="mysql4-install-0.1.0.php" hash="31ccf46f0461f0c69d6af5962f69f4df"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></dir><dir name="Transparente"><dir name="Block"><dir name="Adminhtml"><dir name="Info"><file name="Boleto.php" hash="8839b160428c9bbe482c79a9637e9889"/><file name="Cc.php" hash="2e457a673e02024472f8145201cfb519"/><file name="Tef.php" hash="aaf85a2846426db34534c56eacbe3f01"/></dir><dir name="Sales"><dir name="Order"><dir name="Create"><dir name="Totals"><file name="Fee.php" hash="ff5c32dc11ba021ce5a08feece2c95c8"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><dir name="Modules"><file name="Header.php" hash="b0fd3aa33c52191c41a486f3077f3564"/><file name="Oauth.php" hash="0d7425a67467f24348edb88a15fef4ea"/><file name="Reset.php" hash="66b629c16de08ffaf1826df704ff3158"/></dir></dir></dir></dir></dir><dir name="moip"><dir name="Info"><file name="Boleto.php" hash="65cc077e82ff199700a2741ff9e4d128"/><file name="Cc.php" hash="386ec65663d683c611a6f53d7e90365d"/><file name="Info.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Tef.php" hash="c93516fb7d7e308c1e09d9583164b17b"/></dir></dir></dir><dir name="Checkout"><dir name="Totals"><file name="Fee.php" hash="77b13900da5c1fbda76bc59d12c50c58"/></dir></dir><dir name="Form"><file name="Admin.php" hash="8e14d3f9688bb9276b289749ac103876"/><file name="Boleto.php" hash="838b429eb4963a6946570836cf248475"/><file name="Cc.php" hash="bf49ad37ddfd9c68c705ca0ed4b41072"/><file name="Recurring.php" hash="3b05247c93000b5348f48a0924d916e9"/><file name="Tef.php" hash="ddbe5dfafbdcb22ec9d4fb901452f879"/></dir><dir name="Info"><file name="Admin.php" hash="d9f032feed4a4b8a4cd2ba920556ddee"/><file name="Boleto.php" hash="65cc077e82ff199700a2741ff9e4d128"/><file name="Boletorecurring.php" hash="3c2cefde47b7fd19361402dd8330c9f7"/><file name="Cc.php" hash="1a10028a49805b73db3a621a8171e605"/><file name="Tef.php" hash="c93516fb7d7e308c1e09d9583164b17b"/></dir><dir name="Onclick"><file name="Button.php" hash="2f1b70163cae117458228219cd37b790"/><file name="MoipOnclick.php" hash="ed325429be5a897762b89e860064e6bd"/><file name="PaymentMethod.php" hash="ab03241a3dc85f8537df83e5e294d385"/><file name="ShippingAddress.php" hash="bd069a1a705a60688fed1184ac84e76f"/><file name="ShippingMethods.php" hash="3084994424c4adcc12e700ad3f5c1226"/><file name="UpdateParcelas.php" hash="e5eb7e7ac75fbfcc8fc369e95ad3811a"/></dir><dir name="Product"><dir name="List"><file name="Parcelas.php" hash="df5d74cbf099971722dede2e279afc6c"/></dir><file name="List.php" hash="881a94bac6f0dfd100c39c1416c54b07"/><dir name="View"><file name="Discount.php" hash="e6b117d907f624e50b63594435f208e9"/><file name="Parcelas.php" hash="1b2c92b9e10da86523341cdb1e4bb4a7"/></dir><file name="View.php" hash="54f00539a0ce45c0aecdbd05d3a0323d"/></dir><dir name="Sales"><dir name="Order"><file name="Fee.php" hash="cef1608deab17b77a7351be6666ecf47"/><file name="Grid.php" hash="f62513609fae2fa70206c81b79349ed6"/></dir></dir><dir name="Standard"><file name="Cancel.php" hash="e7ebf3cdb13dcb613a57c28c05786db5"/><file name="CartSave.php" hash="12122d801ff6b8be4e1011bb5b0a2fac"/><file name="Details.php" hash="469e5a429afa6d24c079f8ca496049a0"/><file name="Form.php" hash="f3e3e6eb00a562c2c9d9982002d919b9"/><file name="Info.php" hash="c8b5f6584a4f9509465543eff575b9bf"/><file name="Moip.php" hash="611509d1e4c6c95b75cf6e1b940d026e"/></dir></dir><dir name="Helper"><file name="Data.php" hash="c8446f51a9fff30e01b8dbafe5011d3f"/></dir><dir name="Model"><file name="Admin.php" hash="fbf30f6692af7accab65fc510ed1c324"/><dir name="Adminhtml"><dir name="Method"><file name="Boleto.php" hash="e18c37bc0809131bfcd2cd48e3ba26c6"/><file name="Cc.php" hash="9d7ea1d6ee3211b8b773c75caa186895"/><file name="Tef.php" hash="a9cd73fc05421ab5a57455e35be6449c"/></dir></dir><file name="Api.php" hash="0523f5f5fbc04d7946cd7f9b296a6955"/><dir name="Method"><file name="Boleto.php" hash="d2ef98ff810961c9c31740585355f314"/><file name="BoletoRecurring.php" hash="367edcc2f3261d8fb35ae05b30ce684c"/><file name="Cc.php" hash="61240ba55ad0312370f3d387da10c7b5"/><file name="CcRecurring.php" hash="01d8ef7c71289a9d6ae5ac5934c5e683"/><file name="Tef.php" hash="58d09e3bff62924c748349daf611477b"/></dir><dir name="Mysql4"><file name="Collection.php" hash="97a5f80b4f89f83884481284785e2eeb"/><file name="Write.php" hash="d942fb856c2c7eaceac6866d88d85c54"/></dir><file name="Observer.php" hash="dc343f6fbe9df1d5b8e1f221df9a32bc"/><file name="Orders.php" hash="8de01cfc16794f2ded44c7a04be987a3"/><file name="Recurringapi.php" hash="7ef528c88d5d5e0cdb85ca45d8a3f190"/><dir name="Resource"><file name="Custommodel.php" hash="660a4b13ed53781dca0776830d2f44ed"/></dir><dir name="Sales"><dir name="Order"><dir name="Total"><dir name="Creditmemo"><file name="Fee.php" hash="b67ac4751127fbe629f3dd18b106da4e"/></dir><dir name="Invoice"><file name="Fee.php" hash="5e48ddfd32f32b33158457ab846a474c"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Fee.php" hash="99d0f73104760235f7bca635427c466e"/></dir></dir></dir></dir><dir name="Source"><file name="Ambiente.php" hash="612fa8389aad13680c784e8f514547ce"/><file name="FormasPagamento.php" hash="9edf4a675cd6340a5fabd19996361eb4"/><file name="Holded.php" hash="91b7d0376723f0533b024eafae411f82"/><file name="Layout.php" hash="212b1597bdbc653a2c7c0ad94e710474"/></dir><file name="Standard.php" hash="22b3c0983156d5d1c181281c8d483f38"/><file name="Write.php" hash="2fa2858e62c781d368e9f53faa578dc5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StatusmoipController.php" hash="ca0b2e77090644296acdbe4b3a20fe27"/></dir><file name="IndexController.php" hash="1dec7ee7a57f7b2b86f0a6765bc6d85f"/><file name="RecurringController.php" hash="97a239da6a985ae20acf5068590b35d3"/><file name="StandardController.php" hash="7d100a1343454f05b895431420e2fb55"/></dir><dir name="etc"><file name="adminhtml.xml" hash="a35a4bd1ffac3b9e1001dce6a4d857ea"/><file name="config.xml" hash="ea9e7bf9f9ff5d8695795c0ff6ac5b54"/><file name="system.xml" hash="d2ff234ae84dcaffae3dccf621071fb6"/></dir><dir name="sql"><dir name="transparente_setup"><file name="mysql4-install-0.1.0.php" hash="a670fdca751bdf66c3420cab5b05e2a9"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="81fca0fb48f978b4bfd697f17d7da05c"/><file name="mysql4-upgrade-0.1.0-0.2.2.php" hash="45596eaf03c16ff5ead4d8c6166876dd"/><file name="mysql4-upgrade-0.2.0-0.2.1.php" hash="595c8684baa681ec619f5a0d335a4a33"/><file name="mysql4-upgrade-0.2.0-0.2.3.php" hash="596bb5051a36e2b89c57d6e65752b8d3"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="moip_transparente.xml" hash="c93fe33e811520f8423448da4c19ec7d"/><file name="moip_onestepcheckout.xml" hash="d9c83c04973ad72160796f1c6859cb44"/></dir><dir name="template"><dir name="MOIP"><dir name="customer"><dir name="address"><file name="book.phtml" hash="07747e72a21de6cc5ba6afa9ccc3aed1"/><file name="edit.phtml" hash="9ea60abf23fd6d0ca04c528d75f67e35"/></dir><dir name="widget"><file name="dob.phtml" hash="fc4646c6f8f786e2e72e473bbdaf94bc"/><file name="taxvat.phtml" hash="67333f779d3c7503209ce057a3b44c34"/></dir></dir><dir name="onestepcheckout"><dir name="cadastro"><file name="CreateAccount.phtml" hash="9171d497068f17c38bc19765bbc4e8d8"/><dir name="billing"><file name="billingform.phtml" hash="f7020c0f158575800cdc8d256a5ccfb0"/></dir><file name="billing.phtml" hash="601777b8bb81397682644f0b3a5bb48c"/><dir name="logged"><file name="forgotpassword.phtml" hash="01a4f512208b98042d8007151e2ae646"/><file name="login-pre.phtml" hash="c6fb46f65aa08edd7679c3b4e9277bf4"/></dir><file name="onepagejs.phtml" hash="bae17ddaed80f065bf5861a1b9a1e1bb"/></dir><dir name="daskboard"><dir name="onepage"><file name="agreements.phtml" hash="5b762aa76287b160fcbec8fed8b789e8"/><dir name="billing"><file name="billingform.phtml" hash="ab7c63247f6b3621e6113749dea1d631"/></dir><file name="billing.phtml" hash="601777b8bb81397682644f0b3a5bb48c"/><file name="coupon.phtml" hash="f53bbf81c555e3aa7f46c73e73233d16"/><file name="forgotpassword.phtml" hash="01a4f512208b98042d8007151e2ae646"/><file name="local.xml" hash="8d97f2c4d496b6a9ddf0a5453c861c80"/><file name="login.phtml" hash="08e7e9b4b3aa0b727d5ce35963de5db4"/><dir name="payment"><file name="methods.phtml" hash="1040c9c4592c1e37e955bbf7333e3d40"/></dir><file name="payment.phtml" hash="3460a788826602c1059c2c4181ac2d27"/><dir name="review"><file name="button.phtml" hash="4d5c7c5a2d70f85ec324e79c7e81946b"/><file name="info.phtml" hash="84647398b66c129520413a957b4cb053"/><file name="info_simple.phtml" hash="423835c379f4f48f92f59fbcbbe79919"/><file name="item.phtml" hash="0634a6ab2409000d64a7f7e766935795"/><dir name="options"><file name="additional.phtml" hash="c7623ae5c2736421c911ed77fce09d4b"/></dir><file name="options.phtml" hash="35d426f28c2b87a853f811ab7a18e544"/><file name="totals.phtml" hash="2ba2a0937b2a08cd1f1bff1c8cf15c14"/><file name="totals_simple.phtml" hash="2d9a81ef0db47332f0e9c2105121c5fa"/></dir><file name="review.phtml" hash="145c515f7353809bf75113b67d014ad2"/><dir name="shipping"><file name="shipping_form.phtml" hash="0830100d1cc18a3885c39e79a00f769f"/></dir><file name="shipping.phtml" hash="09747a1b91974d35412d774cc53deb99"/><dir name="shipping_method"><file name="available.phtml" hash="8d6072dcd22fd6b337446b431d51486f"/></dir><file name="shipping_method.phtml" hash="d2b6d4e99c21febfbd122e548464e011"/></dir></dir><file name="daskboard.phtml" hash="555f59fd6b84e6861f48c363e0db7787"/><file name="emptyupdate.phtml" hash="7bf34446254428a5c42740731127b435"/><file name="onepagejs.phtml" hash="d398d4313e4057cc2eb4786dc68870b2"/><dir name="page"><file name="1column.phtml" hash="696ed828b609ca6f681aec0b6ee2a6d1"/><file name="single-header.phtml" hash="be37e386b842ccefa64e84522b41cca9"/></dir><file name="progresso.phtml" hash="1c96e111ef12a90c9c401babf4b32bbd"/><dir name="sales"><dir name="order"><dir name="info"><file name="customermessages.phtml" hash="813c6150e0e309612f40c9aee0d63c84"/><file name="customermessages.phtml~" hash="aa6199bb564edbf6d950fa154b624c02"/><file name="deliverydate.phtml" hash="a188cdefd8c346c28dbe2737097b208e"/><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 name="product"><dir name="list"><file name="parcelas.phtml" hash="9949b22a379f0d3dd3280ac5ef2ec1aa"/></dir><dir name="view"><file name="discount.phtml" hash="cc889e15df4c86536c2e0315d1b87625"/><file name="parcelas.phtml" hash="819808c25f66211be0f4d8815c76ee0d"/></dir></dir><dir name="transparente"><file name="cartoes_my_account.phtml" hash="b344b81ca409096b299e7ed3b9ea5227"/><dir name="checkout"><dir name="sales"><dir name="order"><dir name="items"><dir name="renderer"><file name="default.phtml" hash="92632830eb4c9da086b5f0e6e009c91c"/></dir></dir><file name="totals.phtml" hash="6477e543bda9576c165c1f6535dd210e"/></dir></dir><dir name="success"><file name="details.phtml" hash="464b90a6102b99f22a291aed1f142e43"/><dir name="method"><file name="boleto.phtml" hash="579b57729746ce0f3917114480426c8a"/><file name="boletorecorrente.phtml" hash="1dcff92491bc4cc4690658d10ad1885d"/><file name="cartao.phtml" hash="8d28c1e2a1f61d068d1375d298533f28"/><file name="transferencia.phtml" hash="160f19c89fe4dfecafeb17b46154507e"/></dir><file name="moip.phtml" hash="9e490e0d0af3afcfb22c458b41835f16"/></dir></dir><dir name="form"><file name="boleto.phtml" hash="1ce47db3c03c369c210cf84d5faf71a8"/><file name="cc.phtml" hash="101df14905e2eebda9911cfd808b1399"/><file name="recurring.phtml" hash="328096b3dd3c33e5168ef589ede3e665"/><file name="tef.phtml" hash="007b06785147218cac812540df06bae6"/></dir><dir name="info"><file name="admin.phtml" hash="6d22084d77797f31ec3c2ddf1d553f18"/><file name="boleto.phtml" hash="e33fe64c9ebbcb6acf93f2443ad1b7a6"/><file name="boletorecurring.phtml" hash="4c2cb2221c73fc88bba2d5ec0b4f3778"/><file name="cc.phtml" hash="58875bd758527e9837cb763e3807d1d3"/><file name="tef.phtml" hash="946883a549fdabae0590dac1d6365d76"/></dir><dir name="onclick"><file name="Button.phtml" hash="d19fa9db94b23448838c4ba558b9ed0d"/><file name="LoginOnclick.phtml" hash="034b27d272993dce6664bf8e6b64d8d2"/><file name="MoipOnclick.phtml" hash="0a62dc2d7259a10705b664720cf604e0"/><file name="Parcelas.phtml" hash="566c445c3ab4c41e4c0ee1dad735883a"/><file name="PaymentMethod.phtml" hash="2f80a6d4709d3860cef1f1da4f07dc94"/><file name="ShippingAddress.phtml" hash="10ab67699295331027c985b9d89113a4"/><file name="ShippingMethods.phtml" hash="c8f4647232ef8f5a5efdbba19911ba16"/><file name="js.phtml" hash="19049dbed5e0369303430698b94e7062"/></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="MOIP"><dir name="onestepcheckout"><dir name="sales"><dir name="order"><dir name="view"><dir name="tab"><dir name="info"><file name="Customermessages.phtml" hash="336f1612d37946b870e3ac5e18e52dc1"/></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 name="transparente"><file name="Novaforma.phtml" hash="49d046daa42bae37c1c5e80ff88c3e0d"/><file name="SuccessDetails.phtml" hash="2835e1bad2aeb2c6da0f1a37698a0919"/><file name="boleto.phtml" hash="51e688993d1e51662b427fb8876d4543"/><file name="cartao.phtml" hash="ab138a2c019a14bcff47a9a24f9375ac"/><file name="cartoes_my_account.phtml" hash="1614656ebf335b419e727dc77ac1872f"/><file name="emptyupdate.phtml" hash="5504d0197f33a3db19ae9f75b5a43b86"/><dir name="form"><file name="admin.phtml" hash="aeb89bec1f82fac1fa489aa8b649ba51"/><file name="boleto.phtml" hash="7837ded090d7162d8444abc92943c998"/><file name="cc.phtml" hash="36aad4686a0bbd6ccd49c82bf8aa3cc1"/><file name="cc_info.phtml" hash="1eb275e7c943dcca608c5a3038c2a41a"/><file name="tef.phtml" hash="48b06cf947ee26b27311aadae012c730"/><file name="tef_info.phtml" hash="1eb275e7c943dcca608c5a3038c2a41a"/></dir><file name="form.phtml" hash="2085219ca42621f5ab0172cba283ee1a"/><file name="horizontal_form.phtml" hash="0f662bb905c79187454513b73fce2184"/><dir name="info"><file name="admin.phtml" hash="e4d4c7d6fadf9849ba4de459a5670fcd"/><file name="boleto.phtml" hash="5ad35332c6e26388e315c939e90f1233"/><file name="cc.phtml" hash="722c9b18f1da1c58575dd0817dfca5da"/><file name="pdf.phtml" hash="4b61a33fa3736e6c461cf4e9fd983398"/><file name="tef.phtml" hash="eaf549920ac0c2e73e2222bfb82d9b82"/></dir><file name="info.phtml" hash="1eb275e7c943dcca608c5a3038c2a41a"/><dir name="redirect"><file name="boleto.phtml" hash="51e688993d1e51662b427fb8876d4543"/><file name="cartao.phtml" hash="ab138a2c019a14bcff47a9a24f9375ac"/><file name="layout_boleto.phtml" hash="8d91c7873e692648a7c1d9bd29091793"/><file name="transferencia.phtml" hash="bf869064e0542a95c6a2de98b276b1bc"/></dir><file name="redirect.phtml" hash="c6ca09427cccb6038b5eaac783d1ace7"/><file name="script.phtml" hash="1da65a08f8a6425a2f463e617d8ac9e0"/><file name="transferencia.phtml" hash="ba3d60beab741b28bdf0e037fe6730b5"/></dir></dir></dir><dir name="layout"><file name="moip_onestepcheckout.xml" hash="c560a0a699348e116b8ffeef56be490a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MOIP_All.xml" hash="5b4232633c10117c66c4054b95984c0d"/><file name="MOIP_Transparente.xml" hash="ab4257449d5d37535d98c590bc896443"/><file name="MOIP_Onestepcheckout.xml" hash="07ae6f8ec3e1bccc5001ae9a8386c3fc"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="MOIP_Onestepcheckout.csv" hash="d7fd83d1c115af767311368be3b3a2e4"/></dir><dir name="pt_BR"><file name="MOIP_Onestepcheckout.csv" hash="d7fd83d1c115af767311368be3b3a2e4"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="MOIP"><dir name="core"><dir name="css"><file name="bootstrap-modal.css" hash="89d6e243998ccb3cd89ba523c3eefcdc"/><file name="bootstrap-popover.css" hash="08c4328bd5e5f8abda2f2d89f45bb2cc"/><file name="bootstrap-tabs.css" hash="6b3cdf6b171a0d6da7fdfe9f6c6ba7ec"/></dir></dir><dir name="onestepcheckout"><dir name="css"><file name="onestepcheckout.css" hash="c1c7da27794cbcd7c5eced7fb80fd1a9"/></dir><dir name="images"><file name="01.png" hash="4713bea09af9f742b6c2122f6fb59912"/><file name="02.png" hash="15cb983a16c4c1d8be6479ae5de625e6"/><file name="03.png" hash="3bc178975c6f25aecdaebbb7e86adaea"/><file name="04.png" hash="68ae3a414c70c12f340e7c801d854c53"/><file name="05.png" hash="6e8fe636f0593ed3cf00d140e68d2308"/><file name="ajax-loader-tr.gif" hash="6aadaa7b6f0a72ec38b7ca13c35e76f3"/><file name="bkg-giftmessage.png" hash="e0dc9f84c687af088bcc04e3ea200e0b"/><file name="bkg-step-review.png" hash="5acb4aba6f616dabbd8c94581d99122c"/><file name="error-icon.jpg" hash="8e44669e97a57d1d5cd00cb8b42fb506"/><file name="loja_segura.jpg" hash="327ad46c035ce265eaa5c5d85c0aa57a"/><file name="opc-ajax-loader.gif" hash="c289d3760794d891738c3de9a25bd298"/><file name="passed-icon.jpg" hash="c7b3467752d8ab38c8bcde4baaad505f"/><file name="validation_advice_bg.gif" hash="4903665d3dff3903fd31f87b82dffbd5"/></dir></dir><dir name="transparente"><dir name="css"><file name="cartao_save.css" hash="c6f20ba395b66de7abbec30b980de70d"/><file name="form.css" hash="228db5c73466c230944040e1de633632"/><file name="product_view.css" hash="e49cb7b48c97e92aef8db81e2111ca68"/><file name="redirect.css" hash="9e8385d037fa8690df6052ec051afc82"/></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="Elo.jpg" hash="d849a077b3033a5593b948c637ce99eb"/><file name="Elo.png" hash="dac4f02eb184c9e950bbcaf5d788f04d"/><file name="Hiper.jpg" hash="bce8dd2429c800aca14d9c5291a20abf"/><file name="Hiper.png" hash="fb470078d57f645fdbcc8405776a769e"/><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="ajax-loader.gif" hash="a6addc833d7e5401b13e3e6368854181"/><dir name="azul"><file name="ababoleto.png" hash="47e3ede4db46d5938a68f126bb68bcfe"/><file name="abacartao.png" hash="667954485c4082bafa84920073288453"/><file name="abatransf.png" hash="0623c4cf50653b9c13d12cca5eed43f6"/></dir><file name="banktransfer.png" hash="097193377d68a8d249534e7b097b17f3"/><file name="bb.png" hash="572914d1e4b635dc56cd507c6c46b023"/><file name="boleto.png" hash="270edbd8f289228beb39d300da96029e"/><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="24d2a4e6a39d33a263f2605bb1fdf9dd"/><file name="e-sedex.png" hash="19c04d68032987d594c4da51e3b66094"/><file name="pac.gif" hash="9e6328e16b3d29e94fcd6987c605ee90"/><file name="pac.png" hash="17aaff70f9924a8e37166429ceae549e"/><file name="sedex.gif" hash="9019cbbbf623e0ba58d5f3c7c81c3ee2"/><file name="sedex.png" hash="15e2831cad72756b9a9bf99a6e2af5e5"/></dir><file name="codigo-seguranca.png" hash="b1cdecab044511593083ff18033d4e4f"/><file name="freeshipping_freeshipping.gif" hash="cfc75257c8e52ff1b0a9e2f957667cec"/><file name="moip.png" hash="14273d22979881d4a57c960b952866e3"/><file name="moip_boleto.png" hash="c7619a9e9c0978df5a3b87b45dbc616f"/><file name="moip_boletorecurring.png" hash="c7619a9e9c0978df5a3b87b45dbc616f"/><file name="moip_brands_card.jpg" hash="a01377d0afa7ddd802a286c249ffcb90"/><file name="moip_cc.png" hash="cd1c4b1210235e1ec371370b185f75b1"/><file name="moip_ccrecurring.png" hash="cd1c4b1210235e1ec371370b185f75b1"/><file name="moip_tef.png" hash="097193377d68a8d249534e7b097b17f3"/><file name="moiphiper.png" hash="c25430ddd8e441cc2fc3ef68219e7668"/><file name="moipmaster.png" hash="836466c092121163320e9e6279f11f8b"/><file name="moipvisa.png" hash="cc0709d50773fa2815f7bfeb741a4219"/><dir name="preto"><file name="ababoleto.png" hash="a728ac886e7e57744e62bba2c7b0b969"/><file name="abacartao.png" hash="50b6103cb5b7e51a27f3c26eaa7411d0"/><file name="abatransf.png" hash="61eec388356aea3230fc5d811ef996ea"/></dir><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></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="MOIP"><dir name="transparente"><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="Elo.jpg" hash="dac4f02eb184c9e950bbcaf5d788f04d"/><file name="Elo.png" hash="dac4f02eb184c9e950bbcaf5d788f04d"/><file name="Hiper.jpg" hash="fb470078d57f645fdbcc8405776a769e"/><file name="Hiper.png" hash="fb470078d57f645fdbcc8405776a769e"/><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="btn-login-moip.png" hash="3459add85a9d0d069cdf6ea0cc5d2814"/><file name="moip_brands_card.jpg" hash="738ed90e8f040993ef9ebfb1517482d6"/><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"/></dir></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="MOIP"><dir name="core"><file name="bootstrap-modal.js" hash="33eee22cac655155b91eadd1e7b6e417"/><file name="bootstrap-tab.js" hash="ceef3daf42068b97915c25e392f81b8b"/><file name="bootstrap.min.js" hash="4becdc9104623e891fbb9d38bba01be4"/><file name="jquery.js" hash="315136162c3a659832e0f3bc79377315"/><file name="jquery_noconflict.js" hash="d41c4c89089b9e7e06a4a104ae37018f"/></dir><file name="jquery.js" hash="f8e2833ce2f57ec673b178be7eefbd82"/><file name="jquery.mask.min.js" hash="c5e89b28b44bdd0319c64fb6451a819d"/><file name="jquery_noconflict.js" hash="3edd24e3725ffc4569238df773b805f8"/><dir name="onestepcheckout"><file name="billing.js" hash="9d5f468c9e8d10e32781d347f2b8e41b"/><file name="change-events.js" hash="7a56dfda6d371393034912ff702f1830"/><file name="shipping.js" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="transparente"><file name="moip.js" hash="f81a74e8700d2b55fbec4d5e7d1ea601"/><file name="oneclick.js" hash="c57e4938898692222f825a2bb3ca0238"/></dir><file name="validacao.js" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir></target></contents>
|
| 21 |
<compatible/>
|
| 22 |
+
<dependencies><required><php><min>5.0.0</min><max>15.5.5</max></php><extension><name>openssl</name><min>1</min><max>1</max></extension><extension><name>apache</name><min>1</min><max>1</max></extension><extension><name>mcrypt</name><min>1</min><max>1</max></extension></required></dependencies>
|
| 23 |
</package>
|
skin/frontend/base/default/MOIP/core/css/bootstrap-popover.css
CHANGED
|
@@ -136,4 +136,7 @@ ul.product_view_bandeiras li {
|
|
| 136 |
}
|
| 137 |
div#parecelas-view {
|
| 138 |
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
| 139 |
}
|
| 136 |
}
|
| 137 |
div#parecelas-view {
|
| 138 |
cursor: pointer;
|
| 139 |
+
}
|
| 140 |
+
.popover {
|
| 141 |
+
min-width: 280px;
|
| 142 |
}
|
skin/frontend/base/default/MOIP/onestepcheckout/css/onestepcheckout.css
CHANGED
|
@@ -72,7 +72,6 @@ h2.endereco_title, h3.como_comprar_title, h3.dados_pessoais {clear: both;}
|
|
| 72 |
.moip-osc-block-content.force-none-float {
|
| 73 |
float: none !important;
|
| 74 |
}
|
| 75 |
-
|
| 76 |
#loading-mask {
|
| 77 |
position: fixed;
|
| 78 |
top: 0;
|
|
@@ -85,24 +84,22 @@ h2.endereco_title, h3.como_comprar_title, h3.dados_pessoais {clear: both;}
|
|
| 85 |
display: none;
|
| 86 |
top: 0px;
|
| 87 |
}
|
| 88 |
-
#loading-mask
|
| 89 |
-
background: none repeat scroll 0 0 #fff;
|
| 90 |
-
border: 1px solid #ccc;
|
| 91 |
-
box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2);
|
| 92 |
-
box-sizing: border-box;
|
| 93 |
-
display: block;
|
| 94 |
-
left: 42%;
|
| 95 |
-
line-height: 20px;
|
| 96 |
-
margin-top: 0;
|
| 97 |
-
padding: 20px;
|
| 98 |
-
position: absolute;
|
| 99 |
text-align: center;
|
| 100 |
-
top: 32%;
|
| 101 |
-
width: 300px;
|
| 102 |
-
right: 50%;
|
| 103 |
}
|
| 104 |
-
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
|
| 107 |
.update_shipping,.update_payment { width: 100%; text-align: center; font-size: 14px; min-height: 115px; padding-top: 50px; }
|
| 108 |
.sp-methods .form-list { padding-left: 0px !important; }
|
|
@@ -293,7 +290,7 @@ h3.product-name {
|
|
| 293 |
font-size: 16px !important;
|
| 294 |
}
|
| 295 |
.sp-methods dt label, #checkout-shipping-method-load .sp-methods dd label, #co-shipping-method-form .sp-methods dd label {
|
| 296 |
-
width:
|
| 297 |
}
|
| 298 |
|
| 299 |
.sp-methods .price {
|
|
@@ -407,7 +404,7 @@ label.required:after, span.required:after {
|
|
| 407 |
}
|
| 408 |
#checkout-payment-method-load dt label {
|
| 409 |
line-height: 40px;
|
| 410 |
-
width:
|
| 411 |
}
|
| 412 |
@media only screen and (min-width: 600px) {
|
| 413 |
.hcenter {
|
|
@@ -431,4 +428,18 @@ input[type=email], input[type=search], input[type=number], input[type=password],
|
|
| 431 |
}
|
| 432 |
.product-remove {
|
| 433 |
float: right;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 434 |
}
|
| 72 |
.moip-osc-block-content.force-none-float {
|
| 73 |
float: none !important;
|
| 74 |
}
|
|
|
|
| 75 |
#loading-mask {
|
| 76 |
position: fixed;
|
| 77 |
top: 0;
|
| 84 |
display: none;
|
| 85 |
top: 0px;
|
| 86 |
}
|
| 87 |
+
#loading-mask img {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
| 89 |
}
|
| 90 |
+
#loading_mask_loader {
|
| 91 |
+
display: inline-block;
|
| 92 |
+
position: absolute;
|
| 93 |
+
left: 40%;
|
| 94 |
+
z-index: 100;
|
| 95 |
+
top: 50%;
|
| 96 |
+
background: #fff;
|
| 97 |
+
}
|
| 98 |
+
.update_shipping img, .update_payment img {
|
| 99 |
+
text-align: center;
|
| 100 |
+
margin: 0 auto;
|
| 101 |
+
padding-bottom: 30px;
|
| 102 |
+
}
|
| 103 |
|
| 104 |
.update_shipping,.update_payment { width: 100%; text-align: center; font-size: 14px; min-height: 115px; padding-top: 50px; }
|
| 105 |
.sp-methods .form-list { padding-left: 0px !important; }
|
| 290 |
font-size: 16px !important;
|
| 291 |
}
|
| 292 |
.sp-methods dt label, #checkout-shipping-method-load .sp-methods dd label, #co-shipping-method-form .sp-methods dd label {
|
| 293 |
+
width: 100% !important
|
| 294 |
}
|
| 295 |
|
| 296 |
.sp-methods .price {
|
| 404 |
}
|
| 405 |
#checkout-payment-method-load dt label {
|
| 406 |
line-height: 40px;
|
| 407 |
+
width: 100% !important;
|
| 408 |
}
|
| 409 |
@media only screen and (min-width: 600px) {
|
| 410 |
.hcenter {
|
| 428 |
}
|
| 429 |
.product-remove {
|
| 430 |
float: right;
|
| 431 |
+
}
|
| 432 |
+
@media only screen and (max-width: 768px) {
|
| 433 |
+
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
|
| 434 |
+
|
| 435 |
+
padding-left: -0px !important;
|
| 436 |
+
padding-right: -0px !important;
|
| 437 |
+
}
|
| 438 |
+
.form-list .customer-dob .dob-year {
|
| 439 |
+
width: 50px !important;
|
| 440 |
+
margin: 0 !important;
|
| 441 |
+
padding: 0 !important;
|
| 442 |
+
float: left;
|
| 443 |
+
min-width: 50px !important;
|
| 444 |
+
}
|
| 445 |
}
|
skin/frontend/base/default/MOIP/onestepcheckout/images/fancy_title_over.png
DELETED
|
Binary file
|
skin/frontend/base/default/MOIP/transparente/css/form.css
CHANGED
|
@@ -58,14 +58,11 @@ font-size: 11px;
|
|
| 58 |
}
|
| 59 |
|
| 60 |
|
| 61 |
-
#moip_cc_type {
|
| 62 |
width: 100%;
|
| 63 |
}
|
| 64 |
|
| 65 |
-
#moip_ccrecurring_type {
|
| 66 |
-
width: 100%;
|
| 67 |
-
}
|
| 68 |
-
#moip_cc_type li {
|
| 69 |
display: block;
|
| 70 |
width: 46px !important;
|
| 71 |
height: 31px;
|
|
@@ -88,9 +85,6 @@ font-size: 11px;
|
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
-
#moip_recurring_type {
|
| 92 |
-
width: 100%;
|
| 93 |
-
}
|
| 94 |
|
| 95 |
|
| 96 |
li.VI {background-position: -0px -30px !important;}
|
|
@@ -110,6 +104,7 @@ li.DI.active {background-position: -138px 0px !important}
|
|
| 110 |
li.EO.active {background-position: -183px 0px !important}
|
| 111 |
li.HI.active {background-position: -228px 0px !important}
|
| 112 |
li.HP.active {background-position: -274px 0px !important}
|
|
|
|
| 113 |
.sp-methods dd li.fields, .sp-methods dd li.wide {
|
| 114 |
clear: both;
|
| 115 |
}
|
|
@@ -150,11 +145,8 @@ li.cofre {
|
|
| 150 |
width: 55px;
|
| 151 |
|
| 152 |
}
|
| 153 |
-
.cofre_number {
|
| 154 |
|
| 155 |
-
|
| 156 |
|
| 157 |
-
}
|
| 158 |
.buttons-set {
|
| 159 |
margin: 0 !important;
|
| 160 |
background: #fff;
|
|
@@ -216,3 +208,9 @@ input {
|
|
| 216 |
width: 5em !important;
|
| 217 |
}
|
| 218 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
}
|
| 59 |
|
| 60 |
|
| 61 |
+
#moip_cc_type, #moip_ccrecurring_type {
|
| 62 |
width: 100%;
|
| 63 |
}
|
| 64 |
|
| 65 |
+
#moip_cc_type li, #moip_ccrecurring_type li {
|
|
|
|
|
|
|
|
|
|
| 66 |
display: block;
|
| 67 |
width: 46px !important;
|
| 68 |
height: 31px;
|
| 85 |
|
| 86 |
|
| 87 |
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
|
| 90 |
li.VI {background-position: -0px -30px !important;}
|
| 104 |
li.EO.active {background-position: -183px 0px !important}
|
| 105 |
li.HI.active {background-position: -228px 0px !important}
|
| 106 |
li.HP.active {background-position: -274px 0px !important}
|
| 107 |
+
|
| 108 |
.sp-methods dd li.fields, .sp-methods dd li.wide {
|
| 109 |
clear: both;
|
| 110 |
}
|
| 145 |
width: 55px;
|
| 146 |
|
| 147 |
}
|
|
|
|
| 148 |
|
|
|
|
| 149 |
|
|
|
|
| 150 |
.buttons-set {
|
| 151 |
margin: 0 !important;
|
| 152 |
background: #fff;
|
| 208 |
width: 5em !important;
|
| 209 |
}
|
| 210 |
|
| 211 |
+
@media only screen and (max-width: 768px) {
|
| 212 |
+
li.fields.card-number {
|
| 213 |
+
float: left;
|
| 214 |
+
width: 100% !important;
|
| 215 |
+
}
|
| 216 |
+
}
|
skin/frontend/base/default/MOIP/transparente/css/product_view.css
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* =============== Parcelas Moip ================== */
|
| 2 |
+
#parcelas_integrais.skip-active { display: block;}
|
| 3 |
+
|
| 4 |
+
#parcelas_integrais { background: #fff;
|
| 5 |
+
padding: 10px;
|
| 6 |
+
color: #999;
|
| 7 |
+
border: 1px solid #ccc;
|
| 8 |
+
box-shadow: 0px -1px 16px 1px rgba(0, 0, 0, 0.2);
|
| 9 |
+
position: absolute;
|
| 10 |
+
width: 280px;
|
| 11 |
+
z-index: 9;
|
| 12 |
+
margin-top: 45px;
|
| 13 |
+
text-align: center;
|
| 14 |
+
}
|
| 15 |
+
#parcelas_integrais:after, #parcelas_integrais:before { bottom: 100%; left: 25%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none;}
|
| 16 |
+
#parcelas_integrais:after { border-color: transparent; border-bottom-color: #fff; border-width: 10px; margin-left: -20px;}
|
| 17 |
+
#parcelas_integrais:before { border-color: rgba(255, 255, 255, 0.35);border-bottom-color: transparent;border-width: 1px;margin-left: -1px;}
|
| 18 |
+
ul.product_view_bandeiras > li > img {width: 34px;}
|
| 19 |
+
.skip-link.skip-parcelas_integrais {cursor: pointer;}
|
| 20 |
+
|
| 21 |
+
a.skip-link.skip-parcelas_integrais, span.parcela {
|
| 22 |
+
font-weight: bold;
|
| 23 |
+
width: 100%;
|
| 24 |
+
white-space: nowrap !important;
|
| 25 |
+
overflow: hidden !important;
|
| 26 |
+
text-overflow: ellipsis !important;
|
| 27 |
+
min-width: 130px;
|
| 28 |
+
}
|
| 29 |
+
ul#parcelamento_integral {
|
| 30 |
+
text-align: left;
|
| 31 |
+
}
|
| 32 |
+
.images-moip-parcelas {
|
| 33 |
+
width: 100% !important;
|
| 34 |
+
float: left;
|
| 35 |
+
}
|
| 36 |
+
.result-moip-parcelas {
|
| 37 |
+
width: 100% !important;
|
| 38 |
+
float: left;
|
| 39 |
+
text-align: left;
|
| 40 |
+
}
|
| 41 |
+
ul.product_view_bandeiras.hide-below-768 li {
|
| 42 |
+
float: left;
|
| 43 |
+
width: 14%;
|
| 44 |
+
}
|
skin/frontend/base/default/MOIP/transparente/imagem/moip_boletorecurring.png
ADDED
|
Binary file
|
skin/frontend/base/default/MOIP/transparente/imagem/moip_ccrecurring.png
ADDED
|
Binary file
|
