wc-payment-tokens

wc-payment-tokens is a skill for Claude Code, Codex from Lonsdale201/wp-agent-skills. It costs 130 tokens per session (3,124 once invoked), scanned A, original, MIT.

A guide to WooCommerce saved payment-method records, called payment tokens. They store a gateway-owned reference and safe display details such as a card brand or last four digits, not the full payment credentials.

In plain words
What is it for?
It helps gateways and account pages add, use, migrate, delete, and choose default saved cards or bank accounts.
Why use it?
A token ID from a browser is untrusted input, and storing card numbers, security codes, or full bank details would be unsafe. Server-side ownership and gateway checks are required before using a token.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps gateways and account pages add, use, migrate, delete, and choose default saved cards or bank accounts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/wc-payment-tokens
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lonsdale201/wp-agent-skills --skill wc-payment-tokens
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wc-payment-tokens

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/wc-payment-tokens/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/wc-payment-tokens)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/wc-payment-tokens"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/wc-payment-tokens/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wc-payment-tokens

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/wc-payment-tokens"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/wc-payment-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,124 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 271
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00130 $0.03124
Opus 5 $0.00065 $0.01562
Sonnet 5 $0.00026 $0.00625
Haiku 4.5 $0.00013 $0.00312

Measured 9d ago against content hash c2b28df18cb0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

wc-payment-tokens scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

woocommerce/wc-payment-tokens/SKILL.md · 299 lines

How it starts

The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WooCommerce payment tokens

Payment tokens are WooCommerce's saved-payment-method records. They connect a WooCommerce customer to a gateway-owned provider reference and type-specific safe display metadata. Card type, last4, and expiry exist only on card-token subclasses. They are not raw card storage. Never store PAN/card numbers, CVV, magnetic stripe data, or full bank credentials in WooCommerce token fields or meta.

Misconception this skill corrects

"I have a token ID from the browser, so I can charge it."

A token ID is user-controlled input. Load the token server-side and verify ownership, gateway ID, and token type before using it. WooCommerce's built-in My Account delete/default handlers check both nonce and ownership; custom endpoints must do the same.

When to use this skill

Trigger when ANY of the following is true:

  • Building a gateway with saved cards or saved bank accounts.
  • Implementing Add payment method in My Account.
  • Charging a saved token during checkout, renewal, or admin action.
  • Deleting or setting a default saved payment method.
  • Migrating provider tokens into WooCommerce.
  • The diff contains WC_Payment_Tokens, WC_Payment_Token_CC, WC_Payment_Token_ECheck, tokenization, woocommerce_payment_token, wc-{$gateway_id}-payment-token, or add_payment_token.

Data model

WooCommerce stores tokens in custom tables:

Table Purpose
wp_woocommerce_payment_tokens token ID, gateway ID, provider token string, user ID, default flag, token type
wp_woocommerce_payment_tokenmeta token type metadata such as last4, expiry, card type

Use the API. Do not write these tables directly.

Core token fields:

Field Meaning
token Provider token/reference, not card number.
gateway_id Must match the payment gateway $id.
user_id WordPress user ID, or 0 for guest/non-customer association.
is_default One default token per user.
type CC, eCheck, or a custom registered type.

Read the full file on GitHub · 299 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 299 lines · 130 tokens per session scan A c2b28df18cb0

Subscribe to this mod's changes

wc-payment-tokens is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 130 tokens to every session and 3,124 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

commerce-app-business-config

Manage custom business configuration in an Adobe Commerce app. Use when the user wants to add, modify, or remove merchant-configurable settings (config fields, admin config, store configuration) exposed through Commerce Admin. Creates typed config fields (text, password, email, url, tel, boolean, list) in…

adobe/skills · 80 tokens

muapi-amazon-product-listing

Generate a complete Amazon product listing image set — hero image, lifestyle shot, infographic with features, and comparison/detail closeups optimized for Amazon standards.

SamurAIGPT/Generative-Media-Skills · 37 tokens

muapi-multi-angle-shots

Generate a complete set of multi-angle product shots — front, side, back, top-down, and 45-degree perspective — for comprehensive product visualization.

SamurAIGPT/Generative-Media-Skills · 38 tokens

menu-engineer

Optimize menu pricing, placement, and item mix to maximize profitability. Uses menu engineering frameworks to analyze item performance by popularity and margin, then recommends pricing tweaks, repositioning, and removals.

cosmicstack-labs/mercury-agent-skills · 42 tokens

price-scout

Track and compare supplier prices across multiple vendors to reduce COGS. Monitors price changes, identifies savings opportunities, calculates total cost of ownership (including delivery fees and minimums), and generates renegotiation briefs.

cosmicstack-labs/mercury-agent-skills · 47 tokens

table-manager

Optimize table turns, manage reservations, and reduce wait times to maximize revenue per seat. Handles booking intake, table assignment strategy, waitlist management, and provides actionable insights for seating efficiency.

cosmicstack-labs/mercury-agent-skills · 40 tokens