Get Payment Methods
whmcs_get_payment_methodsRetrieve all available payment methods configured in your WHMCS system.
Instructions
Get available payment methods
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "whmcs_get_payment_methods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1032-1045 (registration)Registration of the 'whmcs_get_payment_methods' tool with MCP server. Uses empty inputSchema and calls whmcsClient.getPaymentMethods().
server.registerTool( 'whmcs_get_payment_methods', { title: 'Get Payment Methods', description: 'Get available payment methods', inputSchema: {}, }, async () => { const result = await whmcsClient.getPaymentMethods(); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } ); - src/whmcs-client.ts:1217-1227 (handler)Actual implementation of getPaymentMethods() method on WhmcsApiClient. Calls WHMCS API action 'GetPaymentMethods' and returns typed response with paymentmethods array containing module and displayname fields.
* Get payment methods */ async getPaymentMethods() { return this.call<WhmcsApiResponse & { totalresults: number; paymentmethods: { paymentmethod: Array<{ module: string; displayname: string; }> }; }>('GetPaymentMethods'); } - src/index.ts:1037-1037 (schema)Input schema for the tool - empty object (no input parameters required).
inputSchema: {},