> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://docs.navalabs.ai/api/mcp` to find what you need.

# Nava Gateway developer overview \[Developer Preview]

:::warning[Developer Preview]
Nava Gateway is a **Developer Preview**. The real Nava Guardian payments venue,
checks, and final payment field contract
remain incomplete. These interfaces are not a production commitment.
:::

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.

Suggested prompt for a coding agent:

```text
Integrate the Nava Gateway Developer Preview into this x402 project. Inspect the current verifier and settlement flow first, then ask whether I am protecting a resource server with the Nava facilitator or wrapping an existing facilitator. Preserve the existing x402 verification and do not alter signed payment fields. Configure the facilitator's Nava integration API key and app ID, and resolve enrollment from the signed payer wallet rather than accepting payer-supplied policy or credential fields. Require a terminal approving Guardian verdict before settlement when Guardian applies, but keep settlement outside verifyPayment and withGuardian. Leave allowPromptOverride unset or false so the Guardian description is derived from the signed payment action, never an unsigned payer override. Keep payment payloads and facilitator credentials out of URLs, logs, errors, analytics, and stored transcripts. Treat lookup failure, rejection, pending, timeout, a missing or malformed verdict, and service failure as blocked. Add tests for the approved path and every fail-closed path, run the repository checks, and report changed files, checks run, preview limitations, and manual setup.
```

## Choose a path

- [Resource server + Nava facilitator](/gateway/developers/protect-a-resource-server): Use paymentGate or createResourceGate to protect a Fastify resource through the facilitator preview.

- [Existing facilitator + Guardian](/gateway/developers/integrate-a-facilitator): Use withGuardian(theirVerify, config) around your existing x402 verifier.

## 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](/gateway/developers/payment-lifecycle) and
  [security and limitations](/gateway/developers/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.
