'13242', 'apiKey' => '619ce917-0957-4', 'secretKey' => '4eeb144a-6f41-4556-8' ); $weepayArray['Customer'] = array( 'customerId' => rand(), 'customerName' => $_SESSION['siparis_isim'], 'customerSurname' => $_SESSION['siparis_soyisim'], 'email' => 'info@incefikir.com.tr', 'gsmNumber' => $_SESSION['siparis_tel'], 'identityNumber' => '11111111111', 'city' => 'İstanbul', 'country' => 'Türkiye' ); $weepayArray['Data'] = array( 'auth' => $weepayArray['Auth'], 'orderId' => rand(), 'callBackUrl' => "https://www.incefikir.com.tr/yonlendir.php", 'paidPrice' => '1', 'Locale' => 'tr', 'customerId' => rand(), 'ipAddress' => $_SERVER['REMOTE_ADDR'], 'email' => 'asd@asd.com', 'identityNumber' => '15522222222', 'country' => 'Türkiye', 'city' => 'İstanbul', 'CustomerEmail' => $_SESSION['siparis_eposta'], 'OutSourceID' => $_SESSION['siparis_numarasi'], 'Description' => $_SESSION['siparis_numarasi'] ."numaralı siparisteki ürünler".$_SESSION['toplam_odenecek_tutar'], 'Currency' => 'TL', 'BillingAddress' => 'asdasdasd', 'contactName' => 'test', 'address' => 'asdasdasd', 'Channel' => 'Module' ); $weepayArray['BillingAddress'] = array( 'contactName' => 'test', 'address' => 'test', 'city' => 'test', 'country' => 'test' ); $weepayArray['Products'] = array( 'productId' => rand(), 'name' => 'asd asddd', 'productPrice' => '1 TL', 'itemType' => 'VIRTUAL' ); $endPointUrl = 'https://api.weepay.co/Payment/PaymentCreate'; $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); ?>