| Current Path : /home/h/a/p/happyrenas/old/happy-r.fr/transfere_pro/mangopay/OLD/ |
Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 |
| Current File : /home/h/a/p/happyrenas/old/happy-r.fr/transfere_pro/mangopay/OLD/3dsecure_original.php |
<?php
session_start();
$page='paiement';
include("../config.php");
$transactionId = $_REQUEST['transactionId'];
// MISE A JOUR BDD
if ($_SESSION['reservation_id'])
{
$requete="UPDATE reservation set statut ='4', paymentid='".$transactionId."' where id =".$_SESSION['reservation_id'];
//echo $requete;
$db->query($requete);
}
//echo "<br>Variable1 : ".$_SESSION['passage'];
//echo "<br>Req : ".$requete;
?>
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<title>Module de paiement en ligne</title>
<meta name='description' content=""/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="icon" href="images/icone.ico"/>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="design.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/prefixfree.js"></script>
</head>
<body>
<header>
</header>
<section id="main-content">
<p id="top"></p>
<div>
<div id="bloc-paiement">
<p class="font11">
<?
print '<div style="color:green;">'.
'Votre paiement a été validé. '
//.'Pay-In Id = ' . $createdPayIn->Id
//. ', Wallet Id = ' . $createdWallet->Id
. ' ('.$transactionId.')</div>';
// ENVOI DU MAIL DE VALIDATION AU PROPRIETAIRE//
//////////////////
require "../includes/class.phpmailer.php";
if ($_SESSION['proprietaire_mail'])
{
include('mailing_template_paiement_proprietaire.php');
$objet="Happy Rentals PAIEMENT";
$from="contact@happy-r.fr";
$to_1=$_SESSION['proprietaire_mail'];
$reply=$nom_du_mail;
$mail = new PHPmailer();
$mail->IsHTML(true);
$mail->From=$from;
$mail->AddAddress($to_1);
$mail->AddReplyTo($reply);
$mail->Subject=$objet;
$mail->Body=$message;
if(!$mail->Send())
{echo $mail->ErrorInfo;}
else{echo '';}
unset($mail);
}
if ($_SESSION['client_mail'])
{
// ENVOI DU MAIL DE VALIDATION AU CLIENT//
//////////////////
$lien=$nom_de_domaine."/administration/templates/admin2/contrat.php?reservation_id=".$_SESSION['reservation_id'];
$signature = $_SESSION['proprietaire_prenom']." ".$_SESSION['proprietaire_nom'];
$mail_proprietaire=$_SESSION['proprietaire_mail'];
include('mailing_template_paiement_client.php');
$objet="Happy Rentals Confirmation de paiement";
$from="contact@happy-r.fr";
$to_1=$_SESSION['client_mail'];
$reply=$nom_du_mail;
$mail = new PHPmailer();
$mail->IsHTML(true);
$mail->From=$from;
$mail->AddAddress($to_1);
$mail->AddReplyTo($reply);
$mail->Subject=$objet;
$mail->Body=$message;
if(!$mail->Send())
{echo $mail->ErrorInfo;}
else{echo '';}
unset($mail);
}
$_SESSION = array();
?>
</p>
</div>
</div>
</section>
<footer>
<div>
<p>
<br/><br/>
© Copyright 2014 - Happy Rentals - Tous droits réservés - Marque déposée<br/>
Happy R protège les clients des faux propriétaires ou de personnes qui usurpent l'identité de vrai propriétaire.
</p>
</div>
</footer>
</body>
<!-- SCRIPTS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script src="js/smoothscroll.js"></script>
<script type="text/javascript">
function inputFocus(input) {
if(input.value==input.defaultValue) {
input.value = '';
}
}
function inputBlur(input) {
if(input.value=='') {
input.value = input.defaultValue;
}
}
</script>
</html>