Home/Next.js
Integrations

Add crypto payments to Next.js

Type-safe crypto payments for your Next.js app.

My Crypto Server is itself a Next.js app, so it's a natural fit for Next.js projects. Create charges from a route handler or server action with the TypeScript SDK, verify the signed webhook in an API route, and settle every payment straight to your own wallet.

How it connects

TypeScript SDK from server actions / route handlers + signed webhook route.

Integration

How to add crypto to Next.js

01

Deploy My Crypto Server

Push the app to Vercel, attach any Postgres database, add your Alchemy key, and point it at your wallet. You're live in about an hour.

02

Create charges from your app

Call the TypeScript SDK from a server action or route handler to create a charge for the order amount, then send the customer to the returned checkout URL.

03

Handle the paid webhook

On a confirmed payment, the server sends a signed webhook to your endpoint. Verify the signature, then mark the order paid and fulfil, idempotently.

04

Go live

Test with the live demo flow, then flip it on. Card options can stay exactly where they are; crypto simply runs alongside them at 0% fees.

Why Next.js developers choose it

Typed SDK + REST API

Create charges and read payment state from a TypeScript SDK or the REST API. The same primitives power the dashboard, so anything the UI does, your code can too.

Signed webhooks

Every confirmed payment fires an HMAC-SHA256 signed webhook with replay protection, so your app marks orders paid idempotently and never trusts an unverified event.

Non-custodial by design

Payments derive from your own wallet and settle straight to you. There's no processor balance, payout schedule, or account anyone can freeze.

0% platform fees

No 2.9% + 30¢ per order. Crypto settles for the cost of gas, paid by the customer, so your integration keeps the full sale price.

Next.js integration FAQs

Does the SDK work with the App Router?

Yes. Call it from server actions or route handlers. Keep your API key server-side; never expose it to the browser.

How do I verify the webhook in Next.js?

Read the raw request body in a route handler and verify the HMAC-SHA256 signature and timestamp before trusting the event, then mark the order paid idempotently.

Can I build my own checkout UI?

Yes. Use the hosted checkout for zero UI work, or drive the API directly and render your own payment screen in your Next.js app.

Ship crypto payments on Next.js.

$699 one-time with code MCSINTRO $999, full source, every v1 update included, 0% platform fees.

Read the docs
Try the live demo