# Laidian AI — Payments pack (MCP tools) / 來電AI 金流包 > Request a Recur payment link (test mode); a human approves before the link is created. One MCP endpoint, one API key. US$4 per pack per month, includes 1,000 tool calls (trial-period price, final price pending). ## Connect (one URL + one key) - Endpoint (MCP, Streamable HTTP): https://laidian-erp.enscon.ai/mcp - Header: `Authorization: Bearer ` — key format: ld_ followed by 64 hex characters - Get a key: Subscribe once on Laidian AI (Recur); one key works for every pack. Signup link: TBD (key issuing is being set up). - Test key: After a test subscription, POST the claim code you get at activation to https://laidian-erp.enscon.ai/claim. Not available yet: the Recur sandbox product and webhook are still being set up (TBD). Test tenant quick start (test data — use these values, no need to ask the user): - ERP: SKU `TEA` (black tea), warehouse `MAIN`, customer `SHOP`, unit price `50`. Store re-order: `SHOP` / `TEA`, quantity `3`. `production_actual_record` can omit `orderNo` (demo production order MO2026110001). - E-invoice: order `INV-DEMO-01`, item `紅茶`, amount `50`. Payments: order `PAY-DEMO-01`, amount `99`. Neither needs an approved sales order first. - Write tools return a requestId and wait for a human; you cannot approve them yourself. Read the result later with `approval_status`. Claude Code: ``` claude mcp add --transport http laidian-payments https://laidian-erp.enscon.ai/mcp --header "Authorization: Bearer ld_YOUR_KEY" ``` (Write the key literally; Claude Code does not expand environment variables inside remote headers. Check with /mcp.) Claude.ai / Claude Desktop — Settings → Connectors → Add custom connector: URL = the endpoint, Authentication = No sign in, Request headers: `Authorization` = `Bearer ld_YOUR_KEY`. Cursor (`~/.cursor/mcp.json` or `.cursor/mcp.json`): ```json { "mcpServers": { "laidian-payments": { "url": "https://laidian-erp.enscon.ai/mcp", "headers": { "Authorization": "Bearer ${env:LAIDIAN_KEY}" } } } } ``` OpenAI Responses API (`mcp` tool; the key goes in `authorization`): ```json { "type": "mcp", "server_label": "laidian-payments", "server_url": "https://laidian-erp.enscon.ai/mcp", "authorization": "ld_YOUR_KEY", "require_approval": "always" } ``` (Not yet verified against the live endpoint; this line will be updated after the deploy test.) ChatGPT app (connectors / developer mode): ChatGPT only supports OAuth or no auth and cannot send an API key header (OpenAI Apps SDK docs). An OAuth sign-in (paste your key once, approve) is being built; until then use the API route above. ## Tools ### payment_link_create_test 申請建立 Recur 測試付款連結。金額取自測試商品;amountTwd 是用來驗證金額,核准前尚未產生連結。 - Needs human approval: yes — returns status "pending_approval" with a requestId; nothing happens until a human approves Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "orderId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,40}$" }, "amountTwd": { "type": "integer", "minimum": 1, "maximum": 100000 } }, "required": [ "orderId", "amountTwd" ], "additionalProperties": false } ``` Example arguments: ```json { "orderId": "", "amountTwd": 1 } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "status": { "type": "string", "const": "pending_approval" }, "message": { "type": "string" }, "requestId": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" } }, "required": [ "status", "message", "requestId" ], "additionalProperties": false } ``` ### approval_status 用 requestId 查同一把授權金鑰送出的申請。核准後會讀回單號、發票或付款網址。 - Needs human approval: no (read-only) Input schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "requestId": { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" } }, "required": [ "requestId" ], "additionalProperties": false } ``` Example arguments: ```json { "requestId": "" } ``` Output schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "status": { "type": "string" }, "result": { "anyOf": [ { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} }, { "type": "null" } ] } }, "required": [ "status", "result" ], "additionalProperties": false } ``` ## Approval flow Write tools never act immediately. They return `{"status":"pending_approval","requestId":...}`. Tell the user the request is waiting for approval; do not say the order, invoice or payment link exists. Call `approval_status` with that requestId to read the result; once approved it returns the order number, invoice or payment URL. Where the human approves: give the requestId and what the request contains to the administrator the business has named; the administrator checks the tenant and the content in Laidian AI's restricted operator console and approves it, then you read the result with `approval_status` using the same key. In the demo, an administrator does this for you; there is no public approval page. ## Errors - HTTP 401: key missing, invalid, expired or revoked. - HTTP 403: request source not allowed. - Tool errors and "pending approval" are different results; a pending result is not an error. ## Price US$4 per pack per month, includes 1,000 tool calls (trial-period price, final price pending). ## Data Test tenant and test accounts only (e-invoice: Laidian test account; payments: Recur test mode). Source contract: tools/list snapshot (sha256 7bad356d3042d20b2e032985748fb86a8f8786bea58873f9520305ddf0ddf6d1). Machine-readable: https://enscon.ai/agents/openapi.json, https://enscon.ai/agents/server-card.json, https://enscon.ai/.well-known/ai-catalog.json