Verify a payment receipt
verify_paymentValidate an IDPHANTOM payment receipt by checking its EIP-712 signature, payer recovery, expiry, and on-chain authorization state (free, used, or cancelled).
Instructions
Verify an IDPHANTOM payment receipt: cryptographic checks (EIP-712 signature, payer recovery), expiry, and the on-chain state of the authorization (free/used/cancelled). Free for receipts of payments the caller participated in; paid via the receipt-verifier for third-party receipts.
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_intent_id": "<payment_intent_id>"
},
"name": "verify_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receipt_id | No | Optional specific receipt ID when several receipts exist for the intent. | |
| payment_intent_id | Yes | Payment intent ID to verify. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| isError | No | True when the API call failed; text carries { error: { code, message } }. |