---
title: "Simple Online Store with Stripe"
description: "A responsive online store built with Next.js and Stripe for selling a single product. "
url: "https://vercel.com/templates/next.js/simple-online-store-with-stripe"
links:
  repository: "https://github.com/vercel/nextjs-stripe-template"
  demo: "https://nextjs-stripe-template.vercel.sh/"
  deploy: "https://vercel.com/new/clone?demo-title=Simple+Online+Store+with+Stripe&demo-description=A+responsive+online+store+built+with+Next.js+and+Stripe+for+selling+a+single+product.+&demo-url=https%3A%2F%2Fnextjs-stripe-template.vercel.sh%2F&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F4tqNKAiM3E6HbLxV2opDvd%2F912c03fc9c947653fc62556e0e1ecf1b%2FScreenshot_2025-09-24_at_5.avif&project-name=Simple+Online+Store+with+Stripe&repository-name=simple-online-store-with-stripe&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnextjs-stripe-template&from=templates&skippable-integrations=1&products=%5B%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22other%22%2C%22productSlug%22%3A%22stripe%22%2C%22integrationSlug%22%3A%22stripe%22%7D%5D&root-directories=List+of+directory+paths+for+the+directories+to+clone+into+projects&project-names=Comma+separated+list+of+project+names%2Cto+match+the+root-directories"
---

# Simple Online Store with Stripe

A responsive online store built with Next.js and Stripe for selling a single product.

# Simple Online Store with Stripe

A responsive online store built with Next.js and Stripe for selling a single product. Features a clean design with product showcase, secure checkout, and payment processing.

## Tech Stack

- **Framework**: Next.js 14 with App Router
- **Styling**: Tailwind CSS v4
- **UI Components**: shadcn/ui
- **Payments**: Stripe
- **TypeScript**: Full type safety
- **Deployment**: Vercel (recommended)

## Getting Started

Click the "Deploy" button to clone this repo, create a new Vercel project, setup the Stripe integration, and provision a new Stripe sandbox:

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnextjs-stripe-template&project-name=nextjs-stripe-template&repository-name=nextjs-stripe-template&demo-title=Stripe+%26+Next.js+Starter+Template&demo-description=A+template+for+building+full-stack+Stripe+applications+using+Next.js+and+Vercel&demo-url=https%3A%2F%2Fnextjs-stripe-template.vercel.sh%2F&demo-image=https%3A%2F%2Fimages.stripeassets.com%2Ffzn2n1nzq965%2F4vVgZi0ZMoEzOhkcv7EVwK%2F74a13565998b4c56003c5ddc5aae43ce%2Ffavicon.png%3Fw%3D180%26h%3D180&products=%5B%7B%22integrationSlug%22%3A%22stripe%22%2C%22productSlug%22%3A%22stripe%22%2C%22protocol%22%3A%22other%22%2C%22type%22%3A%22integration%22%7D%5D)

### Prerequisites

- Node.js 20+
- A Stripe account (Vercel integration recommended)
- Vercel account (optional, for deployment)

### Installation

1. **Install dependencies**:
   ```bash
   pnpm install
   ```

2. **Set up Stripe**:

### Option 1: Use Vercel Stripe integration

Use "Create Sandbox" or "Link Existing Account" for the Vercel Stripe integration.

### Option 2: Setup Stripe manually

- Create a Stripe account at [stripe.com](https://stripe.com)
- Get your API keys from the Stripe Dashboard
- Add the following environment variables to your Vercel project:
  - `STRIPE_SECRET_KEY` - Your Stripe secret key
  - `NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY` - Your Stripe publishable key
- Call `vercel env pull` or update `.env.local` file manually

3. **Run the development server**:
   ```bash
   pnpm dev
   ```

4. **Open** [http://localhost:3000](http://localhost:3000) in your browser

## Deployment

### Deploy to Vercel

1. **Push to GitHub**
2. **Connect to Vercel**:
   - Go to [vercel.com](https://vercel.com)
   - Import your GitHub repository
   - Add your Stripe environment variables
   - Deploy!

### Environment Variables

Make sure to add these environment variables in your Vercel project settings either using Vercel Stripe integration or manually:

- `STRIPE_SECRET_KEY`
- `NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY`

## License

This project is open source and available under the [MIT License](https://github.com/vercel/nextjs-stripe-template/tree/main/LICENSE).

---

Built with ❤️ using v0 by Vercel

## Related Templates

### [Stripe Subscription Starter](https://vercel.com/templates/next.js/subscription-starter)

The all-in-one subscription starter kit for high-performance SaaS applications, powered by Stripe, Supabase, and Vercel.

## Related Integrations

### [Stripe](https://vercel.com/marketplace/stripe)

A fully integrated suite of financial and payments products.

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
