create-payment-credential
БесплатноБез исполняемых скриптовНе проверенGets secure payment credentials (cards, tokens) from a Link wallet for one-time purchases and recurring payments. Use when the user says "get me a card", "buy…
от stripe★ 922 звезды на GitHubОб этом скилле
Create Payment Credential
Use Link to get secure payment credentials from a Link wallet for one-time purchases and recurring payments.
The CLI can produce three credential types:
- A card (PAN) for use with a standard web checkout form. The card returned will be use either an agentic token (Visa Intelligent Commerce, Mastercard AgentPay, or American Express ACE) or a single-use virtual card issued by Stripe.
- A Shared Payment Token (SPT) when the seller is in the Stripe Network and accepts payments programmatically (for example with Machine Payment Protocols).
- A Link Pay Token (LPT) for a supported Stripe payment surface.
Installing
Install with npm install -g @stripe/link-cli. Always run the installed link-cli binary; never substitute a package runner such as npx, pnpx, or bunx.
Running commands
Link CLI can run as an MCP server or as a standalone CLI.
MCP: Add the following to your MCP client config (.mcp.json, etc.)
{
"mcpServers": {
"link": {
"command": "link-cli",
"args": ["--mcp"]
}
}
}
Run the MCP server directly with link-cli --mcp.
Call tools/list to see all available MCP tools.
Common commands/options
- List all commands:
link-cli --llms - List all commands with parameters:
link-cli --llms-full - Get a command's exact schema with
--schema. For example,link-cli spend-request create --schema - Multi-step commands return a
_nextaction. Spend-request approval and automatic-resume polling return_next.argv;mpp payreturns_next.poll_argvand_next.pay_argv. Invoke these directly without a shell. Thecommandvalue is a Link CLI subcommand: pass[command, ...args]to the trusted CLI entrypoint. Dynamic compatibility strings are omitted on Windows — see the security notes. Authentication also returns a static_next.commandfor polling. - By default all output is in
toonformat. Pass--format [json|md|yaml]to change output format. - Some commands return a verification or approval URL. These must be presented to the user clearly for their action.
--auth <path>flag to store auth credentials in a specific file instead of the default location.auth loginwrites to this file; all other commands read from it. Example:link-cli auth login --auth credentials.json
Recommended: Run link-cli --llms to understand all the available commands. The --llms-full output is the canonical reference for parameter names, types, and valid values. Pass --schema before invoking a command to understand its parameters and constraints.
Core flow
Copy this checklist and track progress:
- Step 1: Authenticate with Link for the whole task
- Step 2: Evaluate merchant site (determine credential type)
- Step 3: Get payment methods
- Step 4: Create spend request with correct credential type
- Step 5: Complete payment
Step 1: Authenticate with Link for the whole task
Check auth status:
link-cli auth status
When authenticated, the response also reports the session's granted scope and authorization_details (when the token endpoint returned them). If the response includes an update field, a newer version of link-cli is available — run the update_command from that field to upgrade before proceeding.
If not authenticated:
link-cli auth login --client-name "<your-agent-name>"
Replace <your-agent-name> with the name of your agent or application (for example, "Personal Assistant", "Shopping Bot"). This name appears in the user's Link app when they approve the connection. Use a clear, unique, identifiable name.
New logins request the userinfo:read and payment_methods.agentic scopes and all four financial-insights source actions by default: read_link_transactions, read_external_transactions, read_balances, and read_source_details. If the user wants payment-only access, use link-cli auth login --client-name "<your-agent-name>" --no-financial-insights. If they want only certain actions, pass those --source-actions flags; an explicit list replaces the default. Do not combine explicit --financial-insights or --no-financial-insights with --source-actions or --authorization-detail. If the user does not want the default payment scope, pass --no-agentic-payments.
If login initiation fails specifically because the extra source actions are unsupported or unavailable, explain that financial insights will be unavailable and retry once with --no-financial-insights when the payment still needs a Link connection. Do not automatically retry after the user declines or abandons approval.
The response includes a _next command — run it to poll until authenticated. If your environment cannot relay the verification code while a separate polling command blocks I/O, use inline polling instead: auth login --client-name "<name>" --interval 5 --timeout 300. This yields the code immediately then polls in the same command.
If
Установить create-payment-credential в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(link-cli:*)Bash(npm install -g @stripe/link-cli:*)FAQ
Что делает скилл create-payment-credential?
Gets secure payment credentials (cards, tokens) from a Link wallet for one-time purchases and recurring payments. Use when the user says "get me a card", "buy something", "pay for X", "make a purchase", "I need to pay", "complete checkout", or asks to set up a subscription or transact on a merchant site. Use when the user asks to connect or log in to or sign up for their Link account. For purchases that should happen later, repeatedly on a schedule (separate one-time purchases, not a merchant subscription), while the user is away and cannot approve them, when the user simply does not want to manually approve purchases because it's tedious, when paying with Link balance, or when considering a purchase on your own initiative that the user has said they want, also use the `link-balance` skill.
Как установить скилл create-payment-credential?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-payment-credential запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic