woo_scaffold_payment_gateway
Generates a WooCommerce Payment Gateway class with required methods like init_form_fields and process_payment, including ServiceProvider and registration hook.
Instructions
Generate a WooCommerce Payment Gateway class, ServiceProvider, and registration hook. Includes all required methods: init_form_fields(), process_payment(), admin panel setup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| gatewayName | Yes | Gateway name in PascalCase (e.g., "StripeGateway") | |
| gatewayId | Yes | Gateway ID slug (e.g., "my_stripe") | |
| title | Yes | Gateway display title (e.g., "Credit Card (Stripe)") | |
| description | No | Gateway description |