Use payment sandbox
sandbox_paymentsCharge, refund, list, get, or reset payments in a deterministic test sandbox using Stripe test card numbers, rejecting any other card-like values.
Instructions
Charge, refund, list, get or reset in a payment sandbox. Accepts only card numbers from Stripe's published testing list; any other card-like number is refused. Declines return code and decline_code. Same seed and call order, same objects for the same sandbox version. Use it after sandbox_create, with that sandbox's id.
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": {
"sandbox_id": "<sandbox_id>",
"action": "<action>"
},
"name": "sandbox_payments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | Charge: a card number from Stripe's published testing list, e.g. 4242424242424242; decline numbers: invalid_values kind card | |
| chaos | No | Deliberate misbehaviour for testing error handling | |
| limit | No | ||
| action | Yes | ||
| amount | No | Minor units; charge, or partial refund | |
| charge | No | Charge id, for refund and get | |
| fields | No | Comma-separated fields to keep, e.g. value,reason | |
| currency | No | ||
| reference | No | ||
| sandbox_id | Yes |