stripe avatar

Create Payment Credential

Securely retrieve approved payment credentials for one-time and recurring purchases through Link.

CCM score
63 of 100
skills.sh installs
29.6K
GitHub stars
919
last updated
Nov 24, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the spend-request flow: confirm wallet, create and approve a spend request, then retrieve the credential
  • Supports card credentials, Shared Payment Tokens (SPTs), and merchant-bound Link Pay Tokens (LPTs)
  • Enforces a 100-character minimum context, cent-based amounts, and no invented network_id or merchant_account_id
  • Designed for agents that complete checkouts or set up recurring subscriptions for a user with explicit approval

Install

$ npx -y skills add stripe/link-cli --skill create-payment-credential -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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.

Details

Repository
github.com/stripe/link-cli
Categories
Finance & Trading, AI Agents & LLM Apps
First seen
Nov 24, 2026

More from stripe/link-cli

All 2

Similar to Create Payment Credential

More Finance & Trading