Verify Repair Payment
verify_repairUse after the buyer completes the payment action for a checkout created by prepare_repair. APPLE_PAY verifies the existing Tap charge by checkoutId; BASE_USDC and TRON_USDT require the payer-provided txHash. A confirmed payment returns verified=true, while an already-confirmed Apple Pay checkout may return alreadyVerified=true; an unconfirmed or rejected payment returns error and/or reason without fabricating success. Verification may also return the job attached by the existing payment-completion workflow. This tool never creates or sends a transaction and never charges the buyer.
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": {
"checkoutId": "<checkoutId>",
"rail": "<rail>"
},
"name": "verify_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rail | Yes | Use the same payment rail selected in prepare_repair. | |
| txHash | No | Payer-provided transaction hash. Required for BASE_USDC and TRON_USDT after transfer submission; omit for APPLE_PAY. | |
| checkoutId | Yes | Exact checkout ID returned by prepare_repair. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | Existing repair job attached by the payment-completion workflow when available; may be null. | |
| rail | No | Payment rail checked. | |
| error | No | Present when payment is missing, unavailable, invalid or could not be verified. | |
| phase | No | VERIFY when the verification route returned a structured result. | |
| state | No | Payment/checkout state when returned; PAYMENT_VERIFIED denotes a confirmed payment. | |
| reason | No | Verification evidence or rejection reason when returned by a wallet rail. | |
| verified | No | True only when the provider/chain evidence confirms the expected payment for this checkout. | |
| paymentId | No | Recorded verified payment identifier when available. | |
| checkoutId | No | Checkout identifier that was verified. | |
| alreadyVerified | No | True when an APPLE_PAY checkout had already been verified previously. |