$_SESSION['eklenecektutar']=$amount;
$orderidmiz="siparis-".md5(uniqid(mt_rand(), true));
$_SESSION['orderidmiz']=$orderidmiz;
$shopiersiparisac = $conn->prepare("INSERT INTO payments SET client_id=:c_id, payment_amount=:amount, payment_privatecode=:code, payment_method=:method, payment_mode=:mode, payment_create_date=: date, payment_ip=:ip ");
$shopiersiparisac-> execute(array("c_id"=>$user->id,"amount"=>$amount,"code"=>$orderidmiz,"method"=>"6","mode"=>"Otomatik","date"=>date("Y.m.d H:i: s"),"ip"=>IPAdress() ));
die($shopier->run($orderidmiz, $amount_fee, "https://plusmedyam.com/payment/shopier"));