PayTR entegrasyonunda iframe.php den sonra ödeme başarılıysa odeme_basarili.php sayfasına yönlendiriyorum. odeme_basarili.php sayfasında oluşan siparişin durumunu güncellemek için kodumda hangi değişikliği yapmam gerekiyor şuan bad hash hatası alıyorum ancak bildirim.php deki bilgiler doğru. Kodlarım aşağıda yardımcı olacaklara şimdiden teşekkürler.
odeme_basarili.php
<?php
include("config.php");
include("bildirim.php");
$merchant_oid = $post["merchant_oid"];
$sql = "UPDATE siparisler SET siparisDurum = 1 WHERE siparisno = $merchant_oid";
if ($sql > 0) {
echo "";
} else {
echo "";
}
?>
<title>Ödeme Başarılı!</title>
<div class="success-page" style="margin-top:-15%">
<img src="http://share.ashiknesin.com/green-checkmark.png" class="center" alt="" />
<h2>Ödeme Başarılı !</h2>
<p>En kısa sürede işleminiz gerçekleştirilecektir.</p>
<a href="/" class="btn-view-orders">Anasayfaya Dön</a>
</div>
</div>
<style>.success-page{
max-width:300px;
display:block;
margin: 0 auto;
text-align: center;
position: relative;
top: 50%;
transform: perspective(1px) translateY(50%)
}
.success-page img{
max-width:62px;
display: block;
margin: 0 auto;
}
.btn-view-orders{
display: block;
border:1px solid #47c7c5;
width:180px;
margin: 0 auto;
margin-top: 45px;
padding: 10px;
color:#fff;
background-color:#47c7c5;
text-decoration: none;
margin-bottom: 20px;
border-radius: 15px;
}
h2{
color:#47c7c5;
margin-top: 25px;
}
a{
text-decoration: none;
}</style>