Loki_AgenticCommerceUcp
What this module does
A thin Universal Commerce Protocol (UCP) binding for Loki_AgenticCommerce: a business profile
under /.well-known/ucp, plus the UCP checkout REST binding. All checkout logic lives in Loki_AgenticCommerce.
Endpoints
| Method | Path | Auth |
|---|---|---|
| GET | /.well-known/ucp | none |
| POST | /ucp/checkout-sessions | bearer |
| GET | /ucp/checkout-sessions/{id} | bearer |
| PUT | /ucp/checkout-sessions/{id} | bearer |
| POST | /ucp/checkout-sessions/{id}/complete | bearer |
| POST | /ucp/checkout-sessions/{id}/cancel | bearer |
When a Loki Checkout extension (through AgenticCheckoutCapabilityInterface) requires a human, the session status
becomes requires_escalation with a signed continue_url.
Extending the profile
- Add services or capabilities via the
servicesandcapabilitiesarguments ofLoki\AgenticCommerceUcp\Profile\ProfileBuilder. - Modify the profile via the event
loki_agentic_commerce_ucp_profile_build_after(transportwith keyprofile). - Payment handlers registered in
Loki_AgenticCommerceare advertised automatically.
Configuration
Stores > Configuration > Loki > Loki Agentic Commerce > Universal Commerce Protocol (UCP)
Installation
Install this package via composer:
composer require loki/magento2-agentic-commerce-ucp
Next, enable this module:
bin/magento module:enable Loki_AgenticCommerceUcp
Current status
@dev
to the composer command.
Support
For getting support, create an Issue under the following project URL:
https://gitlab.yireo.com/loki-extensions/Loki_AgenticCommerceUcp.git
Composer details
Loki_AgenticCommerceUcploki/magento2-agentic-commerce-ucp
php: >=8.2 <8.6
loki/magento2-agentic-commerce: *
magento/framework: ^103.0
magento/module-quote: ^101.2
magento/module-store: ^101.1
Releases
Changelog
Added
- Initial implementation