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_Token records (including WC_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.