Commit 0f537cc1 authored by Skia's avatar Skia

Merge branch 'skia' into 'master'

Skia: update for e-boutic

See merge request !4
parents f5fad726 5567b425
......@@ -35,13 +35,12 @@ require_once ("./include/answer.inc.php");
/* fonction rapide de log des retours */
function log_success ($message)
{
$fp = fopen("/var/www/ae2/e-boutic/.autorep.log", "a+");
fwrite($fp, date() + $message . "\n");
$rep = ($GLOBALS['taiste']) ? "taiste" : "ae2";
$fp = fopen("/var/www/".$rep."/e-boutic/.autorep.log", "a+");
fwrite($fp, date("Y\-m\-d H\:i") . " " . $message . "\n");
fclose($fp);
}
/* Ca, c'est cense etre obligatoire
* (doc sogenactif)
*/
......@@ -51,7 +50,8 @@ if (!isset($_POST['DATA']))
die();
}
log_success("Variable DATA postée.");
log_success("Variable DATA postée: ".$_POST['DATA']);
error_log("DATA: ".$_POST['DATA']);
/* else : les serveurs sogenactif ont bien posté ce
qu'on attendait */
......
......@@ -150,6 +150,45 @@ class answer
}
function set_answer($data) {
$ret = explode("!", $data);
/** la plupart de ces affectations sont inutiles
toutefois j'ai pr�f�r� rester proche de l'API et les garder */
$this->code = $ret[1];
$this->error = $ret[2];
$this->merchant_id = $ret[3];
$this->merchant_country = $ret[4];
$this->amount = $ret[5];
$this->transaction_id = $ret[6];
$this->payment_means = $ret[7];
$this->transmission_date = $ret[8];
$this->payment_time = $ret[9];
$this->payment_date = $ret[10];
$this->response_code = $ret[11];
$this->payment_certificate = $ret[12];
$this->authorisation_id = $ret[13];
$this->currency_code = $ret[14];
$this->card_number = $ret[15];
$this->cvv_flag = $ret[16];
$this->cvv_response_code = $ret[17];
$this->bank_response_code = $ret[18];
$this->complementary_code = $ret[19];
$this->complementary_info = $ret[20];
$this->return_context = $ret[21];
$this->caddie = $ret[22];
$this->receipt_complement = $ret[23];
$this->merchant_language = $ret[24];
$this->language = $ret[25];
$this->customer_id = $ret[26];
$this->order_id = $ret[27];
$this->customer_email = $ret[28];
$this->customer_ip_address = $ret[29];
$this->capture_day = $ret[30];
$this->capture_mode = $ret[31];
$this->data = $ret[32];
}
/**
* @brief fonction de v�rification d'ajout
* pour �viter de sauver 2 fois de suite la meme facture
......
......@@ -489,27 +489,24 @@ div.tabsv2 span:last-child a:hover
div.sectionlinks
{
margin: 0 100px;
padding-top: 0.5em;
padding-bottom: 0.5em;
padding: 10px 20px;
text-align: justify;
text-transform: uppercase;
background-color:#774499;
height:8px;
vertical-align: middle;
}
div.sectionlinks a, div.sectionlinks span
{
padding-right: 1em;
padding-left: 1em;
font-size: 80%;
font-size: 100%;
color: #ffffff;
margin:5px;
display: inline-block;
margin: 0 -0.5px;
}
div.sectionlinks a:hover
{
padding-right: 1em;
padding-left: 1em;
font-size: 80%;
color: #ffffff;
color: lightgrey;
}
/*SUBSTITUT MENU 2 :en cas d'absence de liens rapide sous les onglets principaux */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment