Skip to content

kulker/ups-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

📦 UPS SOAP Entegrasyonu ( >PHP 7.4 )

Bu proje, UPS Türkiye SOAP servisi ile entegre çalışarak aşağıdaki iki metodu kullanır:

  • Login_V1 → Oturum açma ve SessionID alma
  • GetLastTransactionByTrackingNumber_V1 → Gönderi takip numarasına göre son işlem bilgilerini alma


⚙️ Kullanım

Login & Takip Sorgusu

use App\Libraries\UpsService;

$ups = new UpsService();

// UPS giriş bilgileri
$customerNumber = "...";
$username       = "...";
$password       = "....";

// Login ol ve SessionID al
$sessionID = $ups->login($customerNumber, $username, $password);

if ($sessionID) {
    // Takip numarası sorgula
    $trackingNumber = "1Z05576E6...";
    $result = $ups->getLastTransaction($sessionID, $trackingNumber);

    print_r($result);
} else {
    echo "Login başarısız!";
}

📤 Dönen Örnek Sonuç

Array
(
    [StatusCode] => 2
    [ProcessDescription1] => DELIVERED
    [ProcessDescription2] => Teslim edildi
    [ProcessDescription_TR] => ALICIYA TESLİM EDİLDİ
)

About

UPS Türkiye için kargo takip örnek kullanımı

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages