MoipExpress - Version 1.0.0.3

Version Notes

Ajustes de bug na instalação

Sinta-se a vontade para contatar o suporte

Download this release

Release Info

Developer Raul Sakai
Extension MoipExpress
Version 1.0.0.3
Comparing to
See all releases


Code changes from version 1.0.0.1 to 1.0.0.3

app/code/local/Monstroestudio/Moip/Model/PaymentMethod.php CHANGED
@@ -43,7 +43,7 @@ class Monstroestudio_Moip_Model_PaymentMethod extends Mage_Payment_Model_Method_
43
  protected $_canUseCheckout = true;
44
  protected $_canUseForMultishipping = true;
45
  protected $_canSaveCc = false;
46
- protected $_formBlockType = 'moip/form';
47
 
48
  /**
49
  * Send authorize request to gateway
@@ -120,9 +120,6 @@ class Monstroestudio_Moip_Model_PaymentMethod extends Mage_Payment_Model_Method_
120
  $this->_moip->setReceiver(Mage::helper('moip')->getConfig('login'), Mage::app()->getStore()->getName());
121
  $this->_moip->setNotificationURL(Mage::getUrl('moip/checkout/update'));
122
  $this->_moip->validate('Identification');
123
-
124
- Mage::throwException($this->getOnepage()->getQuote()->getPayment()->getSafeParcelas());
125
-
126
  $this->_moip->send();
127
 
128
  $this->getCheckout()->setMoipData(array(
@@ -142,13 +139,14 @@ class Monstroestudio_Moip_Model_PaymentMethod extends Mage_Payment_Model_Method_
142
  'save_cc' => $this->getOnepage()->getQuote()->getPayment()->getCcSave(),
143
  ));
144
 
145
- if(isset($this->_moip->getAnswer()->error)){
 
 
146
  $idAlreadyExists = $this->_moip->getAnswer()->error == 'Id Próprio já foi utilizado em outra Instrução';
147
- }else{
148
- $idAlreadyExists = false;
149
  }
150
 
151
- if ((bool)$this->_moip->getAnswer()->response || $idAlreadyExists) {
 
152
  if(!$idAlreadyExists){
153
  $arrayData = array(
154
  'order_id' => (int)$payment->getOrder()->getIncrementId(),
@@ -159,7 +157,7 @@ class Monstroestudio_Moip_Model_PaymentMethod extends Mage_Payment_Model_Method_
159
  $modelResponse = Mage::getModel('moip/transactions')->setData($arrayData)->save();
160
  }
161
  }else {
162
- Mage::throwException(Mage::helper('moip')->__($this->_moip->getAnswer()->error));
163
  }
164
 
165
  return $this;
43
  protected $_canUseCheckout = true;
44
  protected $_canUseForMultishipping = true;
45
  protected $_canSaveCc = false;
46
+ protected $_formBlockType = 'Monstroestudio_Moip_Block_Form';
47
 
48
  /**
49
  * Send authorize request to gateway
120
  $this->_moip->setReceiver(Mage::helper('moip')->getConfig('login'), Mage::app()->getStore()->getName());
121
  $this->_moip->setNotificationURL(Mage::getUrl('moip/checkout/update'));
122
  $this->_moip->validate('Identification');
 
 
 
123
  $this->_moip->send();
124
 
125
  $this->getCheckout()->setMoipData(array(
139
  'save_cc' => $this->getOnepage()->getQuote()->getPayment()->getCcSave(),
140
  ));
141
 
142
+
143
+ $idAlreadyExists = false;
144
+ if($this->_moip->getAnswer()->error){
145
  $idAlreadyExists = $this->_moip->getAnswer()->error == 'Id Próprio já foi utilizado em outra Instrução';
 
 
146
  }
147
 
148
+
149
+ if ($this->_moip->getAnswer()->response || $idAlreadyExists) {
150
  if(!$idAlreadyExists){
151
  $arrayData = array(
152
  'order_id' => (int)$payment->getOrder()->getIncrementId(),
157
  $modelResponse = Mage::getModel('moip/transactions')->setData($arrayData)->save();
158
  }
159
  }else {
160
+ Mage::throwException($this->_moip->getAnswer()->error);
161
  }
162
 
163
  return $this;
app/code/local/Monstroestudio/Moip/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Monstroestudio_Moip>
5
- <version>1.0.0.1</version>
6
  </Monstroestudio_Moip>
7
  </modules>
8
  <global>
@@ -166,7 +166,7 @@
166
  <bloquear_boleto_estoque>0</bloquear_boleto_estoque>
167
  <sandbox>0</sandbox>
168
  <order_status>pending</order_status>
169
- <model>moip/paymentMethod</model>
170
  </moip>
171
  </payment>
172
  <customer>
2
  <config>
3
  <modules>
4
  <Monstroestudio_Moip>
5
+ <version>1.0.0.2</version>
6
  </Monstroestudio_Moip>
7
  </modules>
8
  <global>
166
  <bloquear_boleto_estoque>0</bloquear_boleto_estoque>
167
  <sandbox>0</sandbox>
168
  <order_status>pending</order_status>
169
+ <model>Monstroestudio_Moip_Model_PaymentMethod</model>
170
  </moip>
171
  </payment>
172
  <customer>
app/code/local/Monstroestudio/Moip/etc/system.xml CHANGED
@@ -43,7 +43,7 @@
43
  <methods tranlate="label">
44
  <label>Métodos de pagamento</label>
45
  <frontend_type>multiselect</frontend_type>
46
- <source_model>moip/source_paymentmethods</source_model>
47
  <sort_order>50</sort_order>
48
  <show_in_default>1</show_in_default>
49
  <show_in_website>1</show_in_website>
@@ -63,7 +63,7 @@
63
  <parcelado_avista translate="label">
64
  <label>Receber Parcelado A vista?</label>
65
  <frontend_type>select</frontend_type>
66
- <source_model>moip/source_recebimento</source_model>
67
  <sort_order>70</sort_order>
68
  <show_in_default>1</show_in_default>
69
  <show_in_website>1</show_in_website>
@@ -74,7 +74,7 @@
74
  <numero_max_parcelas translate="label">
75
  <label>Número máximo de parcelas</label>
76
  <frontend_type>select</frontend_type>
77
- <source_model>moip/source_ccmaxparcelas</source_model>
78
  <sort_order>70</sort_order>
79
  <show_in_default>1</show_in_default>
80
  <show_in_website>1</show_in_website>
@@ -129,7 +129,7 @@
129
  <tipo_vencimento_boleto>
130
  <label>Tipo de contagem de dias para vencimento do boleto</label>
131
  <frontend_type>select</frontend_type>
132
- <source_model>moip/source_tipovencboleto</source_model>
133
  <sort_order>109</sort_order>
134
  <show_in_default>1</show_in_default>
135
  <show_in_website>1</show_in_website>
43
  <methods tranlate="label">
44
  <label>Métodos de pagamento</label>
45
  <frontend_type>multiselect</frontend_type>
46
+ <source_model>Monstroestudio_Moip_Model_Source_Paymentmethods</source_model>
47
  <sort_order>50</sort_order>
48
  <show_in_default>1</show_in_default>
49
  <show_in_website>1</show_in_website>
63
  <parcelado_avista translate="label">
64
  <label>Receber Parcelado A vista?</label>
65
  <frontend_type>select</frontend_type>
66
+ <source_model>Monstroestudio_Moip_Model_Source_Recebimento</source_model>
67
  <sort_order>70</sort_order>
68
  <show_in_default>1</show_in_default>
69
  <show_in_website>1</show_in_website>
74
  <numero_max_parcelas translate="label">
75
  <label>Número máximo de parcelas</label>
76
  <frontend_type>select</frontend_type>
77
+ <source_model>Monstroestudio_Moip_Model_Source_Ccmaxparcelas</source_model>
78
  <sort_order>70</sort_order>
79
  <show_in_default>1</show_in_default>
80
  <show_in_website>1</show_in_website>
129
  <tipo_vencimento_boleto>
130
  <label>Tipo de contagem de dias para vencimento do boleto</label>
131
  <frontend_type>select</frontend_type>
132
+ <source_model>Monstroestudio_Moip_Model_Source_Tipovencboleto</source_model>
133
  <sort_order>109</sort_order>
134
  <show_in_default>1</show_in_default>
135
  <show_in_website>1</show_in_website>
app/code/local/Monstroestudio/Moip/sql/moip_setup/mysql4-install-1.0.0.php CHANGED
@@ -112,7 +112,7 @@ $directory_country_region_name = Mage::getSingleton('core/resource')->getTableNa
112
 
113
  $installer->run("
114
  DELETE from `".$directory_country_region."` WHERE `country_id`='BR';
115
- DELETE from `".$directory_country_region_name."` WHERE `country_id`='BR';
116
 
117
  INSERT INTO `".$directory_country_region."` (`country_id`, `code`, `default_name`) VALUES
118
  ('BR', 'AC', 'Acre');
112
 
113
  $installer->run("
114
  DELETE from `".$directory_country_region."` WHERE `country_id`='BR';
115
+ DELETE from `".$directory_country_region_name."` WHERE `locale`='BR';
116
 
117
  INSERT INTO `".$directory_country_region."` (`country_id`, `code`, `default_name`) VALUES
118
  ('BR', 'AC', 'Acre');
app/etc/modules/Monstroestudio_Moip.xml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Monstroestudio_Moip>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ <depends>
8
+ <Mage_Payment />
9
+ </depends>
10
+ </Monstroestudio_Moip>
11
+ </modules>
12
+ </config>
package.xml CHANGED
@@ -1,18 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MoipExpress</name>
4
- <version>1.0.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/copyleft/gpl.html">GPL v3</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>A melhor e mais nova integra&#xE7;&#xE3;o para a solu&#xE7;&#xE3;o de pagamentos MoIP.</summary>
10
  <description>A melhor e mais nova integra&#xE7;&#xE3;o para a solu&#xE7;&#xE3;o de pagamentos MoIP.</description>
11
- <notes>Sinta-se a vontade para contatar o suporte</notes>
 
 
12
  <authors><author><name>Raul Sakai</name><user>rqsakai</user><email>rqsakai@gmail.com</email></author></authors>
13
- <date>2014-07-02</date>
14
- <time>21:45:36</time>
15
- <contents><target name="magelocal"><dir name="Monstroestudio"><dir name="Moip"><dir name="Block"><file name="Form.php" hash="f2bcb847f4c3421180136add3333fc52"/><file name="Redirect.php" hash="f8fd4f552752b99167c726936db64827"/></dir><dir name="Helper"><file name="Data.php" hash="cc959503224982e903b54c0cd2f4af75"/></dir><dir name="Model"><file name="Abstract.php" hash="057d418e2eb63f65dbe4b72290ce2ac4"/><file name="Observer.php" hash="b48222522efd2004ad2f49a76835d9d0"/><file name="PaymentMethod.php" hash="360d7b7d071f5d169b5b3843c7d86dc9"/><dir name="Resource"><dir name="Safe"><dir name="Collection"><file name="Abstract.php" hash="1226a0f68556e70a06ded8c36122f775"/></dir><file name="Collection.php" hash="db5d0d3d5360569db7d37b015cdbdee6"/></dir><file name="Safe.php" hash="fff8bc262d55296cac2886b39f043b2d"/><dir name="Transactions"><dir name="Collection"><file name="Abstract.php" hash="579220db5fc7f5f0cede6e978c58eada"/></dir><file name="Collection.php" hash="0efc676bb425f3b60484500a6dab52fd"/></dir><file name="Transactions.php" hash="25b1ba30771a1f32727442f4dfeabcfb"/></dir><file name="Safe.php" hash="e66911ae2b4e875fbedc7c063162adb5"/><dir name="Source"><file name="Ccmaxparcelas.php" hash="6f787154ed5c3e4f3bbcdc4db539c39c"/><file name="Paymentmethods.php" hash="cdbcf39fdf3bc3ceeab4d8e6e80317b6"/><file name="Recebimento.php" hash="b65926935d31cbd3709aee596e5c31c6"/><file name="Tipovencboleto.php" hash="fcb4363c7d842b5c02260d9999c52d66"/></dir><file name="Transactions.php" hash="eddb3201f6ac97ea4ec720e0e4f755a5"/></dir><dir name="controllers"><file name="CheckoutController.php" hash="7edd9f00b87a1d1e4583cee87918631e"/></dir><dir name="etc"><file name="config.xml" hash="f04818d1c4365ab50865d47967f40319"/><file name="system.xml" hash="2a77a802c3362a5f1af89f843fd0f0ed"/></dir><dir name="sql"><dir name="moip_setup"><file name="mysql4-install-1.0.0.php" hash="a835f6d87b9c0a50edc35d84e0858eb7"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="monstroestudio"><dir name="moip"><file name="form.phtml" hash="b80b671a96db27bd3bc91f6481b5a192"/><file name="redirect.phtml" hash="3f87c1b3105ba38630b17abddba10227"/></dir></dir></dir><dir name="layout"><dir name="monstroestudio"><file name="moip.xml" hash="6d9c361931c42324171522ca732d76ea"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="monstroestudio"><dir name="moip"><dir name="css"><file name="styles.css" hash="273222070c4fb5bb16623b2ec1c92654"/></dir><dir name="images"><file name="amex.png" hash="ddae1391e6cc2b9ed02755e1bda42127"/><file name="banrisul.png" hash="4a3feb3468e0b5fb72f096c2762d8806"/><file name="bb.png" hash="066e08f866baf93b77694bf354eec913"/><file name="boleto.png" hash="5670bee3689eef1c39e0d35108205b8d"/><file name="bradesco-boleto.jpg" hash="0a9c5b2544e5a07b76be5f714729a11f"/><file name="bradesco.png" hash="8d8919bf93cc04a512f86e3d20003c01"/><file name="cc.png" hash="9355033ab955d67a5b87feb5a72a3786"/><file name="cvv.jpg" hash="435fa5f044e6201c5c2d12cc7ad518f1"/><file name="diners.png" hash="c0624bfa6bde58d5d6defb4849148d23"/><file name="hiper.png" hash="2785865b79748180647bdc3b470101c0"/><file name="itau.png" hash="9b4206fb76f64a86437c80450ba363be"/><file name="master.png" hash="3794747a6bcefcd3975966501ff44782"/><file name="moip-warning.png" hash="7f532dbf2fc16f6378cdefbe92e458db"/><file name="printer.png" hash="1ab5e87a5eff796f63d8134b48a6d02a"/><file name="transf.png" hash="14eafc26fdca09d2bb8c76702d785867"/><file name="transferencia-icon.png" hash="b11dd5f71eb7c1e04fdf8a4b4112c066"/><file name="visa.png" hash="c0044c9a4d4ebcc2773bd9c13620ffce"/></dir><dir name="js"><file name="creditcard.min.js" hash="364e168e2ebd3269691dcdcdbb0fea5e"/><file name="jquery.js" hash="242361900ae3ebb31f8b9a62a9d549f6"/><file name="moip-form.js" hash="870c038a5c783f75ccf0bdeba5e3c731"/><file name="prototype.maskedinput.js" hash="23acf0dcd74dc380cf1d9059ff74111b"/><file name="validations.js" hash="1105a40f058db378ad1b059505a35d1f"/></dir></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Moip"><file name="Moip.php" hash="9a5033f185a7179b4ffbf46911b46acc"/><file name="MoipClient.php" hash="ad0b0c4b005bd36fe7499df75483b1bb"/><file name="MoipEnvironment.php" hash="0f69d07dd42baa5ea70af1df10a03003"/><file name="MoipResponse.php" hash="3fc4b67f28adf2c27b968756e0cdfca5"/><file name="MoipStatus.php" hash="9f61696ffb0819ac9cef7a89736edc9b"/><dir name="phpQuery"><file name="phpQuery.php" hash="5cb41d4d677a5f076c2a1fc26430dfe6"/></dir></dir></target><target name="mageetc"><dir name="."><file name="Monstroestudio_Moip.xml" hash=""/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>4.0.0.</min><max>7.0.0</max></php><package><name>Mage_Core_Payment</name><channel>connect.magentocommerce.com/core</channel><min/><max/></package></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MoipExpress</name>
4
+ <version>1.0.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/copyleft/gpl.html">GPL v3</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>A melhor e mais nova integra&#xE7;&#xE3;o para a solu&#xE7;&#xE3;o de pagamentos MoIP.</summary>
10
  <description>A melhor e mais nova integra&#xE7;&#xE3;o para a solu&#xE7;&#xE3;o de pagamentos MoIP.</description>
11
+ <notes>Ajustes de bug na instala&#xE7;&#xE3;o&#xD;
12
+ &#xD;
13
+ Sinta-se a vontade para contatar o suporte</notes>
14
  <authors><author><name>Raul Sakai</name><user>rqsakai</user><email>rqsakai@gmail.com</email></author></authors>
15
+ <date>2014-07-03</date>
16
+ <time>17:20:47</time>
17
+ <contents><target name="magelocal"><dir name="Monstroestudio"><dir name="Moip"><dir name="Block"><file name="Form.php" hash="f2bcb847f4c3421180136add3333fc52"/><file name="Redirect.php" hash="f8fd4f552752b99167c726936db64827"/></dir><dir name="Helper"><file name="Data.php" hash="cc959503224982e903b54c0cd2f4af75"/></dir><dir name="Model"><file name="Abstract.php" hash="057d418e2eb63f65dbe4b72290ce2ac4"/><file name="Observer.php" hash="b48222522efd2004ad2f49a76835d9d0"/><file name="PaymentMethod.php" hash="c44178ea7b5635c2db848bbe663ddbda"/><dir name="Resource"><dir name="Safe"><dir name="Collection"><file name="Abstract.php" hash="1226a0f68556e70a06ded8c36122f775"/></dir><file name="Collection.php" hash="db5d0d3d5360569db7d37b015cdbdee6"/></dir><file name="Safe.php" hash="fff8bc262d55296cac2886b39f043b2d"/><dir name="Transactions"><dir name="Collection"><file name="Abstract.php" hash="579220db5fc7f5f0cede6e978c58eada"/></dir><file name="Collection.php" hash="0efc676bb425f3b60484500a6dab52fd"/></dir><file name="Transactions.php" hash="25b1ba30771a1f32727442f4dfeabcfb"/></dir><file name="Safe.php" hash="e66911ae2b4e875fbedc7c063162adb5"/><dir name="Source"><file name="Ccmaxparcelas.php" hash="6f787154ed5c3e4f3bbcdc4db539c39c"/><file name="Paymentmethods.php" hash="cdbcf39fdf3bc3ceeab4d8e6e80317b6"/><file name="Recebimento.php" hash="b65926935d31cbd3709aee596e5c31c6"/><file name="Tipovencboleto.php" hash="fcb4363c7d842b5c02260d9999c52d66"/></dir><file name="Transactions.php" hash="eddb3201f6ac97ea4ec720e0e4f755a5"/></dir><dir name="controllers"><file name="CheckoutController.php" hash="7edd9f00b87a1d1e4583cee87918631e"/></dir><dir name="etc"><file name="config.xml" hash="4feea71246768b42ebf9e3945707e7c5"/><file name="system.xml" hash="01bcd736ba5453a256768a3d73cc529d"/></dir><dir name="sql"><dir name="moip_setup"><file name="mysql4-install-1.0.0.php" hash="52b9d10a9147c87f68bdce6c63668ba7"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="monstroestudio"><dir name="moip"><file name="form.phtml" hash="b80b671a96db27bd3bc91f6481b5a192"/><file name="redirect.phtml" hash="3f87c1b3105ba38630b17abddba10227"/></dir></dir></dir><dir name="layout"><dir name="monstroestudio"><file name="moip.xml" hash="6d9c361931c42324171522ca732d76ea"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="monstroestudio"><dir name="moip"><dir name="css"><file name="styles.css" hash="273222070c4fb5bb16623b2ec1c92654"/></dir><dir name="images"><file name="amex.png" hash="ddae1391e6cc2b9ed02755e1bda42127"/><file name="banrisul.png" hash="4a3feb3468e0b5fb72f096c2762d8806"/><file name="bb.png" hash="066e08f866baf93b77694bf354eec913"/><file name="boleto.png" hash="5670bee3689eef1c39e0d35108205b8d"/><file name="bradesco-boleto.jpg" hash="0a9c5b2544e5a07b76be5f714729a11f"/><file name="bradesco.png" hash="8d8919bf93cc04a512f86e3d20003c01"/><file name="cc.png" hash="9355033ab955d67a5b87feb5a72a3786"/><file name="cvv.jpg" hash="435fa5f044e6201c5c2d12cc7ad518f1"/><file name="diners.png" hash="c0624bfa6bde58d5d6defb4849148d23"/><file name="hiper.png" hash="2785865b79748180647bdc3b470101c0"/><file name="itau.png" hash="9b4206fb76f64a86437c80450ba363be"/><file name="master.png" hash="3794747a6bcefcd3975966501ff44782"/><file name="moip-warning.png" hash="7f532dbf2fc16f6378cdefbe92e458db"/><file name="printer.png" hash="1ab5e87a5eff796f63d8134b48a6d02a"/><file name="transf.png" hash="14eafc26fdca09d2bb8c76702d785867"/><file name="transferencia-icon.png" hash="b11dd5f71eb7c1e04fdf8a4b4112c066"/><file name="visa.png" hash="c0044c9a4d4ebcc2773bd9c13620ffce"/></dir><dir name="js"><file name="creditcard.min.js" hash="364e168e2ebd3269691dcdcdbb0fea5e"/><file name="jquery.js" hash="242361900ae3ebb31f8b9a62a9d549f6"/><file name="moip-form.js" hash="f9b78e60136e83ce1bec6cefe0e03c53"/><file name="prototype.maskedinput.js" hash="23acf0dcd74dc380cf1d9059ff74111b"/><file name="validations.js" hash="1105a40f058db378ad1b059505a35d1f"/></dir></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Moip"><file name="Moip.php" hash="9a5033f185a7179b4ffbf46911b46acc"/><file name="MoipClient.php" hash="ad0b0c4b005bd36fe7499df75483b1bb"/><file name="MoipEnvironment.php" hash="0f69d07dd42baa5ea70af1df10a03003"/><file name="MoipResponse.php" hash="3fc4b67f28adf2c27b968756e0cdfca5"/><file name="MoipStatus.php" hash="9f61696ffb0819ac9cef7a89736edc9b"/><dir name="phpQuery"><file name="phpQuery.php" hash="5cb41d4d677a5f076c2a1fc26430dfe6"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Monstroestudio_Moip.xml" hash="7b44177029a9e702bdd0b44bfe8b4b92"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>4.0.0.</min><max>7.0.0</max></php><package><name>Mage_Core_Payment</name><channel>connect.magentocommerce.com/core</channel><min/><max/></package></required></dependencies>
20
  </package>
skin/frontend/default/default/monstroestudio/moip/js/moip-form.js CHANGED
@@ -208,4 +208,5 @@ function doTabs() {
208
  window.onload = function(){
209
  adjustStreetLines();
210
  billing_phone = new MaskedInput('[id="billing:telephone"]', '(99)9999-9999?9');
 
211
  }
208
  window.onload = function(){
209
  adjustStreetLines();
210
  billing_phone = new MaskedInput('[id="billing:telephone"]', '(99)9999-9999?9');
211
+ doSafe();
212
  }