Simulate a payment (test mode only)
simulate_paymentTest payment flows by paying an invoice or payment link in full, short, or over; confirm fulfillment, entitlements, receipts, and webhook events using test keys only.
Instructions
Simulate a payment (test mode only).
Test keys only. full pays the amount due: the invoice turns paid and is fulfilled — entitlements, license keys, a receipt, and the events your webhooks get. short sends half (underpaid), over a tenth more (overpaid); those two need the buyer's chain and asset chosen first. For full, an invoice with no chain yet gets one: chain and asset if given, else the first stablecoin offered (refund terms count as accepted).
Pass the invoice's id, or a payment_link id: then a test invoice is made for the link's price (as a buyer opening the link would) and paid.
Test keys only: refused with a live key.
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": "simulate_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The invoice's id, `inv_…`. | |
| asset | No | ||
| chain | No | ||
| outcome | No | Default full. | |
| payment_link | No | Instead of `id`: a payment link, `plink_…`, to buy from first. |