Sandbox: principal pays a top-up link
sandbox_simulate_topup_paymentSandbox only. Acts as the principal paying a get_topup_link URL: the mock provider sends a PayPlus-format IPN through the same webhook path production uses, and the wallet is credited. outcome "declined" simulates a failed card.
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": {
"topup_id": "<topup_id>"
},
"name": "sandbox_simulate_topup_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | No | approved (default) credits the wallet; declined simulates a failed card | |
| agent_id | No | Your agent id (or X-Agent-Id header) | |
| topup_id | Yes | topup_id from get_topup_link | |
| agent_key | No | Secret returned by register_agent (or X-Agent-Key header) | |
| principal_id | No | The principal you act for (or X-Principal-Id header) |