ICTWorld Payment Server v0.11 — Client Profile API patch (STAGING)

1) Back up current public/api.php.
2) Replace it with public/api.php from this patch (or manually add action=client_profile before action=status).
3) Do not replace private/config.php or any database tables.
4) Test via SaaS Admin v0.2.0 Settings > Sync Payment Server Client.
5) This endpoint returns only the client id/name/phone/website/status for the API-key-authenticated client. It does not return API keys or payment records.
6) Staging only; verify on a staging copy before production.


Package Sync API (STAGING)
- This patch adds action=package_sync to public/api.php.
- It creates a separate client_packages catalog table on first authenticated package sync; it does not modify existing payment or ERP tables.
- WordPress sends only active packages (up to 200 per run). Retries update by (client_id, local_id), avoiding duplicates.
- Install the matching SaaS Admin v0.2.1 ZIP and this API patch together on staging. Verify schema/backup first.
- This is catalog sync only; it does not activate subscriptions or verify payment.
