> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clinkbill.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Choose your Agent integration

> Identify your role first: Agent users use MCP directly, and Agent platforms then choose an MCP-based or API-based integration.

Clink lets an Agent pay on merchant websites. First identify your role, then choose the matching integration path.

## Identify your role

> [card] [I am an Agent user](https://docs.clinkbill.com/guides/agent/quickstart.md)
>
> Install the Clink Skill, connect MCP, authorize your wallet, and make purchases from your own Agent Host. No platform integration is required.

> [card] [I am an Agent platform developer](#platform-integration)
>
> Choose an MCP-based or API-based integration, then prepare platform credentials, user state, and the required browser or server runtime.

An **Agent user** can have their Agent install MCP directly to quickly try Clink Agent Pay. An **Agent platform** must first decide how the platform connects to Clink, then serve its users through that connection.

## 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](https://docs.clinkbill.com/guides/agent/platform_integration/mcp_integration.md) to set up platform credentials, user OAuth connections, and MCP calls, then follow [Browser Pay](https://docs.clinkbill.com/guides/agent/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](https://docs.clinkbill.com/api-reference/agent-portal/overview.md) 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](https://docs.clinkbill.com/guides/agent/vault_sdk).

If you use the Customer Portal API, read [How to integrate RESTful API](https://docs.clinkbill.com/guides/agent/platform_integration/restful_api.md); if you need browser card substitution, read [How to integrate Vault SDK](https://docs.clinkbill.com/guides/agent/platform_integration/vault_sdk.md).

## Choose the payment implementation

| Requirement | Browser Pay (MCP payment) | Agent Vault SDK (API payment) |
| :- | :- | :- |
| Connection | Per-user OAuth + MCP | Server-side SDK + application credentials; no user OAuth or MCP |
| Browser capability | Executor can read the amount, fill the card form, submit, and read the result | Platform controls a Playwright or CDP browser and can intercept PSP requests |
| Payment mechanism | Obtain a credential within the user's authorization; a trusted executor fills the merchant form | Agent fills a placeholder card; Clink substitutes the real card inside its PCI boundary |
| User participation | Wallet card setup, purchase authorization, or requested verification | Hosted card setup or CVV verification, plus any verification the merchant requires |
| Result confirmation | Read the merchant result, then call `confirm_result` | Read the merchant result, then call `reconcile()` |

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:

1. [How to integrate MCP](https://docs.clinkbill.com/guides/agent/platform_integration/mcp_integration.md): prepare platform credentials and the OAuth Client, establish a connection for each user, manage tokens, and call MCP tools.
2. [Wallet and purchase authorization](https://docs.clinkbill.com/guides/agent/wallet_service.md): understand how cards, tool access, and spending authorization relate, and implement wallet management as needed.
3. [Complete a payment and report the result](https://docs.clinkbill.com/guides/agent/browser_pay): read the final amount, obtain a credential, submit the payment, and report the merchant result. When you receive `key` / `payload`, use [encrypted credential decryption](https://docs.clinkbill.com/guides/agent/browser_pay/decryption.md).

This is a reading order, not the tool call order for each payment. `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:

1. [How to integrate Vault SDK](https://docs.clinkbill.com/guides/agent/platform_integration/vault_sdk.md): obtain server credentials, confirm coverage, associate users and cards, and determine browser ownership.
2. [Implement the checkout flow](https://docs.clinkbill.com/guides/agent/vault_sdk): install the SDK, attach the browser, handle hosted card setup, then run `pay()` and `reconcile()`.
3. [SDK API reference](https://docs.clinkbill.com/guides/agent/vault_sdk/api_reference.md): look up methods, options, return states, and errors as needed during implementation.

### RESTful API (Customer Portal API)

Read in this order:

1. [How to integrate RESTful API](https://docs.clinkbill.com/guides/agent/platform_integration/restful_api.md): obtain the platform token and Portal token, then complete card setup, purchase authorization, payment credentials, and result reporting step by step.
2. [Portal API reference](https://docs.clinkbill.com/api-reference/agent-portal/portal_apis.md): 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

![Visa](https://mintcdn.com/clink/WOHh_9VfSF-k-jkf/images/partners/visa-blue.png?fit=max\&auto=format\&n=WOHh_9VfSF-k-jkf\&q=85\&s=dd416e18fa3d7f11748b4b2d9282ee53)

Clink is a **Visa Intelligent Commerce (VIC) partner**. The current Visa Agent payment flow combines Passkey user verification, purchase authorization, and tokenized payment credentials so an Agent can complete purchases within the scope the user approved. See [Visa's documentation](https://developer.visa.com/capabilities/visa-intelligent-commerce/overview) for an introduction to VIC.

Whether a specific card can be used for Agent Pay depends on the current wallet and tool responses. See [Passkeys and purchase authorization](https://docs.clinkbill.com/guides/agent/wallet_service.md#passkeys-and-purchase-authorization) for how user authorization and payment limits relate.

## Other commerce capabilities

Clink MCP also provides Catalog search and UCP Checkout, with dedicated tools for searching products, preparing and completing a checkout, and reading orders and digital delivery. When you need these capabilities, see the [Catalog and UCP reference](https://docs.clinkbill.com/api-reference/mcp/commerce.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.