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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rootNamespace": "<rootNamespace>",
"gatewayName": "<gatewayName>",
"gatewayId": "<gatewayId>",
"title": "<title>"
},
"name": "woo_scaffold_payment_gateway"
}
}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 |