Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v1.7.7 #5

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* [Instalación](#instalación)

## Versiones
* [ePayco plugin OnPage_Checkout_PrestaShop v1.7.7](https://github.com/epayco/plugin-prestashop-agregador/releases/tag/v1.7.7).
* [ePayco plugin OnPage_Checkout_PrestaShop v1.7.6](https://github.com/epayco/plugin-prestashop-agregador/releases/tag/v1.7.6.7).


Expand Down
14 changes: 5 additions & 9 deletions epayco_agregador/controllers/front/confirmation.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,15 @@ class Epayco_agregadorConfirmationModuleFrontController extends ModuleFrontContr
public $display_column_left = false;
public $display_column_right = false;


public function initContent()
{


parent::initContent();

}

public function postProcess()
public function postProcess()
{

$payco = new Epayco_agregador();


if (isset($_REQUEST['x_cod_response']))
{
$extra1=trim($_REQUEST['x_extra1']);
Expand All @@ -54,8 +48,10 @@ public function postProcess()
$amount=trim($_REQUEST['x_amount']);
$currency=trim($_REQUEST['x_currency_code']);
$signature=trim($_REQUEST['x_signature']);

$payco->PaymentSuccess($extra1,$response,$referencia,$transid,$amount,$currency,$signature);
$x_test_request=trim($_REQUEST['x_test_request']);
$x_approval_code=trim($_REQUEST['x_approval_code']);
$x_franchise=trim($_REQUEST['x_franchise']);
$payco->PaymentSuccess($extra1,$response,$referencia,$transid,$amount,$currency,$signature,"true",$x_test_request,$x_approval_code,$x_franchise);
} else {
/*
* An error occured and is shown on a new page.
Expand Down
Loading