Skip to content

nijipe/example-nextjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nijipe Next.js Example

Next.js example app for accepting Bitcoin and Lightning payments with Nijipe.

This project demonstrates how to integrate Nijipe into a Next.js (App Router) application. It covers:

  • Creating invoices via API route
  • Redirecting to Nijipe Hosted Checkout
  • Handling success and cancel callbacks
  • Securely verifying incoming webhooks

Quick Start

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Copy .env.example to .env.local and add your API keys:
    cp .env.example .env.local
  4. Start the development server:
    npm run dev

Webhooks

To test webhooks locally, use the Nijipe CLI:

nijipe listen --forward-to localhost:3000/api/nijipe/webhook

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors