<?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