Skip to content

Conversation

@stracker-phil
Copy link
Collaborator

@stracker-phil stracker-phil commented Nov 20, 2025

Description

Introduces a new "PayPal Agentic" tab on WooCommerce → Status page for monitoring and debugging agentic commerce integration.

Registration Management:

  • View eligibility status and JWK auth service implementation
  • Manual register/unregister controls for testing
  • Display merchant ID (when registered)

Session Monitoring:

  • Dashboard statistics (total sessions, items, average age)
  • List all active agentic cart sessions
  • Inspect individual sessions with full cart details
  • View session metadata, totals, items, and shipping addresses

Technical Structure

All changes are inside the Inspector folder, only requiring a single method call in the main module file:

$inspector = $container->get( 'agentic.inspector.page' );
assert( $inspector instanceof InspectionStatusPage );
$inspector->init();
Inspector/
├── InspectionFormHandler.php      # Handles registration toggles
├── InspectionStatusPage.php       # Coordinates tab registration
├── InspectionSessionData.php      # Session data access layer
└── Page/
    ├── RegistrationStatusSection.php  # Registration UI
    ├── CartSessionSection.php         # Session inspection UI
    └── StatusTableRenderer.php        # Shared rendering helpers

Minor Changes

  • Updated sandbox URL: d-sandbox.joinhoney.comd-staging.joinhoney.com
  • Added TODO for cart validation session storage behavior

# Conflicts:
#	tests/PHPUnit/AgenticCommerce/Merchant/MerchantMetadataProviderTest.php
#	tests/PHPUnit/AgenticCommerce/Registration/RegistrationServiceTest.php
@github-actions
Copy link

github-actions bot commented Nov 21, 2025

Test using WordPress Playground

The changes in this pull request can be previewed and tested using a WordPress Playground instance.
WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

🔗 Test this pull request with WordPress Playground

What's included:

  • ✅ WordPress (latest)
  • ✅ WooCommerce (latest)
  • ✅ PayPal Payments plugin v3.3.0-pr3876-19575186521-gafd9c4e (built from this PR)

Login credentials:

  • Username: admin
  • Password: password

Plugin Details:

  • Version: 3.3.0-pr3876-19575186521-gafd9c4e
  • Commit: afd9c4e
  • Artifact: woocommerce-paypal-payments-3.3.0-pr3876-19575186521-gafd9c4e

💡 The demo environment resets each time you refresh. Perfect for testing!

🔄 This link updates automatically with each new commit to the PR.

⚠️ This URL is valid for 30 days from when this comment was last updated.


🤖 Auto-generated for commit afd9c4e • Last updated: 2025-11-21T15:35:06.528Z

@stracker-phil stracker-phil marked this pull request as ready for review November 25, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants