PUNNDI.COM — AIRLINE LOGOS + TRAVELPAYOUTS AFFILIATE LINKS

Edit config/travelpayouts.php on your server and set:
1. api_token: your Travelpayouts API token.
2. partner_project_id: the Project ID / trs for your Aviasales-connected project.
3. partner_marker: your Travelpayouts Partner ID (marker).

The PHP endpoint uses Aviasales Flight Data API v3 prices_for_dates, returns airline IATA codes and ticket search paths, loads carrier logos from pics.avs.io, and creates tracked partner links through Travelpayouts Partner Links API. The Book this flight button is enabled only when a tracked partner URL is successfully created.

Host on PHP 8+ with cURL enabled and storage/flight-cache writable. Keep token, project ID and marker private. Do not expose them in JavaScript or chat.

Fares are cached indicative prices, not guaranteed live inventory. Confirm final price and availability with the booking provider. This website does not issue tickets or take payments.


RESULT DISPLAY UPDATE
- The Aviasales Flight Data request now asks for up to 100 fare records (provider page 1).
- Results are shown 10 per page with client-side pagination.
- Airline, stops, maximum INR fare, and sorting filters are included.
- This does NOT mean every scheduled flight or live seat inventory is returned. The provider response may contain fewer than 100 records and remains indicative/cached.
- The 100-record cap is a single provider page; further provider pages are not automatically fetched.
