wc-checkout-block-payment-method
Installation
SKILL.md
WooCommerce Checkout Block payment methods
A Checkout Block integration is an adapter around a payment gateway, not a replacement for it. Implement and test each layer deliberately.
Keep the four layers separate
| Layer | Responsibility |
|---|---|
WC_Payment_Gateway |
Settings, availability, validation, server-side provider calls, refunds, and classic checkout |
AbstractPaymentMethodType |
Registers Block assets and exposes non-secret settings to JavaScript |
registerPaymentMethod() |
Renders the Block UI, reports availability, prepares opaque payment data, and handles client SDK events |
| Store API processing | Bridges payment_data to process_payment() or an explicit PaymentContext/PaymentResult handler |
Store API payment requirements only filter eligible methods. They do not register a payment UI or process money.
Use one stable identifier
Make these values equal unless a verified compatibility requirement says otherwise: