Build beautiful custom checkout experiences with Next.js 15, Stripe and Shadcn/ui.
Custom checkout page with Stripe integration
- ⚡️ Next.js 15 with App Router and React Server Components
- 💳 Stripe Integration with custom checkout flow
- 🔒 Type Safety with TypeScript
- 🎨 Modern UI with Tailwind CSS and Shadcn UI
- 🔐 Secure Payments handling with Stripe's latest SDK
- 📱 Responsive Design for all devices
- ✨ Modern Development features with Turbopack
- Node.js 18.x or later
- PNPM package manager
- Stripe account and API keys
-
Clone the repository:
git clone https://github.com/soufianeelc/nextjs-stripe-custom-checkout.git cd nextjs-stripe-custom-checkout
-
Install dependencies:
pnpm install
-
Set up environment variables:
cp .env.example .env.local
Fill in your Stripe API keys and other required environment variables in
.env.local
-
Start the development server:
pnpm dev
Visit http://localhost:3000
to see the application in action.
src/
├── app/ # Next.js App Router pages and layouts
├── components/ # Reusable UI components
├── features/ # Feature-specific components and logic
└── lib/ # Utility functions and configurations
- Framework: Next.js 15
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: Shadcn UI, Radix UI
- Payment Processing: Stripe
- Form Validation: Zod
- Icons: Phosphor Icons, Lucide React
- Development: Turbopack, ESLint
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes
- Run tests and linting:
pnpm lint
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/your-feature-name
- Submit a pull request
This project is open source and available under the MIT License.
If you find this project helpful and want to support its development, you can buy me a coffee!
For questions or support, please open an issue in the GitHub repository.