forked from luizwbr/PagSeguro-VirtueMart-3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
2,664 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
=================================================================================================== | ||
Plugin Pagamento Pagseguro Virtuemart 2.0 1.4 | ||
Loja Weber - Webgenium | ||
=================================================================================================== | ||
|
||
*** Para instalar no Virtuemart, basta compactar os arquivos e usar o instalador do Joomla 1.6,1.7,2.5 | ||
|
||
* Requisito: VirtueMart 2.0.16 | ||
|
||
Passo 1 - Habilite o plugin aqui Administrar Plugins | ||
Passo 2 - Instale Plugin por esta tela Métodos de pagamento | ||
Passo 2.1 - Clique em Novo Método de Pagamento e preencha as informações: | ||
* Nome do Pagamento: Pagseguro | ||
* Publicado: Sim | ||
* Descrição do pagamento: Pague com Pagseguro | ||
* Método de pagamento: Pagseguro | ||
* Grupo de Compradores: -default- | ||
Passo 2.2 - Clique em Salvar. | ||
Passo 3 - Na aba configurações, preencha os dados: | ||
* Logotipos: | ||
* Email pagseguro: Email da conta no Pagseguro | ||
* Token: Página inicial > Ferramentas > Preferências > Retorno automatico dos dados ( https://pagseguro.uol.com.br/preferences/automaticReturn.jhtml#rmcl ) | ||
* Tipo de Frete Padrão ( caso seja passado frete, esse parâmetro é desconsiderado) | ||
|
||
-- Status de pedidos | ||
* Completo: status transação Enviada | ||
* Aprovado: Status do Pedido quando Aprovada a transação | ||
* Em Análise: Status do pedido em análise | ||
* Cancelado: Status do Pedido quando Cancelada a transação | ||
* Aguardando Pagto: Status Pendente do Pedido | ||
* Paga: Status Pago do Valor da Transação | ||
* Disponível: Status Disponível do Valor da Transação | ||
* Devolvida: Status Devolvido do Valor da Transação | ||
* Em disputa: Status em disputa do Valor da Transação | ||
|
||
=================================================================================================== | ||
Contato: Luiz Felipe Weber | ||
[email protected] | ||
=================================================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<html><body bgcolor="#FFFFFF"></body></html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
defined('_JEXEC') or die(); | ||
|
||
/** | ||
* | ||
* @package VirtueMart | ||
* @subpackage Plugins - Elements | ||
* @author Valérie Isaksen | ||
* @link http://www.virtuemart.net | ||
* @copyright Copyright (c) 2004 - 2011 VirtueMart Team. All rights reserved. | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php | ||
* VirtueMart is free software. This version may have been modified pursuant | ||
* to the GNU General Public License, and as distributed it includes or | ||
* is derivative of works licensed under the GNU General Public License or | ||
* other free or open source software licenses. | ||
* @version $Id: $ | ||
*/ | ||
/* | ||
* This class is used by VirtueMart Payment or Shipment Plugins | ||
* which uses JParameter | ||
* So It should be an extension of JFormField | ||
* Those plugins cannot be configured througth the Plugin Manager anyway. | ||
*/ | ||
class JFormFieldSpacer extends JFormField { | ||
|
||
/** | ||
* Element name | ||
* @access protected | ||
* @var string | ||
*/ | ||
public $type = 'Spacer'; | ||
|
||
protected function getInput() { | ||
$html = "<div>".$this->value."</div>"; | ||
return $html; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/** | ||
* Admin CSS file | ||
* @package News Show Pro GK4 | ||
* @Copyright (C) 2009-2011 Gavick.com | ||
* @ All rights reserved | ||
* @ Joomla! is Free Software | ||
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html | ||
* @version $Revision: GK4 1.0 $ | ||
**/ | ||
|
||
::-moz-selection { background: #d75307; color: #fff } | ||
::selection { background: #d75307; color: #fff } | ||
#jform_params_about_us-lbl, | ||
#jform_params___field1-lbl, | ||
label[id^=jform_params_gk_line_] { display: none; } | ||
#jform_params_news_since_img { margin-top: 8px; } | ||
.switcher-on, | ||
.switcher-off { width:94px; height:27px; background:transparent url('switcher.png') no-repeat 0 0; cursor:pointer; float: left; margin-top: 3px; } | ||
.switcher-off { background-position:-94px 0; } | ||
span.unit { line-height:34px; } | ||
span.readonly { padding: 20px; font-family: Arial; font-size:13px !important; font-weight: normal !important; text-align: justify; color: #4d4d4d; line-height: 24px; } | ||
span.readonly h1 { clear:both; font-family: Georgia, sans-serif; font-size:38px; margin:30px 20px 23px; padding:0px 0px 24px 10px; color:#333; border-bottom: 1px solid #eee; font-weight: normal; } | ||
span.readonly p { margin: 0 26px 10px } | ||
span.readonly p a { color: #AB3F0A } | ||
span.readonly p.homepage {margin-top: 30px} | ||
span.readonly p.license { border-top: 1px solid #eee; font-size: 11px; margin: 30px 26px 0; padding: 6px 0; } | ||
/* lines */ | ||
.gkFormLine { background:#eee; clear:both; display:block; height:5px; margin: 0 -10px!important; } | ||
.gkFormLine.hasText{ border-top: 10px solid #fff; border-bottom: 5px solid #fff; color: #999; font-size: 10px; line-height:1px; padding-left: 25px; cursor: pointer; } | ||
.gkFormLine.hasText span{ padding: 3px; background: #fff; } | ||
/* togglers */ | ||
.pane-sliders .panel { border: none !important; } | ||
div.panel > h3 { height: 43px; background: transparent url('interface.png') repeat-x 0 0 !important; border: 1px solid #d8d8d8; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; font: bold 12px/43px Arial, Helvetica, sans-serif; text-transform: uppercase; } | ||
div.panel > h3 a { color: #333; text-shadow: 0 1px 1px #fff; } | ||
div.panel > h3 a:hover, | ||
div.panel h3.pane-toggler-down a { color: #ab3f0a } | ||
div.panel h3.pane-toggler-down { border-bottom: 4px solid #d75307 !important } | ||
.pane-toggler span { background: transparent url('j_arrow.png') no-repeat 5px 50% !important; } | ||
.pane-toggler-down span { background: transparent url('j_arrow_down.png') no-repeat 5px 50% !important; } | ||
.pane-sliders .content { margin: 4px auto; width: 99%; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } | ||
.gkHelpLink { float: right !important; width: 22px; height: 22px; cursor: pointer; margin: 11px 12px 0 10px; background: transparent url('interface.png') repeat-x 0 100%; } | ||
.gkHelpLink:hover { background-position: 0 -48px; } | ||
/* form elements in the container */ | ||
#jform_params_k2_tags {height: 150px} | ||
.panel fieldset.panelform > ul > li > label { color: #444; font-size: 11px; font-weight: bold; height: 24px; line-height: 24px; padding: 0 20px 0 10px; text-align: right; max-width: 30%!important; min-width: 30%!important; } | ||
.panel fieldset.panelform > ul > li fieldset { line-height:28px; } | ||
fieldset.panelform input[type=radio] { margin-top: 11px; } | ||
fieldset.panelform input { height: 16px; color: #555; line-height: 16px; padding: 4px; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; } | ||
fieldset.panelform input.small { width: 40px; } | ||
fieldset.panelform input.tright { text-align: right; } | ||
fieldset.panelform input[type=button] { height: 26px; line-height: 26px; } | ||
fieldset.panelform select { height: 26px; color: #555; line-height: 24px; padding: 4px; font-size:11px; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; } | ||
fieldset.panelform select.position { width: 80px!important; } | ||
fieldset.panelform textarea { padding: 4px; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; } | ||
fieldset.panelform select[multiple=multiple] { height: 150px; } | ||
/* lists */ | ||
#tools_for_pages_input, | ||
#google_analytics_input, | ||
#menu_override_input, | ||
#suffix_override_input, | ||
#suffix_override_select, | ||
#layout_override_input { width: 80px; } | ||
.fltrt ul.adminformlist li { overflow: hidden; border-bottom: 1px solid #eee; padding: 1px 10px; margin: 0; } | ||
.tools_for_pages_remove_rule, | ||
.google_analytics_remove_rule, | ||
.menu_override_remove_rule, | ||
.suffix_override_remove_rule, | ||
.module_override_remove_rule, | ||
.layout_override_remove_rule { float: right; } | ||
fieldset.panelform .label { font-size: 11px; font-weight: bold; width: auto; padding: 0 5px; line-height:34px; } | ||
fieldset.panelform .desc { font-size: 11px; font-weight: normal; width: auto; padding: 10px; } | ||
/* Updates */ | ||
#gk_module_updates { margin: 20px -10px 0; border-right: 1px solid #eee } | ||
#gk_module_updates li { margin: 0; padding: 0; border: none; line-height: 34px; color: #555; border-top: 1px solid #eee } | ||
#gk_module_updates li span strong { padding: 0 12px 0 0 } | ||
#gk_module_updates li span { display: block; float: left; height: 34px; line-height: 34px; padding: 0 0 0 20px; border-left: 1px solid #eee } | ||
span.gk_update_version { width: 110px; background: #fff9f6; } | ||
span.gk_update_data { width: 150px; background: #f9f9f9; } | ||
span.gk_update_link a { padding: 4px 12px; -moz-border-radius: 26px; background: #d75307; text-transform: uppercase; font: bold 10px Arial, Helvetica, sans-serif; color: #fff; line-height: 34px; } | ||
span.gk_update_link a:hover { background: #222; text-decoration: none; } | ||
#gk_module_updates p { color: #555 } | ||
/* 1.7 new CSS rules */ | ||
#simple_crop { width: 321px; float: left} | ||
#simple_crop_top_wrap, | ||
#simple_crop_bottom_wrap, | ||
#simple_crop_left_wrap, | ||
#simple_crop_right_wrap { width: 46px; line-height: 36px } | ||
#simple_crop_top_wrap, | ||
#simple_crop_bottom_wrap { margin: 0 auto; } | ||
#simple_crop_left_wrap, | ||
#simple_crop_right_wrap { float: left; margin-top: 90px; } | ||
#simple_crop_left_wrap { margin-right: 10px; } | ||
#simple_crop_right_wrap { margin-left: 10px; } | ||
#simple_crop_top, | ||
#simple_crop_bottom, | ||
#simple_crop_left, | ||
#simple_crop_right { font-size: 12px; width: 24px; margin-right:2px;} | ||
#simple_crop_main_wrap { clear: both; overflow: hidden; } | ||
#simple_crop_bg { width: 202px; height: 202px; border: 3px solid #eee; background: url('cropbg.jpg') no-repeat; float:left; } | ||
#simple_crop_crop { width: 200px; height: 200px; border: 1px solid #ddd; background: #fff; opacity: 0.5; filter:alpha(opacity=50); } | ||
#paramscrop_rules { width: 90%; height: 120px; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
defined('_JEXEC') or die(); | ||
|
||
/** | ||
* | ||
* @package VirtueMart | ||
* @subpackage Plugins - Elements | ||
* @author Valérie Isaksen | ||
* @link http://www.virtuemart.net | ||
* @copyright Copyright (c) 2004 - 2011 VirtueMart Team. All rights reserved. | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php | ||
* VirtueMart is free software. This version may have been modified pursuant | ||
* to the GNU General Public License, and as distributed it includes or | ||
* is derivative of works licensed under the GNU General Public License or | ||
* other free or open source software licenses. | ||
* @version $Id: $ | ||
*/ | ||
/* | ||
* This class is used by VirtueMart Payment or Shipment Plugins | ||
* which uses JParameter | ||
* So It should be an extension of JFormField | ||
* Those plugins cannot be configured througth the Plugin Manager anyway. | ||
*/ | ||
class JFormFieldVmAbout extends JFormField { | ||
|
||
/** | ||
* Element name | ||
* @access protected | ||
* @var string | ||
*/ | ||
public $type = 'About'; | ||
|
||
protected function getInput() { | ||
$html = ''; | ||
if (method_exists($this, 'getAttribute')) { | ||
$path = $this->getAttribute('path'); | ||
$doc = JFactory::getDocument(); | ||
$html = '<div style="float:left"> | ||
<img src="'.JURI::root().$path.DS.'logo_pagseguro2.jpg" border="0"/><br /> | ||
<h1> Plugin de pagamento PagSeguro para Virtuemart 3.0.</h1> | ||
<div>Solicitações, atualizações e notícias sobre o projeto: <a href="http://virtuemartbrasil.com.br">VirtueMart Brasil</a> </div> | ||
<div>Suporte: <a href="http://virtuemartbrasil.com.br">http://virtuemartbrasil.com.br</a> </div> | ||
</div>'; | ||
} | ||
return $html; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
defined('_JEXEC') or die(); | ||
|
||
/** | ||
* | ||
* @package VirtueMart | ||
* @subpackage Plugins - Elements | ||
* @author Valérie Isaksen | ||
* @link http://www.virtuemart.net | ||
* @copyright Copyright (c) 2004 - 2011 VirtueMart Team. All rights reserved. | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php | ||
* VirtueMart is free software. This version may have been modified pursuant | ||
* to the GNU General Public License, and as distributed it includes or | ||
* is derivative of works licensed under the GNU General Public License or | ||
* other free or open source software licenses. | ||
* @version $Id: $ | ||
*/ | ||
/* | ||
* This class is used by VirtueMart Payment or Shipment Plugins | ||
* which uses JParameter | ||
* So It should be an extension of JFormField | ||
* Those plugins cannot be configured througth the Plugin Manager anyway. | ||
*/ | ||
class JFormFieldVmBar extends JFormField { | ||
|
||
/** | ||
* Element name | ||
* @access protected | ||
* @var string | ||
*/ | ||
public $type = 'Bar'; | ||
|
||
protected function getInput() { | ||
$html = ""; | ||
return $html; | ||
} | ||
|
||
function fetchTooltip($label, $description, &$xmlElement, $control_name='', $name='') { | ||
$html = "<hr style='height: 1px' size='1' />"; | ||
return $html; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
defined('_JEXEC') or die(); | ||
|
||
/** | ||
* | ||
* @package VirtueMart | ||
* @subpackage Plugins - Elements | ||
* @author Valérie Isaksen | ||
* @link http://www.virtuemart.net | ||
* @copyright Copyright (c) 2004 - 2011 VirtueMart Team. All rights reserved. | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php | ||
* VirtueMart is free software. This version may have been modified pursuant | ||
* to the GNU General Public License, and as distributed it includes or | ||
* is derivative of works licensed under the GNU General Public License or | ||
* other free or open source software licenses. | ||
* @version $Id: $ | ||
*/ | ||
/* | ||
* This class is used by VirtueMart Payment or Shipment Plugins | ||
* which uses JParameter | ||
* So It should be an extension of JFormField | ||
* Those plugins cannot be configured througth the Plugin Manager anyway. | ||
*/ | ||
class JFormFieldVmConfiguracao extends JFormField { | ||
|
||
/** | ||
* Element name | ||
* @access protected | ||
* @var string | ||
*/ | ||
public $type = 'Configuracao'; | ||
|
||
protected function getInput() { | ||
// recupera informacao do pagamento ativo | ||
if(!class_exists('VirtueMartModelPaymentmethod'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'paymentmethod.php'); | ||
$pm = new VirtueMartModelPaymentmethod(); | ||
$pagamento = $pm->getPayment(); | ||
$url = JURI::root().'index.php?option=com_virtuemart&view=pluginresponse&task=plugin&tmpl=component&task=pluginresponsereceived&pm='.$pagamento->virtuemart_paymentmethod_id.'&nasp=1'; | ||
$html = '<div style="height: 30px; background: #E6E6E6; padding: 4px; margin: 4px;">'.$url.'</div>'; | ||
$html .= '<div><em>Copie esta url acima e <a href="https://www.moip.com.br/AdmMainMenuMyData.do?method=transactionnotification">configure neste link</a></em></div>'; | ||
return $html; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
defined('_JEXEC') or die(); | ||
/** | ||
* | ||
* @package VirtueMart | ||
* @subpackage Plugins - Elements | ||
* @author Valérie Isaksen | ||
* @link http://www.virtuemart.net | ||
* @copyright Copyright (c) 2004 - 2011 VirtueMart Team. All rights reserved. | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php | ||
* VirtueMart is free software. This version may have been modified pursuant | ||
* to the GNU General Public License, and as distributed it includes or | ||
* is derivative of works licensed under the GNU General Public License or | ||
* other free or open source software licenses. | ||
* @version $Id: $ | ||
*/ | ||
/* | ||
* This class is used by VirtueMart Payment or Shipment Plugins | ||
* which uses JParameter | ||
* So It should be an extension of JFormField | ||
* Those plugins cannot be configured througth the Plugin Manager anyway. | ||
*/ | ||
class JFormFieldVmjpluginwarning extends JFormField { | ||
|
||
/** | ||
* Element name | ||
* @access protected | ||
* @var string | ||
*/ | ||
public $type = 'vmjpluginwarning'; | ||
|
||
protected function getInput() { | ||
$lang = JFactory::getLanguage(); | ||
$lang->load('com_virtuemart',JPATH_ADMINISTRATOR); | ||
|
||
$option = vRequest::getWord('option'); | ||
if ($option == 'com_virtuemart') | ||
return null; | ||
else | ||
return JText::_('COM_VIRTUEMART_PLUGIN_WARNING'); | ||
} | ||
|
||
} |
Oops, something went wrong.