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.
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 } }. |