
Checkout Sessions API
Checkout sessions को programmatically बनाएं।
Preview Checkout
सेशन बनाने से पहले मूल्य निर्धारण और करों की गणना करें।
Payment Methods
समर्थित payment methods और configuration।
Integration Guide
Checkout को integrate करने के लिए step-by-step guide।
Checkout Sessions API के माध्यम से बनाए गए Checkout links reusable नहीं होते। वे 24 घंटे बाद expire हो जाते हैं, या यदि
confirm: true सेट है तो 15 मिनट बाद expire होते हैं। प्रत्येक ग्राहक और प्रत्येक payment attempt के लिए नया session बनाएं।Adaptive Currency
Adaptive Currency ग्राहकों को अपनी पसंद की local currency में payment करने देती है, जिससे trust और conversion rates बेहतर होते हैं। सक्षम होने पर checkout में customers को currency selector दिखाई देता है। Price live FX rates पर उनकी चुनी हुई currency में convert हो जाती है। यदि product में Purchasing Power Parity सक्षम है, तो base price के बजाय PPP-adjusted price convert होती है। यदि Charm Pricing सक्षम है, तो converted amount को 49.99 जैसे साफ़ ending पर round किया जाता है।
Adaptive Currency
समर्थित currencies, conversion fees और refund handling।
Multi-Language Checkout
Checkout 22 languages को support करता है। ग्राहक सीधे page पर languages बदल सकते हैं और UI text, labels तथा system messages localized होते हैं।
Supported Languages
किसी specific language को force करने के लिए checkout session बनाते समय
customization.force_language सेट करें। विवरण के लिए Checkout Sessions API देखें।
Automatic Tax Calculation
GST, VAT और sales tax requirements के compliance को सुनिश्चित करते हुए, taxes की calculation customer के billing location के आधार पर automatically की जाती है। जहां लागू हो, tax rules customer के country और region के आधार पर लागू होते हैं। ग्राहक अपना country बदलने या address update करने पर tax amount automatically update होता है। Payment से पहले final tax breakdown स्पष्ट रूप से दिखाया जाता है।Business Tax ID Support
B2B transactions के लिए checkout ग्राहकों को अपना Business Tax ID (जैसे VAT या GST number) दर्ज करने देता है। दर्ज किए जाने पर tax ID को real-time में validate किया जाता है और लागू tax exemptions या reverse-charge rules automatically लागू होते हैं।
Discount Codes
ग्राहक dashboard में आपके बनाए discount या promo codes लागू कर सकते हैं। Discount तुरंत validate होता है और updated price दिखाई जाती है। जब किसी product पर Purchasing Power Parity enabled हो, तो discount base price के बजाय PPP-adjusted price पर लागू होता है।
discount_codes अधिकतम 20 codes की array स्वीकार करता है, जो क्रम से stack होते हैं। Singular discount_code field deprecated है, लेकिन backward compatibility के लिए अभी भी काम करता है।Discount Codes
Discount codes बनाएं और manage करें।
Validate Discount by Code
Code names का उपयोग करके discounts को look up और validate करें।
Smart Address Collection
Checkout speed, accuracy और global coverage के बीच संतुलन बनाने के लिए flexible address entry support करता है।Options
Minimal Address Mode
अधिकतम conversion के लिए checkout friction कम करने हेतु minimal address collection enable करें। जबminimal_address को true पर set किया जाता है, तो checkout केवल ये collect करता है:
- Country — tax determination के लिए हमेशा required
- ZIP/Postal code — केवल उन regions में जहां sales tax, VAT या GST calculation के लिए आवश्यक हो

Full address collection default है। उन digital products और SaaS flows के लिए
minimal_address enable करें जहां complete billing details required नहीं हैं।Phone Number Collection
यह नियंत्रित करें कि checkout पर phone number field दिखाई दे और क्या वह required हो।Custom Fields
Custom form fields define करके checkout के दौरान ग्राहकों से अतिरिक्त information collect करें। यह company name, team size, referral source या किसी अन्य business-specific data को collect करने के लिए उपयोगी है।Available Field Types
Example
Customer responses webhook payloads (
payment.succeeded, subscription.active) और custom_field_responses array के माध्यम से API responses में automatically शामिल होते हैं। आप प्रत्येक checkout session में अधिकतम 5 custom fields define कर सकते हैं।Custom Fields Guide
Custom field configuration और responses तक पहुंच।
Privacy Policy & Terms Acceptance
कानूनी और compliance transparency सुनिश्चित करने के लिए:- Privacy Policy और Buyer Terms links checkout पर स्पष्ट रूप से प्रदर्शित किए जाते हैं
- Payment पूरा करने से पहले ग्राहक स्पष्ट रूप से इन्हें acknowledge करते हैं
यह GDPR compliance सहित global consumer protection और data privacy requirements को पूरा करने में सहायता करता है।
Product Collections
Product Collections एक unified checkout experience enable करते हैं, जिसमें ग्राहक एक ही checkout में कई संबंधित products (जैसे Starter, Pro, Enterprise plans) को देख और select कर सकते हैं। Collection का उपयोग करते समय collection के सभी active products प्रदर्शित होते हैं। पहला product pre-selected होता है और ग्राहक चयन करने से पहले options की तुलना कर सकते हैं।Product Collections
Product collections बनाएं और manage करें।
Checkout Session Configuration
Checkout Sessions API का उपयोग करके checkout behavior नियंत्रित करें:Payment के बाद ग्राहक आपके
return_url पर redirect होते हैं और query parameters automatically append किए जाते हैं — इनमें payment_id या subscription_id, status, email और license_key (यदि लागू हो) शामिल हैं। पूरी list के लिए Checkout Sessions guide देखें।Checkout Sessions API
Checkout sessions के लिए complete API reference।
Checkout Integration Guide
Checkout को integrate करने के लिए step-by-step guide।
Theme Customization
customization.theme_config parameter का उपयोग करके checkout page के appearance को अपने brand से match करने के लिए customize करें। Light और dark modes के लिए colors, fonts, border radius और button text configure करें।
यह section server-side API को cover करता है, जो bg_primary जैसे property names का उपयोग करता है। Session पर set की गई theme hosted, overlay और inline checkout पर लागू होती है। Checkout SDK का client-side themeConfig option, जो bgPrimary जैसे property names का उपयोग करता है, deprecated है। Overlay Checkout देखें।

Design & Theme Customization
Pre-built themes, typography, colors और live preview के साथ dashboard से themes को visually configure करें।
Theme Configuration Options
Color Configuration (Light/Dark Mode)
प्रत्येक mode इन color properties को support करता है:सभी color fields standard CSS color formats स्वीकार करते हैं:
- Hex:
#fff,#ffffff,#ffffffff - RGB/RGBA:
rgb(255, 255, 255),rgba(255, 255, 255, 0.5) - HSL/HSLA:
hsl(120, 100%, 50%),hsla(120, 100%, 50%, 0.5) - Named colors:
red,blue,transparent