Skip to content

Commit

Permalink
nuevos botones de pago
Browse files Browse the repository at this point in the history
  • Loading branch information
edavism committed May 4, 2015
1 parent bcf9a02 commit c648e70
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>khipupayment</name>
<displayName><![CDATA[khipu]]></displayName>
<version><![CDATA[2.0.5]]></version>
<version><![CDATA[2.0.6]]></version>
<description><![CDATA[Transferencia bancaria usando khipu]]></description>
<author><![CDATA[khipu]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
2 changes: 1 addition & 1 deletion config_es.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>khipupayment</name>
<displayName><![CDATA[khipu]]></displayName>
<version><![CDATA[2.0.5]]></version>
<version><![CDATA[2.0.6]]></version>
<description><![CDATA[Transferencia bancaria usando khipu]]></description>
<author><![CDATA[khipu]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down
2 changes: 1 addition & 1 deletion controllers/front/bankselect.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function initContent()

$khipu->authenticate(Configuration::get('KHIPU_MERCHANTID'), Configuration::get('KHIPU_SECRETCODE'));

$khipu->setAgent('prestashop-khipu-2.0.5;;'.Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ .';;'.Configuration::get('PS_SHOP_NAME'));
$khipu->setAgent('prestashop-khipu-2.0.6;;'.Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ .';;'.Configuration::get('PS_SHOP_NAME'));
$khipu_service = $khipu->loadService('ReceiverBanks');


Expand Down
2 changes: 1 addition & 1 deletion controllers/front/manual.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function initContent()


$khipu->authenticate(Configuration::get('KHIPU_MERCHANTID'), Configuration::get('KHIPU_SECRETCODE'));
$khipu->setAgent('prestashop-khipu-2.0.5;;'.Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ .';;'.Configuration::get('PS_SHOP_NAME'));
$khipu->setAgent('prestashop-khipu-2.0.6;;'.Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ .';;'.Configuration::get('PS_SHOP_NAME'));
$khipu_service = $khipu->loadService('CreatePaymentURL');

$data = array(
Expand Down
2 changes: 1 addition & 1 deletion controllers/front/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function initContent()


$khipu->authenticate(Configuration::get('KHIPU_MERCHANTID'), Configuration::get('KHIPU_SECRETCODE'));
$khipu->setAgent('prestashop-khipu-2.0.5;;'.Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ .';;'.Configuration::get('PS_SHOP_NAME'));
$khipu->setAgent('prestashop-khipu-2.0.6;;'.Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ .';;'.Configuration::get('PS_SHOP_NAME'));
$khipu_service = $khipu->loadService('CreatePaymentURL');

$data = array(
Expand Down
2 changes: 1 addition & 1 deletion khipupayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct() {
$this->description = $this->l('Transferencia bancaria usando khipu');

$this->author = 'khipu';
$this->version = '2.0.5';
$this->version = '2.0.6';
$this->tab = 'payments_gateways';


Expand Down
4 changes: 2 additions & 2 deletions validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Khipu_Postback {

private $byKhipuStatus;
private $byPrestaStatus;
private $version = '2.0.5';
private $version = '2.0.6';

public function init() {
define('_PS_ADMIN_DIR_', getcwd());
Expand Down Expand Up @@ -62,7 +62,7 @@ private function validate_1_2_notification() {
private function validate_1_3_notification() {
$Khipu = new Khipu();
$Khipu->authenticate(Configuration::get('KHIPU_MERCHANTID'), Configuration::get('KHIPU_SECRETCODE'));
$Khipu->setAgent('prestashop-khipu-2.0.5;;'.Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ .';;'.Configuration::get('PS_SHOP_NAME'));
$Khipu->setAgent('prestashop-khipu-2.0.6;;'.Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ .';;'.Configuration::get('PS_SHOP_NAME'));
$khipu_service = $Khipu->loadService('GetPaymentNotification');

$khipu_service->setDataFromPost();
Expand Down
8 changes: 4 additions & 4 deletions views/templates/hook/payment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<p class="payment_module">
<a href="{$link->getModuleLink('khipupayment', 'bankselect')|escape:'html'}"
title="{l s='Transferencia simplificada' mod='khipupayment'}">
<img src="{$logo}" alt="{l s='Transferencia simplificada' mod='khipupayment'}"/>
<img src="//s3.amazonaws.com/static.khipu.com/buttons/2015/150x50-transparent.png" alt="{l s='Transferencia simplificada' mod='khipupayment'}"/>
{l s='Transferencia simplificada' mod='khipupayment'}
</a>
</p>
Expand All @@ -11,8 +11,8 @@
<p class="payment_module">
<a href="{$link->getModuleLink('khipupayment', 'manual')|escape:'html'}"
title="{l s='Transferencia bancaria usando khipu' mod='khipupayment'}">
<img src="{$logo}" alt="{l s='Transferencia bancaria usando khipu' mod='khipupayment'}"/>
{l s='Transferencia bancaria (normal)' mod='khipupayment'}
<img src="//s3.amazonaws.com/static.khipu.com/buttons/2015/150x50-normal-transparent.png" alt="{l s='Transferencia normal' mod='khipupayment'}"/>
{l s='Transferencia normal' mod='khipupayment'}
</a>
</p>
{/if}
{/if}

0 comments on commit c648e70

Please sign in to comment.