Buscape_Fcontrol - Version 0.1.11

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.11
Comparing to
See all releases


Code changes from version 0.1.10 to 0.1.11

app/code/community/Buscape/Fcontrol/Model/Adapter/Payment.php CHANGED
@@ -20,43 +20,60 @@
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' => false,
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
  );
53
  /* Verifica se a forma de pagamento pode ser utilizada com o FControl */
54
 
55
- public function validate($payment = null)
56
  {
 
 
 
57
  if(in_array($payment->getMethod(), self::$_service)) {
58
  if(self::$_service[$payment->getMethod()]) {
59
- return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  }
61
  }
62
 
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
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Buscape_Fcontrol</name>
4
- <version>0.1.10</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.developer@buscape-inc.com</email></author></authors>
25
- <date>2013-06-06</date>
26
- <time>18:10:58</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="48a581bdb1a6473e9ce3986219d65281"/><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="7963ce511ee6c24934e99252c891c5e5"/><file name="system.xml" hash="0bbf7e2fd0ffc57a30f02fc2211c616d"/></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.11</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.developer@buscape-inc.com</email></author></authors>
25
+ <date>2013-06-17</date>
26
+ <time>19:22:02</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="7963ce511ee6c24934e99252c891c5e5"/><file name="system.xml" hash="0bbf7e2fd0ffc57a30f02fc2211c616d"/></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>