SDKs & Libraries
TypeScript, Python, Go, PHP, Java, Kotlin, C#, Ruby, और Rust के लिए आधिकारिक backend SDKs। ये libraries API requests, authentication और error handling को सरल बनाती हैं, जिससे आप बेहतरीन payment experiences बनाने पर ध्यान केंद्रित कर सकते हैं।
Mobile Checkout SDKs
Native app बना रहे हैं? Dodo का hosted checkout खोलें और Android, iOS, React Native और Flutter पर, एक ही call में typed result प्राप्त करें। इनमें कोई API key नहीं होती।
Environment URLs
- Test Mode:
https://test.dodopayments.com - Live Mode:
https://live.dodopayments.com
Test Mode बनाम Live Mode के बारे में अधिक जानें।
API Key Management और Authentication
1
Access API Keys
अपनी keys को manage करने के लिए dashboard में Developer → API Keys पर जाएँ।
2
Generate a New Key
Add API Key चुनें, एक वर्णनात्मक नाम दें और write access कॉन्फ़िगर करें:
- Enable write access (checked): सभी API operations के लिए पूर्ण read और write permissions
- Enable write access (unchecked): केवल read-only access - केवल data fetch कर सकता है (payments, subscriptions, customers, products)। resources को create या modify नहीं कर सकता।
3
Store Your Key Securely
Generated key को तुरंत copy करें और सुनिश्चित करें कि इसे सुरक्षित रूप से store किया गया है।
4
Authenticate Your API Requests
सभी requests को authenticate करने के लिए अपनी API keys का उपयोग करें। निम्नलिखित authorization format लागू करें:
Response Format
Rate Limits
हमारा API burst protection के साथ dual-window rate limiting system का उपयोग करता है। Limits आपकी authentication method और business tier के आधार पर लागू की जाती हैं।Default Limits (Tier 0)
Business Tiers
जिन businesses को API की अधिक आवश्यकता होती है, उनके लिए higher rate limits उपलब्ध हैं:Unauthenticated Requests
मान्य authentication headers के बिना requests को IP address के आधार पर rate limited किया जाता है:Rate Limit Headers
इन response headers के साथ अपने usage की निगरानी करें:X-RateLimit-Limit- अनुमत अधिकतम requestsX-RateLimit-Remaining- वर्तमान window में शेष requestsX-RateLimit-Reset- rate limit reset होने का समय
जब आप rate limits पार कर जाते हैं, तो API एक
429 Too Many Requests response लौटाता है। अपनी retry logic में exponential backoff लागू करें।Error Handling
Errors को प्रभावी ढंग से manage करने के लिए, विस्तृत guidance हेतु Error Codes और Transaction Failures sections देखें।Error Codes
Errors और उनके resolutions की विस्तृत जानकारी प्राप्त करें।
Transaction Failures
सामान्य transaction issues और उनके solutions की जानकारी प्राप्त करें।
Webhooks
Payment events के बारे में real-time notifications प्राप्त करें। Setup instructions के लिए हमारी Webhook Guide देखें।Webhook Guide
Real-time notifications और event handling के लिए webhooks सेट अप करें।
Related Developer Guides
API का उपयोग करके key features implement करने का तरीका समझने के लिए हमारी comprehensive guides देखें:One-time Payments Integration
अपने application में one-time payments, checkout sessions और payment links integrate करने का तरीका जानें
Subscription Integration
Subscriptions implement करने, plans manage करने और subscription lifecycle events handle करने की complete guide
Usage-Based Billing
Metered billing और consumption-based pricing models के लिए meters और usage events सेट अप करें
Webhooks
Real-time notifications प्राप्त करें और webhook events के साथ workflows automate करें
Checkout Sessions
Full customization और advanced features के साथ secure, hosted checkout experiences बनाएँ