📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
takiaksesuar.demodesign.com.tr
📝
paytr-bildirim.php
← Geri Dön
<?php include 'admin/site-ayarlari.php'; if($_POST){ $post = $_POST; $query = $db->prepare("SELECT * FROM siparis WHERE siparis_key=:siparis_key LIMIT 1"); $gel = $query->execute(array(":siparis_key"=>$post['merchant_oid'])); $gel = $query->fetch(PDO::FETCH_ASSOC); if($gel){ $paytr = $db->query("SELECT * FROM odeme_ayar WHERE dil = '{$gel['dil']}' LIMIT 1")->fetch(PDO::FETCH_ASSOC); $merchant_id = $paytr['paytr_merchant_id']; $merchant_key = $paytr['paytr_merchant_key']; $merchant_salt = $paytr['paytr_merchant_salt']; $hash = base64_encode( hash_hmac('sha256', $post['merchant_oid'].$merchant_salt.$post['status'].$post['total_amount'], $merchant_key, true) ); if( $hash != $post['hash'] ) die('PAYTR notification failed: bad hash'); if( $post['status'] == 'success' ) { $islem = $db->prepare("UPDATE siparis SET kredi_karti_odeme_durumu = ? WHERE id = ? LIMIT 1"); $islem = $islem->execute(array(1,$gel['id'])); echo "OK"; } else { echo "error"; } } exit; } ?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula