
PayTR HAVALE/EFT HATASI ALIYORUM
4
●184
- 06-10-2020, 12:14:05Guzzle için;
$auth = base64_encode("username:password"); $response = $client->get('http://paytr/endpoint', [ 'Authorization' => ['Basic ' . $auth] ]);Curl İçin;
$auth = base64_encode("username:password"); $headers = [ 'Content-Type: application/json', 'Authorization: Basic '. $auth ]; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);Ya da;
curl_setopt($ch, CURLOPT_USERPWD, "username:password");
PayTR ye istek gönderirken bu yukarıda verdiğim örneklerden size hangisi uyuyorsa onu kullanarak authenticate olmanız gerekiyor. Kolaylıklar dilerim.. - 03-01-2023, 14:37:09DestekHostingVMH adlı üyeden alıntı: mesajı görüntüle
Hocam bu dedikleriniz nerden değişiyor nasıl yapılıyor