Agentic Commerce Protocol integration for WooCommerce stores
Enable AI-powered commerce through standardized API endpoints and product feeds
Documentation β’ Shora Dashboard β’ API Keys β’ Support
This plugin implements the Agentic Commerce Protocol (ACP) for WooCommerce, providing standardized API endpoints that enable AI agents to discover, browse, and purchase products from your store. The implementation follows the official ACP specification maintained by OpenAI and Stripe.
ACP Compliance: This plugin implements the official Agentic Commerce Protocol specification with full OpenAPI compliance and JSON Schema validation.
Requires Shora Account: To use this plugin, you need a Shora account and API keys from app.shora.cloud.
- REST API Endpoints: Complete ACP-compatible checkout session management
- Product Feed: Standardized product catalog at
/acp/feed - Webhook Support: Real-time order event notifications
- Security: Bearer token authentication with idempotency support
- Cart Integration: Native WooCommerce cart management
- Order Processing: Standard WooCommerce order creation
- Product Sync: Automatic product catalog synchronization
- Payment Processing: Integrated payment gateway support
- HMAC Signatures: Secure webhook verification
- Idempotency: Redis/WP Transient support for duplicate prevention
- Header Validation: Comprehensive request validation
- Error Handling: Professional error logging and recovery
- Event Sourcing: Complete audit trail with version history
- Real-time Events: Instant webhook notifications via WordPress hooks
- Production Monitoring: Built-in logging and performance tracking
- WordPress 5.8 or higher
- WooCommerce 8.0 or higher
- PHP 8.0 or higher
- MySQL 5.7 or higher
- Shora Account (required) - Sign up at app.shora.cloud
-
Get Shora API Keys
- Sign up at app.shora.cloud
- Navigate to API Keys
- Generate your API key and webhook secret
-
Install the Plugin
git clone https://github.com/shoraco/-ACP-Agentic-Commerce-Protocol-for-Woocommerce.git
- Upload to
/wp-content/plugins/ - Activate in WordPress admin
- Ensure WooCommerce is installed and active
- Upload to
-
Configure Plugin
- Go to WooCommerce β Settings β ACP
- Enter your Shora API key from app.shora.cloud/keys
- Configure webhook settings
- Test the connection
-
Create a checkout session
curl -X POST https://yourstore.com/wp-json/acp/v1/checkout_sessions \ -H "Authorization: Bearer YOUR_SHORA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: test-123" \ -d '{ "items": [ {"sku": "product-123", "quantity": 1} ] }'
-
Access product feed
curl https://yourstore.com/acp/feed
-
Check webhook events
- Place a test order in WooCommerce
- Verify webhook events are sent to Shora dashboard
- Monitor events at app.shora.cloud/webhooks
This plugin implements the official ACP Checkout API specification:
| Method | Endpoint | Description | ACP Spec |
|---|---|---|---|
POST |
/wp-json/acp/v1/checkout_sessions |
Create checkout session | β Compliant |
GET |
/wp-json/acp/v1/checkout_sessions/{id} |
Get session details | β Compliant |
PUT |
/wp-json/acp/v1/checkout_sessions/{id} |
Update session | β Compliant |
POST |
/wp-json/acp/v1/checkout_sessions/{id}/complete |
Complete payment | β Compliant |
POST |
/wp-json/acp/v1/checkout_sessions/{id}/cancel |
Cancel session | β Compliant |
| Method | Endpoint | Description | ACP Spec |
|---|---|---|---|
GET |
/acp/feed |
Get product catalog (JSON) | β Compliant |
- OpenAPI 3.0: Full compliance with ACP OpenAPI spec
- JSON Schema: Validates against ACP JSON schemas
- RFC Compliance: Follows ACP RFC specifications
- Examples: Compatible with ACP examples
# API Configuration
ACP_API_KEY=your_api_key_here
ACP_WEBHOOK_SECRET=your_webhook_secret_here
ACP_SANDBOX_MODE=true
# Redis Configuration (Optional)
ACP_REDIS_ENABLED=false
ACP_REDIS_HOST=localhost
ACP_REDIS_PORT=6379
ACP_REDIS_PASSWORD=
ACP_REDIS_DATABASE=0The plugin stores configuration in WordPress options:
acp_api_key: API authentication keyacp_webhook_secret: Webhook signature secretacp_sandbox_mode: Enable/disable sandbox modeacp_enable_feed: Enable/disable product feedacp_enable_webhooks: Enable/disable webhook eventsacp_webhook_url: Target webhook URL
The plugin sends webhook events for order status changes:
{
"webhook_id": "webhook_abc123",
"event_type": "order.status_changed",
"order_id": 12345,
"old_status": "pending",
"new_status": "processing",
"amount": "100.00",
"currency": "TRY",
"customer": {
"id": 1,
"email": "customer@example.com",
"name": "John Doe"
},
"items": [...],
"metadata": {...}
}- API Keys: Manage your API keys at app.shora.cloud/keys
- Webhooks: Configure webhook endpoints at app.shora.cloud/webhooks
- Analytics: View transaction insights and reports
- Settings: Configure your store settings and preferences
- Payment Processing: Multi-provider payment gateway integration
- Real-time Monitoring: Live transaction monitoring and alerts
- Enterprise Support: Priority support and SLA
- Custom Integrations: Tailored solutions for specific requirements
- Sign up at app.shora.cloud
- Generate API keys from your dashboard
- Configure webhooks for real-time events
- Monitor transactions and analytics
Need Help? Contact Support | Documentation
Enable your WooCommerce store to participate in the AI revolution. Let ChatGPT and AI agents discover, browse, and purchase from your store through natural language interactions.
- Bearer Token Authentication - Secure API access
- HMAC Signature Validation - Tamper-proof webhooks
- Idempotency Protection - Prevent duplicate transactions
- Header Validation - Comprehensive request security
- Event Sourcing - Complete audit trail
- Transaction Monitoring - Live order tracking
- Performance Metrics - API response times and success rates
- Error Tracking - Comprehensive logging and debugging
- Webhook Analytics - Delivery success and failure rates
- Professional Admin Interface - Easy configuration and monitoring
- Comprehensive Documentation - Complete API reference
- Testing Tools - Built-in connection testing
- Log Management - View, download, and clear logs
- Cron Jobs - Automated maintenance and cleanup
- WordPress Integration - Native WooCommerce compatibility
- Theme Compatibility - Works with all modern WordPress themes
- Performance Optimized - Efficient database queries and caching
- Scalable Architecture - Handles high-volume transactions
- Error Recovery - Automatic retry mechanisms
- Free Plugin - No licensing fees
- Shora API Integration - Pay only for what you use
- Efficient Resource Usage - Optimized for WordPress environment
- No Vendor Lock-in - Open source MIT license
| Feature | ACP for WooCommerce | Serverless ACP |
|---|---|---|
| Deployment | WordPress Plugin | AWS Lambda + DynamoDB |
| Setup Time | 5 minutes | 30+ minutes |
| Maintenance | WordPress Admin | AWS Console |
| Cost | Free + Shora API | AWS Infrastructure |
| WordPress Integration | Native | External API |
| Theme Compatibility | All WordPress Themes | N/A |
| Admin Interface | Built-in | Custom Development |
| Logging | WordPress Logs | CloudWatch |
| Updates | WordPress Updates | Manual Deployment |
β Instant Setup
- No AWS knowledge required
- Familiar WordPress interface
- One-click activation
β Native Integration
- Seamless WooCommerce integration
- No external dependencies
- WordPress-native security
β Cost Effective
- No infrastructure costs
- Pay only for Shora API usage
- No vendor lock-in
β Developer Friendly
- WordPress development standards
- Familiar PHP codebase
- Extensive documentation
β Production Ready
- Battle-tested WordPress platform
- Automatic updates and security
- Professional support
-
Clone the repository
git clone https://github.com/shora-co/woocommerce-acp-integration.git cd woocommerce-acp-integration -
Set up WordPress environment
# Using Docker docker-compose up -d # Or using local WordPress wp core download wp plugin install woocommerce --activate
-
Run tests
phpunit tests/
woocommerce-acp-integration/
βββ woocommerce-acp.php # Main plugin file
βββ includes/
β βββ class-acp-api.php # REST API endpoints
β βββ class-acp-auth.php # Authentication & security
β βββ class-acp-feed-generator.php # Product feed
β βββ class-acp-webhook.php # Webhook handler
β βββ class-acp-model.php # Data models
βββ tests/ # Unit tests
βββ README.md # Documentation
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: docs.shora.co
- Community: Discord
- Issues: GitHub Issues
- Email: support@shora.co
- Initial release
- ACP checkout session management
- Product feed generation
- Webhook event handling
- Security and authentication
- WooCommerce integration
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: docs.shora.co
- Dashboard: app.shora.cloud
- API Keys: app.shora.cloud/keys
- Issues: GitHub Issues
- Contact: support@shora.co
ACP for WooCommerce - Professional implementation of the Agentic Commerce Protocol for WooCommerce stores.
Built by Shora - Commerce infrastructure for modern applications.
Requires Shora Account: Sign up at app.shora.cloud to get started.
Professional WordPress plugin implementing the Agentic Commerce Protocol (ACP) for WooCommerce stores. This plugin provides a complete implementation of the official ACP specification maintained by OpenAI and Stripe.
ACP Specification Compliance:
- Official ACP Implementation - Full compliance with agentic-commerce-protocol/agentic-commerce-protocol
- OpenAPI 3.0 - Implements ACP OpenAPI specification
- JSON Schema - Validates against ACP JSON schemas
- RFC Compliance - Follows ACP RFC specifications
Key Features:
- WordPress Integration - Native WooCommerce integration with admin interface
- ACP Compliance - Full OpenAI and Stripe ACP specification implementation
- Security First - Bearer token authentication, HMAC signatures, idempotency
- Real-time Events - Webhook notifications for order lifecycle events
- Production Ready - Comprehensive logging, error handling, and monitoring
- Developer Friendly - Professional admin interface with configuration options
Perfect for:
- E-commerce stores wanting AI agent integration
- Developers building AI-powered commerce solutions
- Businesses looking to enable ChatGPT and AI agent shopping
- WooCommerce stores seeking modern API capabilities
Resources:
License: MIT License - View License