Inspect x402 Payment Receipt
sap_payments_verify_receiptDecode payment receipt headers from PAYMENT-RESPONSE or X-PAYMENT-RESPONSE into JSON for agent-readable inspection. Use this local helper to verify receipt structure before relying on on-chain finality.
Instructions
Decodes a PAYMENT-RESPONSE or X-PAYMENT-RESPONSE receipt header into agent-readable JSON. This is a local inspection helper; on-chain finality still comes from the x402 facilitator response and Solana transaction status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receiptHeader | No | Base64 JSON or raw JSON receipt header returned by PAYMENT-RESPONSE or X-PAYMENT-RESPONSE. | |
| paymentResponse | No | Alias for receiptHeader. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decoded | No | Decoded receipt payload or the original string when not JSON. | |
| network | No | Settlement network when present. | |
| warning | No | Warning when the receipt could not be decoded as JSON. | |
| validJson | No | Whether the receipt decoded to JSON. | |
| txSignature | No | Settlement transaction signature when present. |