moneydevkit-nextjs
Installation
SKILL.md
MoneyDevKit for Next.js
Overview
MoneyDevKit (MDK) is an SDK for embedding Lightning-powered Bitcoin payments in Next.js App Router apps. It provides:
- Client hooks (
useCheckout,useProducts,useCheckoutSuccess) for creating and verifying checkouts - A hosted
<Checkout>component that renders a full payment page with QR code - A server route handler that proxies MDK API calls
- A Next.js plugin (
withMdkCheckout) that configures bundling
Two checkout types: AMOUNT (fixed/custom amounts for donations, tips) and PRODUCTS (product-based with fixed or pay-what-you-want pricing).
Two UI paths: hosted checkout (redirect to <Checkout> component) or custom UI (call MDK handlers directly, render your own QR code, poll for payment).