ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.136 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/computer3/litsolide.com/LCL_payment/ |
Upload File : |
<?php
// ABANDON DU PAIEMENT PAR LE CLIENT
/**********************************/
// Vraiable de retour de la banque
/********************************/
$result = $_POST['Data'];
/*
VARIABLES DE RETOUR $result
***************************
captureDay=0|
captureMode=AUTHOR_CAPTURE|
currencyCode=978|
merchantId=216000006880001|
orderChannel=INTERNET|
responseCode=17| ****************** 5
Si = 0 Paiement OK
Si = 90 ou 99 Serveur occupé revoyer la requete
transactionDateTime=2021-09-29T14:28:49+02:00|
transactionReference=202109291428467a9e|
keyVersion=1|
amount=5530|
customerIpAddress=176.184.247.0|
orderId=000025| ************ 11
paymentPattern=ONE_SHOT|
customerMobilePhone=null|
mandateAuthentMethod=null|
mandateUsage=null|
transactionActors=null|
mandateId=null|
captureLimitDate=null|
dccStatus=null|
dccResponseCode=null|
dccAmount=null|
dccCurrencyCode=null|
dccExchangeRate=null|
dccExchangeRateValidity=null|
dccProvider=null|
statementReference=null|
panEntryMode=null|
walletType=null|
holderAuthentMethod=null|
holderAuthentProgram=null|
paymentMeanId=null|
instalmentNumber=null|
instalmentDatesList=null|
instalmentTransactionReferencesList=null|
instalmentAmountsList=null|
settlementMode=null|
mandateCertificationType=null|
valueDate=null|
creditorId=null|
acquirerResponseIdentifier=null|
acquirerResponseMessage=null|
paymentMeanTradingName=null|
additionalAuthorisationNumber=null|
issuerWalletInformation=null|
s10TransactionId=4|s10TransactionIdDate=20210929|
preAuthenticationColor=null|
preAuthenticationInfo=null|
preAuthenticationProfile=null|
preAuthenticationThreshold=null|
preAuthenticationValue=null|
invoiceReference=null|
s10transactionIdsList=null|
cardProductCode=null|
cardProductName=null|
cardProductProfile=null|
issuerCode=null|
issuerCountryCode=null|
acquirerNativeResponseCode=null|
settlementModeComplement=null|
preAuthorisationProfile=null|
preAuthorisationProfileValue=null|
preAuthorisationRuleResultList=null|
preAuthenticationProfileValue=null|
preAuthenticationRuleResultList=null|
paymentMeanBrandSelectionStatus=null|
transactionPlatform=PROD|
avsAddressResponseCode=null|
avsPostcodeResponseCode=null|
customerCompanyName=null|
customerBusinessName=null|
customerLegalId=null|
customerPositionOccupied=null|
paymentAttemptNumber=1|
holderContactEmail=null|
installmentIntermediateServiceProviderOperationIdsList=null|
holderAuthentType=null|
acquirerContractNumber=null|
secureReference=null|
authentExemptionReasonList=null|
paymentAccountReference=null|
schemeTransactionIdentifier=null|
guaranteeLimitDateTime=null|
paymentMeanDataProvider=null|
virtualCardIndicator=null|
cardProductUsageLabel=null|
authorisationTypeLabel=null|
authorMessageReference=null|
acceptanceSystemApplicationId=null
*/
// Cherche les reponses en faisant le tableau
/*******************************************/
$r = explode ("|", $result);
$responseCode= $r[5]; // Code reponse du paiement
$orderId = $r[11]; // Id de la cde
// Pas de Mise a jour du status de la commande
/**********************************************/
/////////////////Si cette page pas paiement 00 : on remet la commande en attente de reglement...
/// en ne recreditant pas le stock (le client pourra annuler la commande et recrediter le stok si besoin dans son back-office site...
// TEST
/*
$responseCode='97';
$orderId = '5';
*/
/*******************************************************************************************************************************/
/*******************************************************************************************************************************/
/*******************************************************************************************************************************/
/*******************************************************************************************************************************/
/*************************************************** A OUVRIR EN PRODUCTION ****************************************************/
/*******************************************************************************************************************************/
/*******************************************************************************************************************************/
/*******************************************************************************************************************************/
/*******************************************************************************************************************************/
/*******************************************************************************************************************************/
/*******************************************************************************************************************************/
/*******************************************************************************************************************************/
/*******************************************************************************************************************************/
if (($responseCode !== '00') AND ($orderId >0)) {
include_once("../includes/config.php");
$status_cde = "0";
$sql = $bdd->prepare('INSERT INTO order_status(id_order, date_status, status)
VALUES (:order, :date_status, :status)');
$sql->execute(array('order' => $orderId,
'date_status' => date('Y-m-d H:i:s'),
'status' => $status_cde));
// include('debit_stock.php'); PLUS DE CREDIT STOCK C'EST L'ADMINISTRATEUR QUI ANNULE AU BESOIN !
}
/*******************************************************************************************************************************/
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Echec du paiement</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="container">
<div id="" style="text-align:center">
<img src="./img/logobq.png" alt="Logo LCL"/>
<div class="header_title" ></div>
</div>
<hr>
<div>
<br />
<h1 align="center"><font color="#FF0000" size="5" face="Arial">Commande en attente de paiement !</span></font></h1>
<center><b><h2>Votre transaction a été refusée ou interrompue !</b><br />
Vous pouvez contacter la boutique afin de régulariser votre paiement !</h2>
<br />
<br />
<form style="margin-top:10px;"method=POST action=../index.php >
<p style="text-align: center">
<button type="submit" class="validationButton" >
<span><font size="4">Retour à la boutique</font></span>
</button>
</p>
</form>
<br />
<br />
</div>
</div>
</body>
</html>