Skip to main content
Dodo Payments seamless payment integration के लिए भाषा-विशिष्ट best practices और modern features के साथ डिज़ाइन किए गए, कई programming languages के लिए Official SDKs प्रदान करता है।
नवीनतम features और improvements तक पहुँचने के लिए हमेशा SDK का latest version इस्तेमाल करें। सभी Dodo Payments capabilities तक पहुँच सुनिश्चित करने के लिए अपने package manager में नियमित रूप से updates देखें।

उपलब्ध 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
मोबाइल ऐप बना रहे हैं? Android, iOS, React Native और Flutter के लिए नीचे Mobile Checkout SDKs देखें।

Quick Start

किसी भी SDK के साथ कुछ ही मिनटों में शुरुआत करें:
1

Install the SDK

SDK install करने के लिए अपनी language का package manager इस्तेमाल करें
2

Initialize the Client

अपने API key के साथ client configure करें
अपने API keys को environment variables का इस्तेमाल करके हमेशा सुरक्षित रूप से store करें। उन्हें version control में कभी commit न करें।
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
Features:
  • सहज उपयोग के लिए 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 देखें।

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

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
उनके GitHub repositories और contribution guidelines देखने के लिए अलग-अलग SDK pages पर जाएँ।
अंतिम संशोधन 31 जुलाई 2026