Razorpay Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

18 real interview questions asked at Razorpay. Covers System Design, Domain, Behavioral, Product / User Stories, React / Next.js SSR, React / Architecture, Node.js / Queue, Node.js / Architecture, Security / Authentication, Java / Security, Node.js / Race Condition, Architecture / API Design, Kafka / Ordering, SQL / PostgreSQL. Reported by engineers who went through the Razorpay process.

Questions Interview Guides
18 questions
579 engineers asked
955 upvotes

System Design (3)

Razorpay Hard System Design round KafkaRedisPostgreSQL

Design Razorpay's payment retry system. When a payment fails due to a transient error (bank timeout, network blip), how do you retry safely without double-charging the customer? Cover: idempotency keys, exponential backoff with jitter, dead-letter queues, and reconciliation with bank statements.

↑ 72 upvotes · 71 engineers asked this · SDE2
Razorpay Hard System Design round KafkaPostgreSQLRedis

Design Razorpay's payout system (RazorpayX). Businesses send bulk payouts to thousands of vendor accounts simultaneously. Cover: batching, bank API rate limits, real-time status tracking, and failure handling.

↑ 61 upvotes · 39 engineers asked this · SDE2
Razorpay Hard System Design round KafkaRedisPostgreSQL

Design Razorpay's dashboard for merchants. A merchant wants to see real-time revenue, transaction success rates, and refund trends. How do you aggregate millions of transactions into live charts with under 5-second latency?

↑ 49 upvotes · 30 engineers asked this · SDE2

Domain (3)

Razorpay Medium Technical round RESTDistributed Systems

Explain the difference between a payment gateway, payment processor, and acquiring bank. How does money actually move when a customer pays with a credit card on a Razorpay-powered checkout? Walk through each hop end to end.

↑ 39 upvotes · 38 engineers asked this · SDE2
Razorpay Medium Technical round RESTJava

Explain the UPI payment flow end-to-end: from user entering a VPA to money credited. What is NPCI's role? What happens when the beneficiary bank is down? How does Razorpay handle UPI collect vs UPI intent flows?

↑ 51 upvotes · 32 engineers asked this · SDE1
Razorpay Hard Technical round PostgreSQLJavaKafka

How do you implement a distributed ledger for financial transactions? Explain double-entry bookkeeping in code, why you never update a balance directly, and how you use event sourcing to reconstruct the current balance from a transaction log.

↑ 56 upvotes · 35 engineers asked this · SDE2

Behavioral (1)

Razorpay Medium HR round

Describe a production incident you were part of. Walk through the detection, triage, resolution, and post-mortem. What monitoring or process changes did you introduce afterwards?

↑ 48 upvotes · 29 engineers asked this · SDE2

Product / User Stories (1)

Razorpay Medium Technical round 3–6 Years

How do you write a good user story? Walk through an example for a payments feature.

↑ 79 upvotes · 62 engineers asked this · Product Owner

React / Next.js SSR (1)

Razorpay Hard Scenario round 4-7 years

Your Next.js app fetches user-specific data in getServerSideProps. The page load time is 3.2 seconds. CDN cache hit rate is 0%. Product team asks you to make it faster without losing personalization. What do you do?

↑ 57 upvotes · 25 engineers asked this · SDE2

React / Architecture (1)

Razorpay Hard System Design round 5-8 years

You're building a feature flag system in React. Flags come from an API and affect which components render. How do you implement this so: flags load once at startup, components don't re-render when irrelevant flags change, and engineers can easily wrap any component.

↑ 71 upvotes · 39 engineers asked this · SDE2

Node.js / Queue (1)

Razorpay Hard Scenario round 4-7 years

A Node.js microservice processes background jobs from a Redis queue. Under load, jobs fail and retry endlessly, creating a death loop that blocks the queue. How do you implement a proper retry strategy with dead letter handling?

↑ 73 upvotes · 41 engineers asked this · SDE2

Node.js / Architecture (1)

Razorpay Hard System Design round 5-9 years

Design a rate limiter in Node.js that allows 100 requests per user per minute. It must work across multiple Node.js instances without a central Redis lock causing a bottleneck.

↑ 77 upvotes · 45 engineers asked this · Staff

Security / Authentication (1)

Razorpay Hard Scenario round 4-7 years

Your JWT tokens are being stolen from localStorage and used in attacks. A developer suggests using httpOnly cookies instead. Describe the complete migration, including risks and security tradeoffs.

↑ 70 upvotes · 18 engineers asked this · SDE2

Java / Security (1)

Razorpay Hard System Design round 4-8 years

Your REST API uses JWT. A user changes their password. How do you immediately invalidate their existing JWT tokens?

↑ 19 upvotes · 27 engineers asked this · SDE2

Node.js / Race Condition (1)

Razorpay Hard Scenario round 4-8 years

Your service processes payments. During load testing at 5x normal traffic, you notice 0.01% of transactions are charged twice. At scale that's 1000 users per day. How do you find and fix this?

↑ 21 upvotes · 9 engineers asked this · SDE2

Architecture / API Design (1)

Razorpay Hard Screening round 3-6 years

What is idempotency? Why is it critical for payment APIs and how do you implement it?

↑ 68 upvotes · 16 engineers asked this · SDE2

Kafka / Ordering (1)

Razorpay Medium Technical round 3-6 yearsKafka

Kafka guarantees message order within a partition but not across partitions. For a payments system, why does this matter, and how would you key messages to preserve per-account ordering?

↑ 24 upvotes · 14 engineers asked this · SDE2

SQL / PostgreSQL (1)

Razorpay Medium Technical round 3-6 yearsPostgreSQL

In PostgreSQL, what is the difference between SERIALIZABLE and READ COMMITTED isolation levels for a transaction that reads then updates an account balance?

↑ 20 upvotes · 9 engineers asked this · SDE2

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

Razorpay interview guides by role

Razorpay SDE2 Guide

Razorpay questions by technology

Razorpay Kafka Razorpay PostgreSQL

More companies

Amazon Google Microsoft Flipkart Swiggy Meta Apple Netflix Uber Airbnb Stripe PhonePe Paytm Zomato Salesforce Oracle Adobe LinkedIn Atlassian Accenture Deloitte Wipro Infosys TCS Capgemini PayU General Anthropic OpenAI TikTok JPMorgan Walmart Spotify DoorDash Goldman Sachs Revolut Canva Capital One Lyft SAP Siemens Shopify Grab Cognizant LTIMindtree Myntra Hotstar Twitter Snowflake

Frequently asked questions

Design Razorpay's payment retry system.
Design Razorpay's payment retry system. When a payment fails due to a transient error (bank timeout, network blip), how do you retry safely without double-charging the customer? Cover: idempotency keys, exponential backoff with jitter, dead-letter queues, and reconciliation with bank statements.
Explain the difference between a payment gateway, payment processor, and acquiring bank.
Explain the difference between a payment gateway, payment processor, and acquiring bank. How does money actually move when a customer pays with a credit card on a Razorpay-powered checkout? Walk through each hop end to end.
Design Razorpay's payout system (RazorpayX). Businesses send bulk payouts to thousands of vendor accounts simultaneously. Cover: batching, bank API rate limits, real-time status tracking, and failure handling.
Design Razorpay's payout system (RazorpayX). Businesses send bulk payouts to thousands of vendor accounts simultaneously. Cover: batching, bank API rate limits, real-time status tracking, and failure handling.
Explain the UPI payment flow end-to-end: from user entering a VPA to money credited. What is NPCI's role? What happens when the beneficiary bank is down? How does Razorpay handle UPI collect vs UPI intent flows?
Explain the UPI payment flow end-to-end: from user entering a VPA to money credited. What is NPCI's role? What happens when the beneficiary bank is down? How does Razorpay handle UPI collect vs UPI intent flows?
Describe a production incident you were part of. Walk through the detection, triage, resolution, and post-mortem. What monitoring or process changes did you introduce afterwards?
Describe a production incident you were part of. Walk through the detection, triage, resolution, and post-mortem. What monitoring or process changes did you introduce afterwards?