create-payment-credential
БесплатноБез исполняемых скриптовНе проверенCreates and manages Link spend requests and retrieves approved payment credentials for one-time purchases and recurring payments. Use when the user asks for a…
от stripe★ 922 звезды на GitHubОб этом скилле
Create Payment Credential
Use Link to get payment credentials for the user's one-time or recurring purchase.
Call this extension's native tools with their discovered mount prefix, such as
link__create_spend_request. Tool schemas are the reference for input names and
constraints. Pass structured arguments, not command strings.
The tools support card credentials, Shared Payment Tokens (SPTs), and merchant-bound Link Pay Token (LPT) requests.
Core flow
- Confirm the wallet and any verification requirements.
- Confirm the spend-request inputs.
- Confirm the payment method and shipping details if needed.
- Create the spend request and obtain approval.
- Retrieve the approved credential.
1. Confirm the wallet
Link tools use the wallet configured by the application. If a tool prompts for Eve authorization, let the user finish it so the call can resume. Do not ask for tokens in chat. If authorization fails or is denied, explain the result and stop.
Call retrieve_user_info with {} when you need to confirm the connected user,
spend limits, balance eligibility, or verification requirements. If
agent_wallet_verification_requirement.action_url is present, show the user the
required action. Finite spend-limit values are cents; a returned null limit
means unlimited. Missing fields do not establish unlimited access or completed
verification.
2. Confirm the spend-request inputs
If the user leaves the merchant ambiguous, such as "my usual store," use an
available top-brand insight as one clue. When the financial-insights tools are
mounted and already accessible, call list_available_insight_types, find a
top-brand insight for the purchase category, then call list_insights with only
that returned ID. Use a ready result as observed purchase history, not a
declared preference. The user's explicit merchant choice always takes priority.
If a tool is missing, access requires another authorization, or the insight is
pending, empty, or fails, continue from the user's other instructions or ask
which merchant they want. Do not retry or delay payment for this optional clue.
Use confirmed purchase details from the user or existing task context: the final
total including taxes and shipping, items, quantities, and delivery choices.
Ask for missing details before creating a request. Describe the actual purchase
in context; the user reads it when approving. It must be at least 100 characters.
Use the credential type established by those purchase details:
| Credential needed | create_spend_request inputs |
|---|---|
| Card form | credential_type: "card", with merchant_name and merchant_url |
| Supported Stripe programmatic payment flow | credential_type: "shared_payment_token", with the merchant's network_id |
| Link Pay Token | credential_type: "link_pay_token" and the checkout-provided merchant_account_id |
Never invent a network_id or merchant_account_id. For LPT, omit merchant
name/URL, network ID, and test mode; Link resolves the merchant identity for
approval. If the required ID is unavailable, ask for it before proceeding.
3. Payment method and shipping
Omit payment_details to use the wallet's default payment method. If the user
requests a particular card or bank, call list_payment_methods with {} and
use the selected method's ID as payment_details. The response may include
only payment methods available for agentic purchases.
Call list_shipping_addresses with {} if checkout requires delivery details.
Use the default address unless the user specifies another. Show only the address
detail needed for confirmation.
4. Create and approve the spend request
For a normal card checkout, call create_spend_request with arguments like:
{
"credential_type": "card",
"amount": 4200,
"currency": "usd",
"merchant_name": "Example Shop",
"merchant_url": "https://shop.example/checkout",
"context": "Purchase the blue notebook selected by the user from Example Shop, including the confirmed shipping and tax in the final total.",
"line_items": [{ "name": "Blue notebook", "unit_amount": 4200, "quantity": 1 }],
"totals": [{ "type": "total", "display_text": "Total", "amount": 4200 }]
}
Replace the example values with the verified checkout details. line_items and
totals are arrays; use the discovered schema for their supported fields. For
an SPT, provide network_id and omit merchant_name and merchant_url. For
LPT, use the bound-request inputs above.
Completion callbacks (optional): If your application has a callback destination,
add completion_callback_url and nonce together to the create inputs above.
Generate an opaque, unpredictable nonce with a cryptographic random generator;
save it unchanged and verify an exact match when the callback is received. The
URL must be valid and at most 2,048 characters; the nonce must be nonblank and at
most 512 UTF-16 code units. The API validates live-mode HTTPS and URL security.
Use
Установить create-payment-credential в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл create-payment-credential?
Creates and manages Link spend requests and retrieves approved payment credentials for one-time purchases and recurring payments. Use when the user asks for a card, payment token, purchase authorization, or subscription.
Как установить скилл 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