API Documentation & SDKs
Code Integration Tutorial
This tutorial demonstrates integrating Dodo Payments into a Next.js app using the Node.js SDK for One-Time and Subscription Products. It utilizes the Dodo Next.js Minimal Boilerplate and covers essential steps to get started efficiently.
Prerequisites
Before you begin, make sure you have:
- Created a Dodo Payments account
- Obtained your API keys
- Basic knowledge of Next.js and React
- Node.js installed (v14 or higher)
Boilerplate Setup
Clone our Next.js boilerplate to get started quickly:
The boilerplate includes all necessary dependencies and basic setup for Dodo Payments integration.
Integration Options
Choose your integration path:
One-Time Payment Product Integration
Learn how to implement one-time payments in your application:
Key Steps
Subscription Payment Product Integration
Learn how to implement subscription payments:
Key Steps
Webhook Integration
Set up webhooks to handle asynchronous events:
Testing
Before going live:
- Use test API keys
- Test with test card numbers
- Verify webhook handling
- Test error scenarios
Common Integration Issues
Next Steps
API Reference
Explore all available endpoints
SDKs
View SDK documentation
Webhooks
Learn about webhook events
Testing
Test your integration
Need Help?
- Join our Developer Community
- Check our Technical FAQs
- Contact Developer Support