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>
';
?>
Shopier Entegresi Doğrumu? Anlayan biri bakabilirim.
5
●110
- 20-06-2025, 19:11:25$api_key = "SENIN_API_KEY";
$api_secret = "SENIN_API_SECRET"; hocam bu alanları shopier panelindeki apiler ile doldurdunuzmu? - 20-06-2025, 19:12:57Üyeliği durdurulduEvet doldurdum siteye yüklerken bir hata görünmüyor mu?duranerdem71 adlı üyeden alıntı: mesajı görüntüle
- 20-06-2025, 19:14:04hocam siteniz woocommerce tabanlı ise shopier direk size eklenti sunuyor.Sevvim adlı üyeden alıntı: mesajı görüntüle
- 20-06-2025, 19:16:16Üyeliği durdurulduHayır özel scriptduranerdem71 adlı üyeden alıntı: mesajı görüntüle
- 20-06-2025, 19:56:09<?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"; // Nokta ile yazılmalı
$buyer_name = "Ahmet";
$buyer_surname = "Demir";
$email = "ahmet@example.com";
// İmzalama işlemi
$signature_data = $order_id . $api_key . $product_price . $buyer_name . $buyer_surname;
$signature = hash_hmac('SHA256', $signature_data, $api_secret);
// 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" value="'.$order_id.'">
<input type="hidden" name="total_order_value" value="'.$product_price.'">
<input type="hidden" name="signature" value="'.$signature.'">
</form>
<script>
document.getElementById("shopierForm").submit();
</script>
';
?>
böyle deneyin bi