Viewing file: unicredit_esito.php (3.07 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include 'global.php';
filter_var($_GET["Importo"],FILTER_SANITIZE_STRING); $Importo = $_GET["Importo"];
$obj = (array) $_SESSION['unicredit_pre'];
// echo "<pre>"; // $obj = (array) $_SESSION['unicredit_pre']; // var_dump($obj['tid']); // var_dump($obj); // var_dump($_SESSION['unicredit_pre']);
// exit;
if(!isset($_GET['last_step'])) {
require('./IGFS_CG_API/init/IgfsCgVerify.php');
$verify = new IgfsCgVerify(); $verify->serverURL = "https://testuni.netsw.it/UNI_CG_SERVICES/services"; //$verify->timeout = 150000; $verify->tid = $obj['tid']; $verify->kSig = $obj['kSig']; $verify->shopID = $obj['shopID']; $verify->paymentID = $obj['paymentID']; $verify->disableCheckSSLCert();
$errorURL = $obj['errorURL']; $esitoURL = $obj['notifyURL']."?last_step=1";
if(!$verify->execute()) { header("location: ".$errorURL . "?rc=" . $verify->rc . "&errorDesc=" . $verify->errorDesc.""); return; }
header("location: ".$esitoURL . "&esito=OK&rc=" . $verify->rc . "&tranID=". $verify->tranID . "&enrStatus=" . $verify->enrStatus . "&authStatus=" .$verify->authStatus.""); return; }
?>
<!DOCTYPE html>
<html lang="en"> <head> <meta charset="utf-8"> <meta content="IE=edge" http-equiv="X-UA-Compatible"> <meta content="width=device-width,initial-scale=1" name="viewport">
<title><?php echo SITETITLE; ?> - Pagamento online</title><!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"><!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --><!-- WARNING: Respond.js doesn't work if you view the page via file:// --><!--[if lt IE 9]> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.1.38/jquery.form-validator.min.js"></script> <script src="js/jquery.mask.min.js"></script> <![endif]-->
<style> body { margin-top:20px; } .container { max-width:960px; } input[disabled] { border: 0px solid transparent!important; background-color: #FFF!important; box-shadow: 0px 0px!important; font-weight: bold; } </style> </head>
<body> <div class="container">
<div class="header">
<img src="logo_wt1.jpg" height="100">
<h3 class="pull-right text-muted"><?php echo SITENAME; ?> - Pagamento Online</h3>
</div> <div class="row"> <div class="col_sm_12"> <br /> </div> </div>
<div class="row"> <div class="col_sm_8 col_sm_offset_2 center-block panel panel-success"> <div class="panel-heading">TRANSAZIONE AVVENUTA CON SUCCESSO</div> <div class="panel-body"> OK, pagamento completato<br> TRANSACTION ID : <b><?php echo $_GET["tranID"]; ?></b> </div> </div> </div> </div> <script src="js/bootstrap.min.js"></script> </body> </html>
|