$weepayArray['Data'] = array( 'CallBackUrl' => "https://www.incefikir.com.tr/yonlendir.php", 'Price' => $_SESSION['toplam_odenecek_tutar'], 'Locale' => 'tr', 'IpAddress' => $_SERVER['REMOTE_ADDR'], 'CustomerNameSurname' => $_SESSION['siparis_isim'] . '' . $_SESSION['siparis_soyisim'], 'CustomerPhone' => $_SESSION['siparis_tel'], 'CustomerCountry' => 'Türkiye', 'CustomerCity' => 'İstanbul', 'CustomerEmail' => $_SESSION['siparis_eposta'], 'OutSourceID' => $_SESSION['siparis_numarasi'], 'Description' => $_SESSION['siparis_numarasi'] ."numaralı siparisteki ürünler".$_SESSION['toplam_odenecek_tutar'], 'Currency' => 'TL', 'Channel' => 'Module' ); $endPointUrl = 'https://api.weepay.co/Payment/PaymentCheckoutFormCreate/'; $payload = json_encode($weepayArray); $ch = curl_init($endPointUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Content-Length: ' . strlen($payload)) ); $response = json_decode(curl_exec($ch), true); curl_close($ch);