adding return params

This commit is contained in:
Marion Muszynski 2016-07-05 15:30:42 +02:00
parent cc0b9ce4a3
commit 75e3ab7177
2 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,7 @@ $pbx_site = trim(Configuration::get('PBX_SITE'));
$pbx_rang = trim(Configuration::get('PBX_RANG'));
$pbx_id = trim(Configuration::get('PBX_ID'));
$pbx_retour = 'm:M;r:R;t:T;a:A;b:B;p:P;c:C;s:S;y:Y;e:E;d:D;k:K';
$pbx_retour = 'm:M;r:R;t:T;a:A;b:B;p:P;c:C;s:S;y:Y;e:E;h:H;j:J;u:U;d:D;k:K';
$pbx_total = (int)sprintf('%f', number_format(Tools::convertPrice($cart->getOrderTotal(), null, false), 2, '.', '') * 100);
if (version_compare(_PS_VERSION_, '1.5', '>'))

View File

@ -258,6 +258,9 @@ class Paybox extends PaymentModule
* @param array $values Tableau de retour Paybox
**/
public function saveInformationPaiement($values) {
mail('marion@antadis.com', 'Transaction value', serialize($values)); // dev
$sql_cart = 'SELECT `num_transaction`
FROM `ps_paybox_transaction`
WHERE `id_cart` = ' .(int)$values["r"];