When to use UCP Pay
Use UCP Pay when the merchant supports UCP and the checkout needs structured product, fulfillment, order, or digital-delivery state. Use Browser Pay when the Agent needs to operate a regular merchant web page.Payment flow
- Discover a product with Catalog tools, or parse an exact product URL.
- Confirm the SKU, options, quantity, price, currency, and fulfillment details.
- Call
create_checkoutand continue according to itsnext_action. - Use
update_checkoutwhen the user changes supported checkout details. - Call
complete_checkoutonce with the current confirmation identifiers. - Read the UCP order and wait for digital delivery when needed.
Sequence diagram
UCP Checkout uses its own Operation and order lifecycle. Do not call Browser Pay’sconfirm_result for a UCP payment.
Code examples
The examples below are grouped by integration method. MCP usestools/call to call Clink tools; RESTful API uses the platform integration HTTP endpoints. Both methods must use the latest operationId, actionId, and revision from the preceding response rather than reusing expired confirmation identifiers.
MCP
Search products
Create checkout
Update checkout and complete payment
Whennext_action asks for shipping information, update the checkout using the current revision:
Read order and digital delivery
RESTful API
The endpoint paths and fields for the RESTful API depend on the UCP service enabled for your platform. The examples below show the corresponding HTTP calls; replace{UCP_API_BASE_URL}, {USER_ACCESS_TOKEN}, and placeholder IDs from responses with actual values.