Money Dev Kit
Lightning checkout on Vercel
A trimmed-down version of the Bitcoin IBD landing page that focuses on the checkout flow. Trigger a session, land on the hosted checkout, and confirm payment on the success screen.
We create a checkout session with the values above and redirect to /checkout/[id] using useCheckout.
Need the full landing page treatment? Check bitcoin-ibd for a fancier UI; this demo keeps things lean for CI and Vercel deployment.
What to expect
The app is self-contained: the API route lives under /api/mdk, the checkout UI renders under /checkout/[id], and the success page usesuseCheckoutSuccess() to double-check payment state.
- Creates a checkout session from the client and routes to /checkout/[id]
- Server route is exposed at /api/mdk using the library's built-in handler
- Success page verifies payment state with useCheckoutSuccess()
- Wrapped with the Next.js plugin so Lightning binaries stay externalized on Vercel
Success path
After payment, the success page thanks the customer by name and surfaces checkout metadata so you can pipe it into provisioning logic.