Nuxt demo
Build a Nuxt storefront with embedded, modal, and hosted Checkout. A Nitro route creates the order and keeps the API key private.
What you’ll build
- A Nuxt 4 storefront with a Nitro server route
- Typed order creation with the Inttegro TypeScript SDK
- Vue integration through
@inttegro/vue - Server-only configuration and safe errors
See the flow
The gallery shows one server-created order in each Checkout presentation. The API key stays in private Nitro configuration.
- Desktop
- Mobile
Select any image to view it full screen.
Run the demo
Install a supported Node.js release, set the private environment values, and start Nuxt. The released README has the exact commands.
Key files
server/utils/checkout.tscreates the order and maps safe errors.server/routes/checkout.post.tsvalidates the request and returns JSON or a303redirect.plugins/inttegro-checkout.client.tsmanages the Vue Checkout surface.public/checkout-presentations.jscoordinates the three Checkout modes.
Before you ship
Keep the API key out of public Nuxt configuration. Store a durable order mapping and verify payment before fulfillment.