wc-payment-tokens
OfficialCharge saved WooCommerce tokens safely
Software Engineering#tokenization#woocommerce#checkout validation#payment tokens#saved cards#gateway id#My Account security
Authorvikingokft
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents payment security mistakes by guiding how to correctly create, validate, and use WooCommerce saved payment tokens without exposing or trusting raw card data.
Core Features & Use Cases
- Secure token creation & validation: Create
WC_Payment_Tokenrecords (includingWC_Payment_Token_CC/WC_Payment_Token_ECheck) only after your provider returns a reusable provider token, and validate required token fields (gateway id, user ownership, last4/expiry/card type). - Correct token retrieval & default handling: Read customer tokens, fetch default tokens, and retrieve order-attached tokens via WooCommerce APIs (including HPOS-safe patterns).
- Safe checkout & lifecycle operations: Validate posted saved-token selections at checkout (nonce + ownership + gateway id), then attach tokens to orders; support delete/default endpoints and map provider tokenization/gateway support requirements.
Quick Start
Ask the AI to help you implement an Add payment method and saved-card charge flow that validates token ownership and gateway id using the WooCommerce token APIs.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: wc-payment-tokens Download link: https://github.com/vikingokft/wp-agent-skills/archive/main.zip#wc-payment-tokens Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.