GitHub Repository
Complete Expo + React Native + Dodo Payments boilerplate
Overview
A production-ready boilerplate for integrating Dodo Payments into Expo/React Native applications. This template includes checkout session creation, payment handling, and proper TypeScript configuration to help you start accepting payments in your mobile app quickly.This boilerplate uses Expo SDK with TypeScript and includes example implementations for checkout sessions and payment processing.
Prerequisites
- Node.js 18+
- Expo CLI or EAS CLI
- Dodo Payments account (API key from dashboard)
- iOS Simulator or Android Emulator (or physical device)
Quick Start
Get Your API Credentials
Obtain your credentials from the Dodo Payments dashboard in Test Mode:
- API Key: Navigate to Developer → API Keys in your dashboard
Configure Environment Variables
Create a Add your Dodo Payments credentials:
.env file in the root directory:.env
What’s Included
The boilerplate comes with pre-configured essentials:Checkout Integration
Example implementation for creating and handling checkout sessions
Payment Handling
Complete payment flow with success and error handling
TypeScript Support
Full TypeScript configuration with proper type definitions
Expo Router
Navigation setup with Expo Router for seamless routing
Project Structure
Next Steps
Once you have the boilerplate running:Create Your Products
Add products in your Dodo Payments dashboard to enable checkout functionality.
Test on Real Devices
Test the payment flow on physical devices to ensure everything works correctly.
Building for Production
Additional Resources
Mobile Integration Guide
Detailed guide for implementing payments in mobile apps
React Native Integration
React Native specific integration documentation
Integration Guide
Detailed guide for implementing one-time payments
API Reference
Explore the full Dodo Payments API documentation
Support
Need help with the boilerplate?- Join our Discord community for questions and discussions
- Check the GitHub repository for issues and updates
- Contact our support team for assistance