wc-payment-gateway
Installation
SKILL.md
WooCommerce payment gateway
A provider response is not automatically a paid order. Model captured, authorization-only, asynchronous pending, failed, refunded, and duplicate callback states explicitly.
Register the gateway
add_filter( 'woocommerce_payment_gateways', static function ( array $gateways ): array {
$gateways[] = MyPlugin\Payment\Gateway::class;
return $gateways;
} );
Register a class name so WooCommerce controls instantiation.
Minimal gateway class
namespace MyPlugin\Payment;