• 06-10-2020, 10:24:40
    #1
    {"status":"error","details":["You must use Basic Auth for request."]} Bu hata Nedir bilgisi olan birisi yardımcı olabilirmi.


  • 06-10-2020, 10:28:41
    #2
    O kadar anlamam ama profil bilgilerinin dolu olup olmadığını kontrol et. (Adres, telefon gibi)
  • 06-10-2020, 12:14:05
    #3
    Guzzle 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..
  • 06-10-2020, 12:15:01
    #4
    Merhaba,
    08503052365 whatsapp üzerinden yazabilirseniz yardımcı olabilirim.
  • 03-01-2023, 14:37:09
    #5
    DestekHostingVMH adlı üyeden alıntı: mesajı görüntüle
    Guzzle 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..

    Hocam bu dedikleriniz nerden değişiyor nasıl yapılıyor