<body style="margin:0px; padding:0px;">
<?php
echo "<link rel=\"stylesheet\" href=\"//master.v3medya.com/css/watolye.css\" type=\"text/css\" />";
require_once('config.php');
$response = \Hepsipay\Model\ThreeDSecurePayment::retrieve();
//echo "<pre>";
//echo "\nRESPONSE\n\n";
//print_r($response); // Response
//echo "</pre>";
//print_r($response); // Response
$myVar = print_r($response, true);
if (preg_match("/\"Success\":True,/i", $myVar)) {
?>
<div class="alert alert-success fade in" role="alert" style="padding:0px;">
	<h5 style="margin-left:30px;"><span class="fa fa-check"></span> İşlem Başarılı <i class="fa fa-refresh fa-spin"></i> Yönlendiriliyorsunuz</h5>
</div>
<script language="JavaScript">
    //var delay = 2;var targetURL = "http://evdenuzak.com<?php echo $_GET["purl"]?>/sonuc#sonuc"; setTimeout('top.location.replace(targetURL)', (delay * 50));
</script>
<?php } else { ?>
<div class="alert alert-danger fade in" role="alert" style="padding:0px;">
	<h5 style="margin-left:30px;"><span class="fa fa-check"></span> İşlem Başarısız <i class="fa fa-refresh fa-spin"></i> Yönlendiriliyorsunuz</h5>
</div>
<script language="JavaScript">
    //var delay = 2;var targetURL = "http://evdenuzak.com<?php echo $_GET["purl"]?>/kkart";setTimeout('top.location.replace(targetURL)', (delay * 50));
</script>
<?php }?>
</body>