wp-update-server-plugin/inc
David Stone e8193bf3ea
feat(paypal): add comprehensive logging to PayPal Connect proxy (#29)
* chore: add wp-cli.yml and local dev environment docs

Point wp-cli at shared WordPress 7.0-RC2 multisite dev install at
../wordpress (wordpress.local:8080). Documents reset workflow and
WP-CLI usage in AGENTS.md.

* feat(paypal): add comprehensive logging to PayPal Connect proxy

Previously only the deauthorize endpoint logged anything. All other
endpoints (oauth/init, oauth/verify, partner-token) were silent, making
it impossible to debug failed PayPal API calls in production.

This commit adds:
- Protected log() helper with consistent '[PayPal Connect]' prefix and
  JSON-encoded context data
- get_debug_id() helper to extract the PayPal-Debug-Id response header
  from every PayPal API call (the key value PayPal support and the
  integration review team ask for by name)
- Request-received and outcome log entries on all handlers
- Error logging with PayPal-Debug-Id on all failed PayPal API calls:
  - /v1/oauth2/token (partner access token)
  - /v2/customer/partner-referrals
  - /v1/customer/partners/{partner_id}/merchant-integrations/{merchant_id}
- Success logging with debug ID and key response fields

Sensitive values (access tokens, client secrets) are never logged.

Context: the PayPal integration review requires debug IDs from test
API calls. Without server-side logging, the only way to get them was
to instrument the plugin side, which misses proxy-side failures entirely.
2026-04-08 14:50:54 -06:00
..
class-changelog-manager.php update 2026-02-02 09:17:58 -07:00
class-composer-repository.php Add beta/pre-release version support 2026-02-05 14:02:29 -07:00
class-composer-token-table.php Store full token value and auto-generate on first visit 2026-03-02 15:08:29 -07:00
class-composer-token.php Store full token value and auto-generate on first visit 2026-03-02 15:08:29 -07:00
class-downloads-page.php Store full token value and auto-generate on first visit 2026-03-02 15:08:29 -07:00
class-new-release-email.php add composer repo 2026-01-22 22:54:12 -07:00
class-passive-install-tracker.php feat: add passive install tracking from update check requests (#9) 2026-03-27 13:14:25 -06:00
class-passive-installs-table.php feat: add passive install tracking from update check requests (#9) 2026-03-27 13:14:25 -06:00
class-paypal-connect.php feat(paypal): add comprehensive logging to PayPal Connect proxy (#29) 2026-04-08 14:50:54 -06:00
class-paypal-merchants-table.php feat: add PayPal Connect transaction analytics (#7) (#13) 2026-03-27 13:54:29 -06:00
class-paypal-transaction-sync.php feat: add PayPal Connect transaction analytics (#7) (#13) 2026-03-27 13:54:29 -06:00
class-product-icon.php Add details to API 2025-08-13 16:29:55 -06:00
class-product-versions.php Fix ensure_download_permissions to scope by order_id 2026-03-03 19:24:49 -07:00
class-release-notifier.php Add beta/pre-release version support 2026-02-05 14:02:29 -07:00
class-request-endpoint.php feat: add passive install tracking from update check requests (#9) 2026-03-27 13:14:25 -06:00
class-site-discovery-admin.php feat: add site discovery to scrape subsites and network health from discovered domains (#10) 2026-03-27 13:16:53 -06:00
class-site-discovery-scraper.php feat: add site discovery to scrape subsites and network health from discovered domains (#10) 2026-03-27 13:16:53 -06:00
class-site-discovery-table.php feat: add site discovery to scrape subsites and network health from discovered domains (#10) 2026-03-27 13:16:53 -06:00
class-store-api.php fix: prevent fatal error when WooCommerce is not active 2026-03-31 10:32:42 -06:00
class-stripe-analytics-admin.php feat: add Stripe Connect transaction analytics and revenue dashboard (#12) 2026-03-27 13:57:37 -06:00
class-stripe-analytics-table.php feat: add Stripe Connect transaction analytics and revenue dashboard (#12) 2026-03-27 13:57:37 -06:00
class-stripe-analytics.php feat: add Stripe Connect transaction analytics and revenue dashboard (#12) 2026-03-27 13:57:37 -06:00
class-telemetry-admin.php feat: dashboard overhaul with Chart.js charts, KPI cards, and unified analytics view (#15) 2026-03-27 20:00:33 -06:00
class-telemetry-receiver.php feat: enhanced telemetry with exact counts, subsite data, and revenue signals (#11) 2026-03-27 14:00:27 -06:00
class-telemetry-table.php feat: enhanced telemetry with exact counts, subsite data, and revenue signals (#11) 2026-03-27 14:00:27 -06:00
class-update-server.php Fix download URLs for newly uploaded product versions 2026-03-02 16:01:46 -07:00