create_charge
Initiate a payment charge by specifying amount and currency, with optional card or source details, to process customer payments and optionally capture funds immediately.
Instructions
Create a new charge for payment processing
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": {
"amount": "<amount>",
"currency": "<currency>"
},
"name": "create_charge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | Card token for payment | |
| amount | Yes | Amount in the smallest currency unit (satang for THB, cents for USD) | |
| source | No | Source ID for payment | |
| capture | No | Whether to capture the charge immediately (default: true) | |
| currency | Yes | Currency code (THB, USD, JPY, etc.) | |
| customer | No | Customer ID for the charge | |
| metadata | No | Additional metadata for the charge | |
| return_uri | No | Return URI for 3D Secure authentication | |
| description | No | Description of the charge |