Integrate Zateway with Next.js

Add crypto payments to your Next.js project in under 10 minutes.

Get Your API Key

Quick Start Guide

1

Install the Zateway SDK: npm install @zateway/sdk

2

Create a /checkout route in your Next.js app

3

Use server-side API route to create payment sessions

4

Redirect users to the Zateway hosted checkout page

5

Handle webhook callbacks for payment confirmation

Code Example

// app/api/create-payment/route.ts
export async function POST(req) {
  const { amount, currency } = await req.json();
  const res = await fetch('https://zateway.com/api/v1/payments', {
    method: 'POST',
    headers: {
      'X-API-Key': process.env.ZATEWAY_API_KEY,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({ amount, currency, chain: 'polygon' }),
  });
  return Response.json(await res.json());
}

Ready to integrate?

Get your API key and start accepting crypto payments in minutes.

Get Started Free

Explore More

Shopify PluginAPI DocsWooCommerce PluginWordPress PluginReact IntegrationFor E-commerceCrypto in UAECrypto in Brazil