Update WooCommerce Payment Gateway
wc_update_payment_gatewayEnable or disable a WooCommerce payment gateway and update its title and description shown at checkout.
Instructions
Update a payment gateway's settings. Use to enable/disable a gateway or change its title/description. For Stripe test mode keys, Jon handles those directly in WP Admin — this tool can enable/disable the gateway only.
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": {
"gateway_id": "<gateway_id>"
},
"name": "wc_update_payment_gateway"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Gateway title shown at checkout. | |
| enabled | No | Enable or disable the gateway. | |
| gateway_id | Yes | Gateway ID, e.g. 'stripe', 'cod', 'bacs', 'cheque'. | |
| description | No | Gateway description shown at checkout. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |