Merhaba arkadaşlar birine kendi siteme shopier entegresi için yazdım yapabileceğini söyledi bana bu kodları verdi kur diye kodlar çalışmıyor görebildiğimiz bir hata varmı?
?php
// Shopier API bilgileri
$api_key = "SENIN_API_KEY";
$api_secret = "SENIN_API_SECRET";
// Sipariş bilgileri
$order_id = rand(100000, 999999);
$product_name = "Premium Üyelik";
$product_price = "49,99";
$buyer_name = "Ahmet";
$buyer_surname = "Demir";
$eposta = "ahmet@example.com";
// İmzalama işlemi (güvenlik için)
$signature_data = $order_id . $api_anahtarı . $product_price . $buyer_name . $buyer_soyadı;
$imza = hash_hmac('SHA256', $signature_data, $api_secret);
// Otomatik form oluşturma ve gönderme
echo '
<form action="https://www.shopier.com/ShowProduct/api_pay4.php" method="post" id="shopierForm">
<input type="hidden" name="API_key" value="'.$api_key.'">
<input type="hidden" name="website_index" value="1">
<input type="hidden" name="product_name" value="'.$product_name.'">
<input type="hidden" name="product_type" value="physical">
<input type="hidden" name="buyer_name" value="'.$buyer_name.'">
<input type="hidden" name="buyer_surname" value="'.$buyer_surname.'">
<input type="hidden" name="email" value="'.$email.'">
<input type="hidden" name="order_id" değer="'.$sipariş_kimliği.'">
<input türü="gizli" adı="toplam_sipariş_değeri" değer="'.$ürün_fiyatı.'">
<input türü="gizli" adı="imza" değer="'.$imza.'">
</form>
<script>
document.getElementById("shopierForm").submit();
</script>
';
?>