Identify your role
I am an Agent user
Install the Clink Skill, connect MCP, authorize your wallet, and make purchases from your own Agent Host. No platform integration is required.
I am an Agent platform developer
Choose an MCP-based or API-based integration, then prepare platform credentials, user state, and the required browser or server runtime.
Choose the platform integration path
Agent platforms can choose an MCP-based or an API-based integration. After choosing how to connect, choose the specific payment implementation.- MCP integration: Clink provides an out-of-the-box, end-to-end solution. The platform connects to Clink through MCP and uses standardized wallet, authorization, and payment capabilities, reducing the work of building its own payment infrastructure.
- API integration: Clink provides composable building blocks. The platform can customize wallet, payment authorization, order management, and payment execution around its own product, user experience, and business workflows.
MCP integration
Choose the MCP path when the platform wants to provide Clink’s wallet and payment tools to each user through MCP. The platform establishes an OAuth connection for each user, then uses Browser Pay to obtain a payment credential and complete the merchant checkout. Start with How to integrate MCP to set up platform credentials, user OAuth connections, and MCP calls, then follow Browser Pay to complete the merchant payment.API integration
Choose the API path when the platform wants to build its own wallet or payment experience. The platform can use the Agent Portal API to manage cards, payment intents, and orders; if its server controls a Playwright or CDP browser and needs to substitute cards securely, use the Agent Vault SDK. If you use the Customer Portal API, read How to integrate RESTful API; if you need browser card substitution, read How to integrate Vault SDK.Choose the payment implementation
Choose Browser Pay when using the MCP path with the user’s Clink wallet and purchase authorizations. Choose Agent Vault SDK when using the API path, the platform controls a Playwright/CDP browser, and the Agent should handle only a placeholder card; confirm target merchant and PSP coverage first.
A platform can enable both, but each payment attempt uses only one path. A Vault payment window is not a Browser Pay purchase authorization.
Implement in order
Browser Pay
Read in this order:- How to integrate MCP: prepare platform credentials and the OAuth Client, establish a connection for each user, manage tokens, and call MCP tools.
- Wallet and purchase authorization: understand how cards, tool access, and spending authorization relate, and implement wallet management as needed.
- Complete a payment and report the result: read the final amount, obtain a credential, submit the payment, and report the merchant result. When you receive
key/payload, use encrypted credential decryption.
get_credential handles the authorization matching and setup the purchase needs, so you do not need to create a purchase instruction before every payment. Local users who have completed the quickstart can go directly to the payment flow.
Agent Vault SDK
Read in this order:- How to integrate Vault SDK: obtain server credentials, confirm coverage, associate users and cards, and determine browser ownership.
- Implement the checkout flow: install the SDK, attach the browser, handle hosted card setup, then run
pay()andreconcile(). - SDK API reference: look up methods, options, return states, and errors as needed during implementation.
RESTful API (Customer Portal API)
Read in this order:- How to integrate RESTful API: obtain the platform token and Portal token, then complete card setup, purchase authorization, payment credentials, and result reporting step by step.
- Portal API reference: look up fields, states, and error codes as needed during implementation.
Verify your first payment, then prepare for rollout
First verify user setup, merchant checkout, and result reporting in Sandbox UAT. Platforms must also check user isolation, expiry, failures, and unknown outcomes before configuring Production. Confirm payment success using the merchant’s actual order result; credential issuance or a PSP response alone does not prove that the order completed. When the result is unknown, verify the same order first to avoid paying twice.Card network partnerships and availability
