उपलब्ध SDKs
अपने tech stack से मेल खाने वाला SDK चुनें:TypeScript SDK
TypeScript और Node.js के लिए type-safe integration, promise-based API और auto-pagination के साथ
Python SDK
Python 3.7+ applications के लिए async/await support वाला Pythonic interface
PHP SDK
आधुनिक PHP 8.1+ applications के लिए PSR-4 compliant SDK
Go SDK
context support और strong typing वाला idiomatic Go interface
Ruby SDK
Ruby conventions और best practices का पालन करने वाला elegant Ruby interface
Java SDK
Maven और Gradle support वाला Java 8+ के लिए robust और thread-safe SDK
Kotlin SDK
coroutines, null safety और extension functions वाला modern Kotlin SDK
C# SDK
async Task-based API वाला .NET 8+ के लिए type-safe SDK (Beta)
Rust SDK
Tokio और reqwest पर निर्मित, Rust 1.75+ के लिए strong typing वाला async-first SDK
CLI
अपने terminal से API के साथ इंटरैक्ट करने के लिए Command-line interface
Quick Start
किसी भी SDK के साथ कुछ ही मिनटों में शुरुआत करें:1
Install the SDK
SDK install करने के लिए अपनी language का package manager इस्तेमाल करें
- TypeScript/Node.js
- Python
- PHP
- Go
- Rust
2
Initialize the Client
अपने API key के साथ client configure करें
- TypeScript
- Python
- PHP
- Go
- Rust
3
Make Your First API Call
checkout session या payment create करें
अब आप payments process करने के लिए तैयार हैं! विस्तृत guides और examples के लिए individual SDK pages देखें।
मुख्य Features
सभी backend SDKs में ये मुख्य क्षमताएँ समान हैं। नीचे दिए गए mobile checkout SDKs जानबूझकर अधिक सीमित हैं — उनमें कोई API key नहीं होती और वे कभी API को call नहीं करते:- Type Safety: compile-time safety और बेहतर IDE support के लिए strong typing
- Error Handling: detailed error messages के साथ comprehensive exception handling
- Authentication: environment variable support के साथ simple API key authentication
- Async Support: जहाँ लागू हो, वहाँ modern async/await patterns
- Auto-Pagination: list responses के लिए automatic pagination
- Usage-Based Billing: usage events को track और ingest करने के लिए built-in support
- Testing: development और testing के लिए full sandbox environment support
Mobile Checkout SDKs
यदि आप native payment sheet बनाने के बजाय Dodo का hosted checkout page खोलना चाहते हैं, तो अपने platform के लिए mobile checkout SDK का उपयोग करें। इन चारों में one-call contract समान है:start(...) एक typed CheckoutResult लौटाता है, इनमें से किसी में भी API key नहीं होती, और Apple Pay/Google Pay उसी तरह काम करते हैं जैसे open web पर करते हैं, क्योंकि checkout platform के वास्तविक browser surface (SFSafariViewController / Custom Tabs) में खुलता है, न कि WebView में:
Android
Chrome Custom Tab खोलने वाला Kotlin SDK।
minSdk 23 आवश्यक हैiOS
SFSafariViewController खोलने वाला Swift SDK। iOS 16+ आवश्यक हैReact Native
दोनों native cores पर Turbo Module। React Native 0.76+ आवश्यक है
Flutter
दोनों native cores पर Pigeon channel। Flutter 3.44+ आवश्यक है
Mobile Integration Guide
backend checkout session से callback scheme setup तक का end-to-end mobile payment flow
Command-Line Interface
terminal-आधारित workflows और automation के लिए:CLI
सभी 78 API endpoints के support वाला auto-generated command-line interface
- सहज उपयोग के लिए resource-based command structure
- Multiple output formats (JSON, YAML, pretty, interactive)
- bash, zsh और fish के लिए shell completion
- scripting और CI/CD automation के लिए उपयुक्त
Node.js SDK से Migration
हम Node.js SDK से नए TypeScript SDK पर migrate हो गए हैं। यदि आप legacy Node.js SDK का उपयोग कर रहे हैं, तो अपने integration को update करने के लिए migration guide देखें।
Framework Adapters
हमारे framework adapters के साथ 10 से कम lines of code में integrate करें। हमारे recommended frameworks में से चुनें या सभी supported options देखें।Recommended Frameworks
Next.js
App Router support वाला React-based full-stack framework
Better Auth
built-in integrations वाला Authentication framework
Supabase
Postgres और Auth वाला open source Firebase alternative
Convex
real-time capabilities वाला Backend-as-a-Service
Show other 8+ supported frameworks
Show other 8+ supported frameworks
SvelteKit
Nuxt
Remix
Express
Fastify
Hono
Astro
TanStack
सहायता प्राप्त करना
किसी भी SDK के लिए सहायता चाहिए?- Discord: real-time सहायता के लिए हमारे community server से जुड़ें
- Email: support@dodopayments.com पर हमसे संपर्क करें
- GitHub: संबंधित SDK repository पर issue खोलें
- Documentation: हमारा API reference देखें
योगदान देना
हम अपने सभी SDKs में contributions का स्वागत करते हैं! प्रत्येक repository में guidelines वालीCONTRIBUTING.md file होती है, जिसमें शामिल हैं:
- Bugs report करना
- Features का अनुरोध करना
- Pull requests submit करना
- Locally tests चलाना
- Code style और conventions