Installation
The official Loyalty.lt PHP SDK for Shop API integration.Composer
Requirements
- PHP 8.1 or higher
- ext-json
- Guzzle HTTP client (installed automatically)
Quick Start
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
apiKey | string | required | API Key |
apiSecret | string | required | API Secret |
environment | string | production | production or staging |
locale | string | lt | API locale (lt, en) |
timeout | int | 30 | Request timeout in seconds |
retries | int | 3 | Number of retry attempts |
debug | bool | false | Enable debug logging |
Getting API Credentials
1
Access Partners Portal
Go to partners.loyalty.lt and log in.
2
Navigate to API Credentials
Click API Credentials in the sidebar.
3
Generate Credentials
Click Generate New Credentials.
4
Copy Credentials
Copy API Key (
lty_...) and API Secret. Store securely!