diff --git a/docs/playground.md b/docs/playground.md index 983a6ff2..b86cba8b 100644 --- a/docs/playground.md +++ b/docs/playground.md @@ -221,7 +221,7 @@ select, input {

2. Discovery

-

The Platform fetches /.well-known/ucp. The response below is filtered to show the intersection of the Business's capabilities and the Platform's profile.

+

The Platform fetches /.well-known/ucp from the Business.

GET Request
@@ -230,7 +230,7 @@ Host: business.example.com Accept: application/json
-
Response (Filtered)
+
Response

       
@@ -412,8 +412,8 @@ const UcpData = { "sku_mug": { title: "UCP Demo Mug", price: 1999, image_url: "https://example.com/images/mug.jpg" } }, - payment_handlers: { - "com.shopify.shop_pay": [ + business_payment_handlers: { + "dev.shopify.shop_pay": [ { id: "shop_pay", version: "2026-01-11", @@ -463,6 +463,29 @@ const UcpData = { ] }, + platform_payment_handlers: { + "dev.shopify.shop_pay": [ + { + id: "shop_pay", + version: "2026-01-11", + spec: "https://shopify.dev/docs/agents/checkout/shop-pay-handler", + config_schema: "https://shopify.dev/ucp/shop-pay-handler/2026-01-11/config.json", + instrument_schemas: ["https://shopify.dev/ucp/shop-pay-handler/2026-01-11/instrument.json"] + } + ], + "com.google.pay": [ + { + id: "gpay", + version: "2026-01-11", + spec: "https://pay.google.com/gp/p/ucp/2026-01-11/", + config_schema: "https://pay.google.com/gp/p/ucp/2026-01-11/schemas/config.json", + instrument_schemas: [ + "https://pay.google.com/gp/p/ucp/2026-01-11/schemas/card_payment_instrument.json" + ] + } + ] + }, + capabilities: { "dev.ucp.shopping.checkout": [ { @@ -585,7 +608,7 @@ class UcpBackend { ucp: { version: UcpData.version, capabilities: UcpData.capabilities, - payment_handlers: UcpData.payment_handlers + payment_handlers: UcpData.business_payment_handlers } }; } @@ -632,7 +655,7 @@ class UcpBackend { } this.session = { - ucp: { version: UcpData.version, capabilities: activeCaps, payment_handlers: UcpData.payment_handlers }, + ucp: { version: UcpData.version, capabilities: activeCaps, payment_handlers: UcpData.business_payment_handlers }, id: this.genId('chk'), status: messages.length > 0 ? "incomplete" : "ready_for_complete", line_items: lineItems, @@ -857,7 +880,13 @@ class UcpApp { } }); - this.setJson('json-profiles', { ucp: { version: UcpData.version, capabilities, payment_handlers: UcpData.payment_handlers } }); + this.setJson('json-profiles', { + ucp: { + version: UcpData.version, + capabilities, + payment_handlers: UcpData.platform_payment_handlers + } + }); } runDiscovery() {