Test a refund
test_refundRefunds a test member's sandbox payment in Stripe's test mode, to prove what the app does after a refund — the same sandbox pay (from test_pay) and the same kit's guards: a test-mode key only, a test member's own payment only. payment is the Stripe reference (pi_… or ch_…) from test_pay's or test_outcome's answer; amount (minor units, below the payment's) asks a part refund — leave it out to refund in full. Nothing real is charged or returned: Stripe's sandbox only, and no payment details ever pass through this chat. The same payment refunded again answers the same refund, never a second one. Only Stripe's webhook confirms it landed — call test_outcome with as the test member's name afterwards to read it. This is what a founder may call trying a refund.
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": {
"payment": "<payment>"
},
"name": "test_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | optional: a part refund, in minor units (pence or cents) — leave out to refund in full | |
| payment | Yes | the payment's Stripe reference, pi_… or ch_… (from test_pay or test_outcome) |