Buscape_Fcontrol - Version 0.1.13

Version Notes

Extensão Buscapé Fcontrol para Magento CE 1.3+, PE 1.9+ e EE 1.7+.

Download this release

Release Info

Developer Magento Core Team
Extension Buscape_Fcontrol
Version 0.1.13
Comparing to
See all releases


Code changes from version 0.1.12 to 0.1.13

app/code/community/Buscape/Fcontrol/Model/Adapter/Payment.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Magento
4
  *
@@ -14,73 +15,80 @@
14
  *
15
  * @category Buscape
16
  * @package Buscape_Fcontrol
17
- * @copyright Copyright (c) 2010 Buscap� Company (http://www.buscapecompany.com)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
  */
20
  class Buscape_Fcontrol_Model_Adapter_Payment extends Varien_Object {
21
 
22
  protected static $_service = array(
23
- 'ccsave' => true,
24
- 'checkmo' => true,
25
- 'free' => true,
26
- 'purchaseorder' => true,
27
- 'authorizenet_directpost' => false,
28
- 'authorizenet' => false,
29
- 'googlecheckout' => false,
30
- 'paypal_standard' => false,
31
- 'paypal_express' => false,
32
- 'paypal_direct' => false,
33
- 'paypaluk_direct' => false,
34
- 'paypaluk_express' => false,
35
- 'verisign' => false,
36
- 'payflow_link' => false,
37
- 'hosted_pro' => false,
38
- 'paypal_billing_agreement' => false,
39
- 'pagamentodigital_standard' => true,
40
- 'pagseguro_standard' => false,
41
- 'pagseguro' => false,
42
- 'brunoassarisse_pagseguro' => false,
43
- 'cobredireto' => true,
44
- 'pagamentodigital_geral' => true,
45
- 'pagamentodigital_vista' => false,
46
- 'pagamentodigital_prazo' => true,
47
- 'dineromail_standard' => false,
48
- 'brunoassarisse_pagseguro' => true,
49
- 'banco' => true,
50
- 'BoletoBancario_standard' => false,
51
- 'payments_cielowebservice' => true,
52
- 'ipgcore' => true
 
 
 
 
 
 
 
 
 
 
53
  );
 
 
54
  /* Verifica se a forma de pagamento pode ser utilizada com o FControl */
55
 
56
- public function validate($payment = null)
57
- {
58
- // $payment->getData('additional_data');
59
-
60
-
61
- if(in_array($payment->getMethod(), self::$_service)) {
62
- if(self::$_service[$payment->getMethod()]) {
63
-
64
- if($payment->getMethod()=="ipgcore") {
65
-
66
- if($payment->getData('additional_data') == self::$_additional_data){
67
-
68
  return false;
69
- }else{
70
  return true;
71
  }
72
-
73
- } else {
74
  return true;
75
  }
76
-
77
  }
78
  }
79
-
80
  return false;
81
  }
82
-
83
-
84
 
85
  public function filter($payment = null, Buscape_Fcontrol_Model_Api_Abstract $api = null) {
86
  if ($api && in_array($payment->getMethod(), self::$_service)) {
@@ -158,4 +166,4 @@ class Buscape_Fcontrol_Model_Adapter_Payment extends Varien_Object {
158
  return $api;
159
  }
160
 
161
- }
1
  <?php
2
+
3
  /**
4
  * Magento
5
  *
15
  *
16
  * @category Buscape
17
  * @package Buscape_Fcontrol
18
+ * @copyright Copyright (c) 2010 Buscapé Company (http://www.buscapecompany.com)
19
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
  */
21
  class Buscape_Fcontrol_Model_Adapter_Payment extends Varien_Object {
22
 
23
  protected static $_service = array(
24
+ 'ccsave' => true,
25
+ 'checkmo' => true,
26
+ 'free' => true,
27
+ 'purchaseorder' => true,
28
+ 'authorizenet_directpost' => false,
29
+ 'authorizenet' => false,
30
+ 'googlecheckout' => false,
31
+ 'paypal_standard' => false,
32
+ 'paypal_express' => false,
33
+ 'paypal_direct' => false,
34
+ 'paypaluk_direct' => false,
35
+ 'paypaluk_express' => false,
36
+ 'verisign' => false,
37
+ 'payflow_link' => false,
38
+ 'hosted_pro' => false,
39
+ 'paypal_billing_agreement' => false,
40
+ 'pagamentodigital_standard' => false,
41
+ 'pagseguro_standard' => false,
42
+ 'pagseguro' => false,
43
+ 'brunoassarisse_pagseguro' => false,
44
+ 'cobredireto' => true,
45
+ 'pagamentodigital_geral' => false,
46
+ 'pagamentodigital_vista' => false,
47
+ 'pagamentodigital_prazo' => false,
48
+ 'dineromail_standard' => false,
49
+ 'banco' => true,
50
+ 'BoletoBancario_standard' => false,
51
+ 'payments_cielowebservice' => true,
52
+ 'ipgcore' => true,
53
+ 'brunoassarisse_pagseguro' => false,
54
+ 'Multikomerce_Redecard' => true,
55
+ 'Eformance_KomerciParc' => true,
56
+ 'boleto_bradesco' => false,
57
+ 'Maxima_Cielo_Cc' => true,
58
+ 'cartao' => true,
59
+ 'superpay' => true,
60
+ 'cielo' => true,
61
+ 'gwap_cc' => true,
62
+ 'Maxima_Cielo_Dc' => true,
63
+ 'payzen_standard' => true
64
  );
65
+ protected static $_additional_data = '10_A01';
66
+
67
  /* Verifica se a forma de pagamento pode ser utilizada com o FControl */
68
 
69
+ public function validate($payment = null) {
70
+ // $payment->getData('additional_data');
71
+
72
+
73
+ if (in_array($payment->getMethod(), self::$_service)) {
74
+ if (self::$_service[$payment->getMethod()]) {
75
+
76
+ if ($payment->getMethod() == "ipgcore") {
77
+
78
+ if ($payment->getData('additional_data') == self::$_additional_data) {
79
+
 
80
  return false;
81
+ } else {
82
  return true;
83
  }
84
+ } else {
 
85
  return true;
86
  }
 
87
  }
88
  }
89
+
90
  return false;
91
  }
 
 
92
 
93
  public function filter($payment = null, Buscape_Fcontrol_Model_Api_Abstract $api = null) {
94
  if ($api && in_array($payment->getMethod(), self::$_service)) {
166
  return $api;
167
  }
168
 
169
+ }
app/code/community/Buscape/Fcontrol/Model/Api.php CHANGED
@@ -29,7 +29,7 @@ class Buscape_Fcontrol_Model_Api extends Buscape_Fcontrol_Model_Api_Abstract
29
  public function analisaFrame()
30
  {
31
  function retira_acentos($texto){
32
- return strtr($texto, "��������������������������", "aaaaeeiooouucAAAAEEIOOOUUC");
33
  }
34
 
35
  $url = $this->_urlFrame;
29
  public function analisaFrame()
30
  {
31
  function retira_acentos($texto){
32
+ return strtr($texto, "áàãâéêíóôõúüçÁÀÃÂÉÊÍÓÔÕÚÜÇ", "aaaaeeiooouucAAAAEEIOOOUUC");
33
  }
34
 
35
  $url = $this->_urlFrame;
app/code/community/Buscape/Fcontrol/etc/config.xml CHANGED
@@ -22,7 +22,7 @@
22
  <config>
23
  <modules>
24
  <Buscape_Fcontrol>
25
- <version>0.1.12</version>
26
  </Buscape_Fcontrol>
27
  </modules>
28
  <global>
22
  <config>
23
  <modules>
24
  <Buscape_Fcontrol>
25
+ <version>0.1.13</version>
26
  </Buscape_Fcontrol>
27
  </modules>
28
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Buscape_Fcontrol</name>
4
- <version>0.1.12</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -22,9 +22,9 @@
22
  &lt;p&gt;Para suporte, mande um e-mail para: &lt;a href="mailto:suporte.developer@buscapecompany.com"&gt;suporte.developer@buscapecompany.com&lt;/a&gt;&lt;/p&gt;</description>
23
  <notes>Extens&#xE3;o Buscap&#xE9; Fcontrol para Magento CE 1.3+, PE 1.9+ e EE 1.7+.</notes>
24
  <authors><author><name>Buscap&#xE9; Developer</name><user>auto-converted</user><email>suporte@devbuscapecompany.com</email></author></authors>
25
- <date>2013-11-21</date>
26
- <time>13:17:38</time>
27
- <contents><target name="mageetc"><dir name="modules"><file name="Buscape_Fcontrol.xml" hash="1883e6e4a5f712adbb28fc48b91b77ed"/></dir></target><target name="magecommunity"><dir name="Buscape"><dir name="Fcontrol"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="View"><file name="Info.php" hash="7c9df00716de71af13594b2a0459e82b"/></dir><file name="Grid.php" hash="8a9cd394c7d05c875353b9a6a9c509f8"/></dir><file name="Order.php" hash="306f634ac46d7dec061fd18e76f11e34"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="533804f2631993dbfd1d2cbb978510a1"/></dir><dir name="Model"><dir name="Adapter"><file name="Payment.php" hash="06bf29d38671e6906afde2e21e0265d8"/><file name="Shipping.php" hash="d40c268415ec2a2c50870bf811176b44"/></dir><dir name="Api"><file name="Abstract.php" hash="1c09c03e3ded8330776d4c8b207c6023"/></dir><dir name="Source"><file name="Service.php" hash="ce9458ee8419c55346ab96ead62915de"/></dir><file name="Api.php" hash="849b4185338eb165e2460e5994d6f607"/><file name="Config.php" hash="fab005089945576b2b6cf4ecf076d3af"/><file name="Observer.php" hash="8b68046645290c9f91957fa38a1df290"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Sales"><file name="OrderController.php" hash="d5689003f317b36edf4f29f87762d522"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="6ee7fd48ef6dcdb31c862c50bd943afa"/><file name="system.xml" hash="59feecd9c05487e0e9d65e233f854aed"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="buscape"><dir name="fcontrol"><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="d413cbc0c742f78e24e5dfcd1859dc66"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="nusoap"><file name="nusoap.php" hash="be25f8f414d3bc104fa32fd33d1ca670"/><file name="nusoap_base.php" hash="2b58ef48c2588c9eb1e197e609cf3578"/><file name="nusoap_fault.php" hash="b1e071de96ac6ec4401fc3378985b915"/><file name="nusoapmime.php" hash="385906df53d95e99d44a3ccf826657b0"/><file name="soap_parser.php" hash="5fd16dfe735ba059a2bcd6f13b2e4200"/><file name="soap_server.php" hash="7335a46989fcb2e6a0cb094bea9636f6"/><file name="soap_transport_http.php" hash="47e7e9295559211833aa733259ae4426"/><file name="soap_val.php" hash="bfe395c44feee1833806ffb87f53d301"/><file name="soapclient.php" hash="a386ecd977dcef79dacebd596808773f"/><file name="wsdl.php" hash="848f9fce1e0da0d88584d0e6ca1f242d"/><file name="wsdlcache.php" hash="e06853ca25271b5cb4b8a7016c960a40"/><file name="xmlschema.php" hash="5d5c67fd3e30dd96a186551a7c7221c8"/></dir></target></contents>
28
  <compatible/>
29
  <dependencies/>
30
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Buscape_Fcontrol</name>
4
+ <version>0.1.13</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
22
  &lt;p&gt;Para suporte, mande um e-mail para: &lt;a href="mailto:suporte.developer@buscapecompany.com"&gt;suporte.developer@buscapecompany.com&lt;/a&gt;&lt;/p&gt;</description>
23
  <notes>Extens&#xE3;o Buscap&#xE9; Fcontrol para Magento CE 1.3+, PE 1.9+ e EE 1.7+.</notes>
24
  <authors><author><name>Buscap&#xE9; Developer</name><user>auto-converted</user><email>suporte@devbuscapecompany.com</email></author></authors>
25
+ <date>2014-04-16</date>
26
+ <time>14:39:09</time>
27
+ <contents><target name="mageetc"><dir name="modules"><file name="Buscape_Fcontrol.xml" hash="1883e6e4a5f712adbb28fc48b91b77ed"/></dir></target><target name="magecommunity"><dir name="Buscape"><dir name="Fcontrol"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="View"><file name="Info.php" hash="7c9df00716de71af13594b2a0459e82b"/></dir><file name="Grid.php" hash="8a9cd394c7d05c875353b9a6a9c509f8"/></dir><file name="Order.php" hash="306f634ac46d7dec061fd18e76f11e34"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="533804f2631993dbfd1d2cbb978510a1"/></dir><dir name="Model"><dir name="Adapter"><file name="Payment.php" hash="6bf8c00b2bc27a4939191b44f5e56ac4"/><file name="Shipping.php" hash="d40c268415ec2a2c50870bf811176b44"/></dir><dir name="Api"><file name="Abstract.php" hash="1c09c03e3ded8330776d4c8b207c6023"/></dir><dir name="Source"><file name="Service.php" hash="ce9458ee8419c55346ab96ead62915de"/></dir><file name="Api.php" hash="4bd8e331f77f9d0efe00a07c43376600"/><file name="Config.php" hash="fab005089945576b2b6cf4ecf076d3af"/><file name="Observer.php" hash="8b68046645290c9f91957fa38a1df290"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Sales"><file name="OrderController.php" hash="d5689003f317b36edf4f29f87762d522"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="4ba752923717c66911db8169143c1b37"/><file name="system.xml" hash="59feecd9c05487e0e9d65e233f854aed"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="buscape"><dir name="fcontrol"><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="d413cbc0c742f78e24e5dfcd1859dc66"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="nusoap"><file name="nusoap.php" hash="be25f8f414d3bc104fa32fd33d1ca670"/><file name="nusoap_base.php" hash="2b58ef48c2588c9eb1e197e609cf3578"/><file name="nusoap_fault.php" hash="b1e071de96ac6ec4401fc3378985b915"/><file name="nusoapmime.php" hash="385906df53d95e99d44a3ccf826657b0"/><file name="soap_parser.php" hash="5fd16dfe735ba059a2bcd6f13b2e4200"/><file name="soap_server.php" hash="7335a46989fcb2e6a0cb094bea9636f6"/><file name="soap_transport_http.php" hash="47e7e9295559211833aa733259ae4426"/><file name="soap_val.php" hash="bfe395c44feee1833806ffb87f53d301"/><file name="soapclient.php" hash="a386ecd977dcef79dacebd596808773f"/><file name="wsdl.php" hash="848f9fce1e0da0d88584d0e6ca1f242d"/><file name="wsdlcache.php" hash="e06853ca25271b5cb4b8a7016c960a40"/><file name="xmlschema.php" hash="5d5c67fd3e30dd96a186551a7c7221c8"/></dir></target></contents>
28
  <compatible/>
29
  <dependencies/>
30
  </package>