Skip to content
LogoLogo

Nava Gateway developer overview

Developer Preview

The preview places a Nava Guardian policy verdict between normal x402 verification and merchant settlement for EIP-3009 USDC on Base or Base Sepolia. The facilitator submits the transfer and sponsors its ETH gas only after the payment has passed the applicable gates.

Choose a path

Shared primitive

Both integration paths use verifyPayment({ paymentPayload, paymentRequirements }, config). The facilitator authenticates with GuardianConfig.apiKey and GuardianConfig.appId; Nava resolves the agent and active policy from the payer wallet. The helper maps signed authorization fields into a preview PaymentAction, submits that action to Guardian, polls within a bounded attempt count, and returns a normalized GuardianResult. It does not settle a payment.

Use the verdict's outcome as the policy decision. Do not create a local allowlist of reasonCode values; surface unknown codes and the accompanying human reason so newer Guardian responses remain diagnosable.

Security-first checklist

  • Treat the facilitator's integration API key as a bearer secret.
  • Keep it out of URLs, logs, errors, analytics, and stored payment transcripts.
  • Use the verdict's outcome, not a local reasonCode allowlist, as the policy decision.
  • Read the payment lifecycle and security and limitations before experimenting.

Payers enroll by linking an agent to the facilitator's integration, registering their wallet, and activating a policy. Caller-supplied policyId, navaApiKey, or agentId fields do not select Guardian authority and are stripped before the payload reaches the base x402 verifier.