verify_l402_payment
Validate L402 token payment confirmation to grant resource access after receiving macaroon and preimage from payer.
Instructions
Verify an L402 token (macaroon + preimage) to confirm payment was made. Use this after receiving an L402 token from a payer to validate they paid before granting access to the resource. Requires LIGHTNING_ENABLE_API_KEY with an Agentic Commerce subscription.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macaroon | Yes | Base64-encoded macaroon from the L402 token | |
| preimage | Yes | Hex-encoded preimage (proof of payment) |