Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

payment-method-add

Skill by woocommerce

Guides developers through adding a new payment method to the WooCommerce Stripe gateway. It lists the PHP class, constant, registration, icon, Blocks and test steps in order.

  • Score 72
  • 293 stars
  • GPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install payment-method-add

Built from the published package, never by AI.

git clone --depth 1 https://github.com/woocommerce/woocommerce-gateway-stripe /tmp/woocommerce-gateway-stripe && mkdir -p ~/.claude/skills && cp -r /tmp/woocommerce-gateway-stripe/.claude/skills/payment-method-add ~/.claude/skills/payment-method-add

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install payment-method-add in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a step-by-step guide for adding a new payment method to the Stripe gateway in WooCommerce. It names the required changes in order: a PHP class extending WC_Stripe_UPE_Payment_Method, a constant in WC_Stripe_Payment_Methods, registration in WC_Stripe::init(), an icon, and a Blocks config under client/blocks/upe/. It also sets out the tests to write and a validation matrix covering four checkout surfaces.

The skill warns that a method can go missing silently if any step is skipped. For a method that supports subscriptions or pre-orders, it adds regression coverage for renewals, pre-order release, and payment_intent and setup_intent webhooks. It is aimed at developers working on the WooCommerce Stripe plugin codebase.

Written from the project's SKILL.md and checked against it.

What it can do

  • PHP payment method classCreates a class extending WC_Stripe_UPE_Payment_Method with id, label, icon and capability overrides.
  • Constants and registrationAdds the method ID to WC_Stripe_Payment_Methods and registers the class in WC_Stripe::init().
  • Icon and Blocks supportAdds the icon asset and registers it, and adds the method config under client/blocks/upe/.
  • Checkout validation matrixLists classic, Blocks, Optimized Checkout and Express checkout surfaces to verify.
  • Test coverage guidancePoints to PHPUnit, Jest and Playwright E2E test locations and conventions.
  • Recurring-payment regressionsCovers subscription renewal, pre-order release and relevant payment_intent and setup_intent webhooks.

What you need

  • Access to the WooCommerce Stripe plugin codebase
  • PHPUnit test setup
  • Jest test setup
  • Playwright for E2E specs

Try asking

  • Add a new UPE payment method for Klarna to the Stripe gateway
  • Walk me through registering a new payment method on checkout
  • Check which checkout surfaces a new Stripe method must be tested on

Good to know

  • Written for the WooCommerce Stripe plugin codebase only.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/payment-method-add/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to payment-method-add

All alternatives →
paperbananadwzhu-pku
94

PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.

AAA Skill 7.7k
technical-wireframe-info-layoutMengTo
94

Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.

AAA Skill 8.5k
spline-3d-integrationsickn33
94

Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.

AAA Skill 50k
code-slice-heroheygen-com
94

Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.

AAA Skill 92k
patentfigdavila7
94

Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.

AAA Skill 34k
framed-tech-dark-border-gradientMengTo
94

Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.

AAA Skill 8.5k

Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration

payment-method-add: common questions

What changes are needed to add a Stripe payment method?

The source lists a PHP class, a constant in WC_Stripe_Payment_Methods, registration in WC_Stripe::init(), an icon, and a Blocks config. Skipping any of these can leave the method missing on checkout.

Which checkout surfaces does a new method need to be tested on?

The source names classic checkout, Blocks checkout, Optimized Checkout (OCS) and Express checkout (ECE). It says a method that is intentionally hidden on a surface should be verified as cleanly hidden.

Does the skill cover subscriptions and pre-orders?

Yes, for methods that support them. The source asks for regression tests on subscription renewals, pre-order release and related webhook events.

How do I install payment-method-add?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is payment-method-add free?

The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.

Is payment-method-add safe to use?

It scores 72 of 100. Grades: maintenance A, licence C, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to payment-method-add?

Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.

payment-method-add Install

Add to stack

Loading.