Accept Bitcoin Payments in Next.js — 5 Minute Guide
Accept Bitcoin Payments in Next.js — 5 Minute Guide You want to accept crypto in your Next.js app. No third-party custody, no KYC paperwork, no waiting weeks for approvals. Just install a package, add a few routes, and start receiving BTC, ETH, SOL, and more directly to your own wallets. Here's how with @profullstack/coinpay . What You Get Non-custodial — your keys never leave your server 6 chains — BTC, ETH, SOL, POL, BCH, USDC HD wallet derivation — unique address per payment Automatic USD conversion rates Webhook notifications on payment confirmation 1. Install npm install @profullstack/coinpay 2. Create a Payment (API Route) Create app/api/payments/route.ts : import { NextRequest , NextResponse } from ' next/server ' ; const COINPAY_API = ' https://coinpayportal.com/api ' ; const API_KEY = process . env . COINPAY_API_KEY ! ; export async function POST ( req : NextRequest ) { const { amount , currency , metadata } = await req . json (); const res = await fetch ( ` ${ COINPAY_API } /
Continue reading on Dev.to JavaScript
Opens in a new tab



