Galiba uykusuzluktanmış sorunu çözdüm, yorum yazmaya kalmadan araştırmaya başlamış olan hocalarıma çok teşekkür ederim.


Olay benim biraz farklı kaynak bulmamdan dolayıymış.

https://github.com/emreakdas/shopier...shopierAPI.php

bu kaynaği incelediğimde aydınlandım resmen

kısaca özetlemek istiyorum ben gibi olanlar için kolay akıllarında canlansın diye

Shopier index sayfasını şu şekilde düzenledim
<?php
include 'config.php';
include 'shopierAPI22.php';

$fname = $_POST['fname'];
$lname = $_POST['lname'];
$mail = $_POST['mail'];
$tel = $_POST['tel'];
$amount = $_POST['amount-select'];
$randdeger = rand(111111, 999999);




    if (move_uploaded_file($photo['tmp_name'], $uploadDirectory . $newFileName)) {
        // File uploaded successfully, proceed with inserting the data into the database
        $queryKayit = mysqli_query($connect, "INSERT INTO photos (name, surname, phone, mail, photo, piece, amount, date, status, GUID)
                                            VALUES ('$fname', '$lname', '$tel', '$mail', '$filePath', '', '$amount', NOW(), 0, '$randdeger')");

        if ($queryKayit) {
            $shopier = new Shopier('SHOIPERUSERID', 'SHOPIERKEY');
            $shopier->setBuyer([
                'id' => $randdeger,
                'paket' => 'Vesikalık',
                'first_name' => $fname,
                'last_name' => $lname,
                'email' => $mail,
                'phone' => $tel
            ]);
            $shopier->setOrderBilling([
                'billing_address' => 'Kütahya / Merkez',
                'billing_city' => 'Kütahya',
                'billing_country' => 'Türkiye',
                'billing_postcode' => '43000',
            ]);
            $shopier->setOrderShipping([
                'shipping_address' => 'Kütahya / Merkez',
                'shipping_city' => 'Kütahya',
                'shipping_country' => 'Türkiye',
                'shipping_postcode' => '43000',
            ]);

            $response = $shopier->run('544546545', $amount, 'https://siteadi.com/shopierNotify22.php');

            if ($response === false) {
                die('Shopier yönlendirme hatası: ' . $shopier->error);
            } else {
                die($response);
            }
        } else {
            die('Veritabanına kayıt işlemi başarısız oldu: ' . mysqli_error($connect));
        }
    }

?>
GUID diye kolon ekledim ve rand seçilen değeri apıye gönderip sipariş ıdyi oluşturdum response olarak da bana sipariş idyi döndürdüğü için oradan aynı kolonu yakalayıp response dosyamda status u update ettim.
Umarım yardımcı olmuşumdur.