Merhaba arkadaşlar, shopier online ödeme entegre ediyorum ödeme yapılıyor sorun yok ama bildirim bölümünde veriler boş dönüyor. Bildirim onay var sayfaya geldiğinde "eksik veri" hatası alıyorum.
Test için verdikleri kodda hiç değişiklik yapmadım ama aynı sorun var.
$key='key'; //Shopier panelindeki bildirim şifresi
$username='username'; //Shopier panelindeki bildirim kullanıcı adı
//Gelmesi gereken veriler kontrol edilir
if (!( (isset($_POST['res'])) && (isset($_POST['hash']))))
{
echo "missing parameter";
die();
}
//Ozet kontrolü yapılır
$hash=hash_hmac('sha256',$_POST['res'].$username,$key,false);
if (strcmp($hash,$_POST['hash'])!=0)
{
die();
}
//Veriler alınır
$json_result=base64_decode($_POST['res']);
$array_result=json_decode($json_result,true);
$email=$array_result['email'];
$orderid=$array_result['orderid'];
$currency=$array_result['currency']; // 0..TL,1..USD, 2...EUR
$price=$array_result['price'];
$buyername=$array_result['buyername'];
$buyersurname=$array_result['buyersurname'];
$productcount=$array_result['productcount'];
$productid=$array_result['productid'];
$customernote=$array_result['customernote']; //müsterinizin size yazmıs oldugu not alanı
$istest=$array_result['istest']; //0..canlı, 1..test
echo "success";Bu sorunla daha önce karşılaşan oldu mu?