Skip to content

dodopayments/dodo-nextjs-minimal-boilerplate

Repository files navigation

Next - Dodo Payments Minimal Boilerplate

A minimal boilerplate to integrate Dodo Payments with Next.

🚀 Getting Started

Follow these steps to set up and run the project.

1️⃣ Clone the Repository

git clone https://github.com/dodopayments/dodo-next-minimal-boilerplate.git
cd dodo-next-minimal-boilerplate

2️⃣ Get API Credentials

Obtain the API Key and Webhook Signing Key from your Dodo Payments dashboard while in Test Mode:

3️⃣ Configure Environment Variables

Create a .env file in the root directory (where .env.example exists):

touch .env

Copy the contents from .env.example and update the following values with your keys from Dodo Payments:

DODO_API_KEY_TEST=your_api_key_here
DODO_PAYMENTS_WEBHOOK_KEY=your_webhook_key_here

4️⃣ Install Dependencies

npm install

5️⃣ Run the Project

npm run dev

🎉 You're all set!

Your Next js project is now configured with Dodo Payments. Happy coding! 🚀

About

Minimal boilerplate to integrate Dodo Payments with NextJS

Topics

Resources

Stars

Watchers

Forks