Commit dda0b911 authored by Mindiell's avatar Mindiell

Mise en configuration de certaines variables importantes

parent f686517f
Pipeline #1948 failed with stages
in 7 seconds
......@@ -189,7 +189,7 @@ class Campaign extends Controller
}
setcookie("donlqdn", md5("SALT!!!".$id."!!!"), 86400, "/");
$target = "https://paiement.systempay.fr/vads-payment/";
$target = PAYMENT_URL; //"https://paiement.systempay.fr/vads-payment/";
$transaction_date = new DateTime('now', new DateTimeZone("UTC"));
$params = array(
// Champs obligatoires
......@@ -204,11 +204,11 @@ class Campaign extends Controller
"vads_language" => $f3->get('lang'),
"vads_order_id" => $id,
"vads_url_cancel" => ROOTURL,
"vads_url_check" => "",
"vads_url_check" => RETURN_CHECK_URL,
"vads_url_error" => ROOTURL,
"vads_url_referral" => ROOTURL,
"vads_url_refused" => ROOTURL,
"vads_url_return" => ROOTURL . "/merci",
"vads_url_return" => ROOTURL . "merci",
"vads_url_success" => ROOTURL,
"vads_validation_mode" => "0",
"vads_shop_name" => "La Quadrature du Net",
......@@ -255,6 +255,7 @@ class Campaign extends Controller
foreach ($params as $key=>$value) {
$don_log->write($key.' : '.$value);
}
$don_log->write('certificate : '. CERTIFICATE);
$don_log->write('signature : '. $signature);
$f3->set('form_visible', 'vads');
Campaign::show($f3, $args);
......
......@@ -20,6 +20,8 @@ define("SQL_DSN", "mysql:host=".SQL_HOST.";port=".SQL_PORT.";dbname=".SQL_DATABA
define("SQL_USER", getenv('SQL_USER'));
define("SQL_PASSWORD", getenv('SQL_PASSWORD'));
define("PAYMENT_URL", getenv('PAYMENT_URL'));
define("RETURN_CHECK_URL", getenv('RETURN_CHECK_URL'));
define("SITE_ID", getenv('SITE_ID'));
define("CERTIFICATE", getenv('CERTIFICATE'));
define("CTX_MODE", getenv('CTX_MODE'));
......
......@@ -17,6 +17,8 @@ FDNNURL1=https://secure.fd2n.org/fd2n/cb
FDNNURL2=https://secure.fdn2.org/fdn2/don
BASE_DOMAIN=dev.laquadrature.net
PAYMENT_URL=http://localhost:5001/payment
RETURN_CHECK_URL=
SITE_ID=XXXXXXXX
CERTIFICATE=XXXXXXXXXXXXXXXXXXXXXXXXx
CTX_MODE=TEST
......
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