# World ID verified checkout for agents > Read product information, request World ID authorization, and prepare a Shopify checkout for the buyer. This does not place an order or authorize payment. MCP server: https://agentpass.shopping/mcp Transport: Streamable HTTP (POST). Connect using an MCP-capable client. Reading this guide does not connect a client automatically. Protected resource metadata: https://agentpass.shopping/.well-known/oauth-protected-resource/mcp OAuth authorization server metadata: https://agentpass.shopping/.well-known/oauth-authorization-server ## Product context Use this storefront context. Confirm the buyer's intended selection and country. ```json { "merchant": "xv0r1u-he.myshopify.com", "product_id": "8571008286881", "country": "US" } ``` This guide does not assert that the product is available or supports agent checkout. The live MCP response is authoritative. ## Use tools and return links Use get_gated_product for discovery and the standard UCP checkout tools on this same MCP connection. World ID authorization is required for checkout. Do not install a CLI when the needed tools are loaded. Shopify's native UCP endpoint is a separate provider; do not rebuild an authorized cart there. Reuse a qualifying connected World ID session. If no authorized connection exists, use the host's native OAuth flow and present any host-provided sign-in link. Do not construct authorization URLs or inspect browser cookies. Present exact server-returned verification and checkout URLs as clickable links. Do not open them with browser tools or automate verification or payment unless the buyer explicitly requests browser assistance. For other merchants, use their advertised UCP endpoint, schemas and authentication requirements. These World ID credentials and adapter endpoints apply only to this integration. Choose a supported route before creating checkout; preserve the original provider and session after acceptance or an ambiguous response. Authentication or buyer review is not a reason to recommend another UCP session, and permissions do not transfer between providers. ## Read before authorization Initialize MCP and call tools/list to discover current tool schemas. No sign-in is required to discover tools or call get_gated_product and find_offer. Call get_gated_product with: ```json { "merchant": "xv0r1u-he.myshopify.com", "product_id": "8571008286881", "country": "US" } ``` Read its current variants, prices, credential requirements, quantity limit and policy_version. Use variant IDs returned by the server; do not invent them. Availability is not personal eligibility. If the product is unavailable or unsupported, explain that and use the storefront flow. Discovery returns ucp_profile_url, ucp_checkout_endpoint and each variant's ucp_item_id. Use those IDs exactly in checkout.line_items[].item.id. They bind the variant to its merchant. A connection supports multiple installed merchants, but a checkout contains variants of one product from one merchant. The buyer does not choose a protocol. ## Connect the buyer's World ID Use the advertised OAuth metadata and Authorization Code flow with PKCE S256. Set resource to https://agentpass.shopping/mcp. Automatic client enrollment is supported: use the advertised registration_endpoint with your client name and exact callback URI. Public clients use token_endpoint_auth_method "none". Copy authorization_parameters.acr_values from get_gated_product into the OAuth authorization request. It selects exactly the product's Orb or Selfie Check credential; do not replace it with a different credential. Request dev.ucp.shopping.checkout:manage. For a combined World ID discount, also request offers:claim. Let the buyer complete World ID verification and consent in their browser. Do not ask for their password, passkey, proof or access token in chat. Agent access lasts 30 days from issuance. A valid, unrevoked connection can prepare and recover checkout links throughout that period without repeating World ID authentication. Reconnect when access expires or the product requires a different credential. Shopify customer sign-in and customer linking are not required for this cart-based flow. Support depends on the merchant's product policy and your client's OAuth capabilities. If your host cannot pass the required authorization parameters when reconnecting, use the product's storefront verification flow; do not retry with a mismatched credential. ## Prepare and recover checkout 1. Read the live tool schemas. Ordinary MCP clients such as Codex omit meta.ucp-agent and use the pinned checkout contract directly; no hosted client profile is needed. UCP platforms may supply their real compatible HTTPS JSON profile for version 2026-08-25. Never invent a profile or use a homepage or the business profile. A service with an explicit profile allowlist requires an allowed profile, as shown by its tool schema. 2. When the buyer requests checkout, call create_checkout with checkout.line_items (item.id from ucp_item_id and quantity), checkout.context.address_country, and a UUID meta.idempotency-key. Save the returned checkout id. No custom merchant or policy argument is needed. 3. On requires_escalation, present the exact continue_url for verification or Shopify review. Verification continues to Shopify automatically. Recover with get_checkout; after a lost create response retry the identical arguments and key. 4. Use update_checkout with the same id, full replacement selection and country, and a new UUID key for an approved change. All items must remain in the same merchant and product. Existing purchase limits still apply. 5. Use cancel_checkout with the same id and a UUID key to abandon an unpaid checkout. Only canceled confirms cancellation; it does not cancel a Shopify order. complete_checkout returns a human handoff and never submits payment. 6. Keep checkout links private. Never rebuild the cart through another provider. Report completed only from server-confirmed order evidence, and distinguish an order from confirmed payment.