DocsNext.js
Next.js
Install and configure PayKit for Next.js.
Installation
Install the PayKit CLI globally:
Setup
Initialize PayKit in your project:
This creates a .paykit/config.json
file in your project root.
Development
Start the development server:
The checkout interface will be available at http://localhost:3001
.
Configuration
Edit this file to customize your payment logic and test different scenarios.