A minimal boilerplate to integrate Dodo Payments with Next.
Follow these steps to set up and run the project.
git clone https://github.com/dodopayments/dodo-next-minimal-boilerplate.git
cd dodo-next-minimal-boilerplate
Obtain the API Key and Webhook Signing Key from your Dodo Payments dashboard while in Test Mode:
- API Key: Get it here
- Webhook Key: Get it here
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
npm install
npm run dev
Your Next js project is now configured with Dodo Payments. Happy coding! 🚀