The Razorpay Success Story: How Two IIT Engineers Built India’s Payment Infrastructure From a Parent’s House in Jaipur

The Razorpay success story starts with a crowdfunding website and a problem that stopped it cold.

In 2014, Harshil Mathur and Shashank Kumar were trying to build a platform to collect online donations for a cause. Simple enough idea. Except when they tried to integrate payment collection, they ran into a wall that thousands of Indian entrepreneurs had already run into before them and would continue running into for years afterward.

The payment gateways available at the time were built for large enterprises. The documentation was opaque, the onboarding process took weeks of back-and-forth with banks, the APIs were badly designed, and the technical integration required for a small startup was disproportionately complex relative to the actual problem being solved. What should have been a few lines of code became a multi-week project.

Harshil was a mechanical engineer from IIT Roorkee who had been working at Schlumberger in the Middle East for nine months before quitting. Shashank had studied at IIT Roorkee as well and was working at Microsoft in the US. Both were the kind of engineers who had been coding since school, who had built the software development section of their college together, who could look at a bad API and immediately understand both why it was bad and what a good one would look like.

They looked at the Indian payment gateway landscape in 2014 and saw something that was simultaneously genuinely terrible and genuinely important. The digital economy in India was beginning to accelerate. More businesses were going online. The payment infrastructure supporting that transition was stuck in a design paradigm built for a different era and a different kind of customer.

They stopped working on the crowdfunding project. They started working on fixing the infrastructure itself.


Building From a Parent’s House

The first version of Razorpay was built in Jaipur, from Harshil’s parents’ home.

This was not a romantic choice. It was a practical one. Harshil’s cost of living was zero. The startup ecosystem in Jaipur was small and close-knit, which meant early customers were accessible without expensive acquisition. The burn rate was low enough to survive on the seed funding they could realistically raise before having built anything worth showing a bank.

Harshil has described the early period in Jaipur as formative precisely because the constraints were so real. You cannot blitzscale from your parents’ house in a Tier 2 city. You learn to do more with less. You talk to customers because marketing budgets do not exist. You iterate quickly because user feedback is your only product signal.

The first product was not the general payment gateway that Razorpay would become. It was a payments system specifically designed for schools to collect fees digitally. Harshil and Shashank identified education as an underserved vertical, saw that schools were handling enormous transaction volumes entirely in cash or cheque, and built a product for them.

Then they went to sell it. They rode motorbikes to schools across Jaipur and pitched their system. For three to four months, almost every school said no. They were not aware of or had not witnessed the benefit of digital payments. The one school that said yes was one out of dozens of attempts.

They were close to shutting the company down.

What saved them was not a sale they made. It was adoption they did not engineer. A few startups from Startup Oasis, a Jaipur incubation center, started using the payment gateway on their own without Razorpay actively selling to them. These were startup founders who understood technology, recognized a good API when they encountered one, and started integrating it without being pitched.

The signal was unmistakable. The right customers were not the schools. The right customers were the people who could evaluate a developer-first payment API on its technical merits and immediately understand its value. That was the Indian startup ecosystem, and it was growing fast.


YC and the Clarity It Forced

In 2015, Razorpay became only the second India-focused startup accepted to Y Combinator. The first had been Clearbit. The acceptance required Harshil and Shashank to produce the clearest possible answers to questions they had been avoiding: how do you differentiate, how do you acquire market share, how big is this market, where will you be in five years.

Harshil has described the YC application itself as valuable independent of the acceptance, because it forced a precision of thinking that the daily grind of building a startup does not naturally produce. But the program itself was another level of intensity entirely. He described working 20-hour days throughout the three months: attending YC sessions and dinners during the day, supporting Indian customers late into the night from the US, trying to absorb everything the program offered while running an actual product across a ten-and-a-half-hour time difference.

The YC network gave Razorpay something that money alone could not buy: credibility with Indian banks, which were the key gatekeepers to actually processing payments. Banks needed to trust you with their customers’ financial transactions. A young startup with no track record asking a bank for a partnership to process payments was asking the bank to take on regulatory and reputational risk for uncertain return.

The $120,000 seed funding from YC helped. The YC brand helped more. The Series A of $9 million from Tiger Global and Matrix Partners that followed helped most, because it turned Razorpay from a scrappy startup into a venture-backed company with institutional investors who had reputations to protect and incentives to ensure the company operated correctly.

But even with that, the early bank relationships required a specific kind of persistent personal selling. Harshil and Shashank approached close to 100 banks. Almost all said no. When a senior banker at a private bank finally agreed to partner with them, he demanded a security deposit of approximately ₹25 lakh before moving forward. The founders did not have it. Shashank’s grandfather stepped in and provided the funds. Without that family support at a critical moment, the partnership would have collapsed.

The first bank relationship unlocked everything. Once one bank had validated them, others were more willing to consider the conversation. The compliance and security infrastructure that the first partnership forced them to build became the foundation that all subsequent bank relationships rested on.


The Developer-First Bet and What It Unlocked

Razorpay’s fundamental product positioning was developer-first. This sounds obvious now but was a genuine strategic choice in 2014 when the Indian payment gateway market was oriented almost entirely toward enterprise sales teams, legacy financial institutions, and large merchants.

The developer-first approach meant several specific things. Clean, well-documented APIs that a developer could integrate in hours rather than weeks. A sandbox environment where developers could test integrations without touching real money. Transparent pricing rather than the negotiated, opaque fee structures that enterprise gateways typically used. A self-service onboarding flow that let a startup get approved and live within days rather than waiting for a bank’s enterprise sales cycle.

Shashank’s framing was direct: they wanted to make payments as easy as integrating a few lines of code. The reference point was not the Indian payment gateway market but what Stripe was doing in the US, building payments infrastructure that developers actually enjoyed working with rather than grudgingly accepted.

The developer community is a specific and powerful distribution channel for infrastructure products. Developers talk to each other. They share tools in Slack communities, in GitHub repositories, in Hacker News comments, in startup forums. When a tool is genuinely good, the word spreads through professional networks without requiring a marketing budget. The first customers from Startup Oasis in Jaipur were the proof of concept for this channel. The YC alumni network extended it internationally.

By the time Razorpay launched publicly and the wider Indian startup ecosystem started adopting it, the product had already been battle-tested with real customers whose feedback had been incorporated iteratively. The documentation was genuinely good because Harshil and Shashank had been refining it based on the questions developers actually asked. The API worked as described because the edge cases had been encountered and fixed.

The downstream consequence of winning the developer community was capturing the startup ecosystem. Indian startups used Razorpay not because it was the cheapest option but because it was the easiest option to integrate and the most reliable in production. As those startups grew from small companies to significant businesses, their payment volumes grew with them. Razorpay’s revenue grew with its customers’ success.


Demonetization and the Inflection That Changed Everything

On November 8, 2016, Prime Minister Narendra Modi announced the demonetization of ₹500 and ₹1000 notes, which together represented approximately 86% of all currency in circulation in India. The explicit goals were to reduce black money, counterfeit currency, and cash-based tax evasion.

The immediate effect on the economy was painful. Cash transactions collapsed overnight. People stood in queues at ATMs for days. Small businesses that had operated entirely on cash struggled to function.

The secondary effect on India’s digital payments ecosystem was transformational. Everyone who had been relying on cash was suddenly forced to consider alternatives. UPI, which had launched just months earlier as a government-backed instant payment system, saw adoption accelerate at a pace that would not have been achievable without the forced push of demonetization. Digital wallets grew. Online payment volumes jumped. The behavioral change that had been building slowly suddenly lurched forward at a speed that compressed years of anticipated adoption into months.

Razorpay had been building payment infrastructure for exactly this moment for two years. The developer-friendly onboarding that let a new merchant go live in days rather than weeks meant Razorpay could absorb the flood of businesses trying to accept digital payments without the bureaucratic delays that legacy gateways required. The clean API that existing customers had already integrated meant those businesses could handle the sudden volume surge on their payment processing.

Revenue growth in the immediate post-demonetization period was extraordinary. The broader trend it established, that digital payments were India’s future and that businesses needed to be equipped for it, became the structural foundation for Razorpay’s growth over the following years.


Razorpay 2.0: From Gateway to Platform

By 2017, Razorpay was three years old and had a genuine problem: it was succeeding at what it had set out to do, but the single product was becoming a ceiling.

The payment gateway was excellent and widely used. But the businesses using it were increasingly asking for things the gateway could not do. How do I pay my vendors automatically? How do I collect recurring subscriptions? How do I split payments between multiple parties on a marketplace? How do I manage my business bank account alongside my payment processing? How do I handle payroll?

Every one of these questions was a product opportunity. Each one represented a workflow that businesses were managing through a combination of the payment gateway plus spreadsheets plus manual bank transfers plus separate software tools that did not talk to each other.

Razorpay 2.0, the brand they used internally for the product expansion that began in 2017, reframed the company as a converged payments solution rather than a single payment product. The new products were:

Route, which allowed marketplaces to automatically split payments between multiple vendors or service providers. A food delivery platform using Razorpay Route could automatically distribute the restaurant’s share and the delivery partner’s share from a single customer transaction without manual reconciliation.

Smart Collect, which used virtual bank accounts and UPI IDs to automate the collection and reconciliation of incoming payments. B2B companies that were managing dozens or hundreds of payment references manually could instead assign each customer a unique virtual account and have the reconciliation happen automatically.

Subscriptions, which allowed businesses to set up recurring billing arrangements on any payment mode, not just credit cards. In India where card penetration was lower than in Western markets but UPI and net banking were widespread, this was a meaningful product expansion.

Each of these products solved real operational pain for real businesses. Each one was developed because existing customers asked for it. Each one made Razorpay harder to replace, because now switching the payment gateway also meant rebuilding the vendor payout workflow, the subscription billing system, and the payment reconciliation process.


The Neobanking Expansion

In 2018 and 2019, Razorpay expanded into territory that payment gateways had never occupied: business banking.

RazorpayX, the neobanking platform, was the most ambitious extension of the original thesis. The argument was straightforward once you accepted the premise. Razorpay was already processing all the incoming money for hundreds of thousands of businesses. It knew their revenue in real time. It understood their customer base, their seasonal patterns, their growth trajectory, their industry. This was a more accurate and more current picture of a business’s financial health than any bank had from looking at monthly statements.

Why not use that information to offer these businesses the banking services they needed, powered by Razorpay’s data and infrastructure? Current accounts, vendor payouts, tax disbursements, salary processing, working capital: all of the financial operations that a growing startup needed to manage and was currently managing across multiple disconnected banking relationships.

RazorpayX positioned itself as the financial infrastructure that a startup could use from day one. You sign up for Razorpay to accept payments. You open a RazorpayX current account for your banking. You use Razorpay Opfin, acquired in 2019, for payroll. You use Razorpay Capital for working capital when you need it. Every financial operation of your business runs through a single integrated system that has real-time visibility into your actual revenue and spending.

Harshil’s stated vision was that when you start a company and sign up with Razorpay, it should do everything for you on the financial side. Opening a bank account, building payments, managing disbursals and salary payouts, you should not have to step outside the ecosystem or use multiple tools.

This vision put Razorpay into competition with a different set of companies than it had competed with before. The payment gateway competitors were Paytm, CCAvenue, and PayU. The neobanking competitors were Open, Jupiter, and the banking divisions of larger fintech companies. The integrated financial platform vision had no direct Indian competitor that had assembled the same range of products at the same depth.


8 Acquisitions and the Infrastructure Layer It Built

By 2022 and 2023, Razorpay’s acquisition strategy had become a visible part of how the company expanded its platform rather than building everything organically.

Thirdwatch in 2019 added AI-powered fraud detection. The ability to identify fraudulent transactions automatically, at the speed that Razorpay’s payment volumes required, was a capability that would have taken years to build from scratch and was table stakes for enterprise customers who needed to trust the platform with high-value transactions.

Opfin in 2019, later renamed RazorpayX Payroll, added the payroll management system that completed the business banking stack.

TeraFin Labs in 2021 added AI-based digital financing infrastructure. Curlec in 2022 gave Razorpay its first international presence, specifically in Malaysia’s recurring payments market.

Ezetap in 2022 was the largest and most strategically significant acquisition. Ezetap was India’s leading offline point-of-sale company, the hardware and software that powered card and UPI payments at physical retail locations, restaurants, hotels, and enterprises. The acquisition for approximately $200 million transformed Razorpay from an online-only payment infrastructure into an omnichannel payment platform that could serve the same business across its website, mobile app, and physical locations with unified reporting and reconciliation.

PoshVine in 2022 added loyalty and rewards infrastructure, allowing Razorpay to offer businesses the ability to run points programs and cashback campaigns integrated directly into the payment flow.

The consistent logic across these acquisitions was the same as the original product strategy: capture more of the money movement workflow for each business customer, add capabilities that increase switching costs, and provide more value than any combination of competitors could provide separately.


Processing $150 Billion and What It Means

By 2024, Razorpay was processing approximately $150 billion in total payment volume annually. Revenue had grown from $12 million in 2018 to roughly $483 million by 2024, with the FY25 annual revenue coming in at approximately ₹3,930 crore.

The revenue trajectory tells the story of both phases of the company’s growth. The payment gateway business scaled steadily and reliably as the Indian digital economy grew. The platform expansion into banking, payroll, vendor payouts, and offline POS created additional revenue streams that were higher margin and less directly correlated with transaction volume fluctuations.

Of the 42 Indian unicorns that emerged in 2021, 34 were Razorpay customers. This stat from the company’s December 2021 fundraising announcement is worth dwelling on. It means that at the peak of India’s startup funding boom, roughly 80% of the most valuable new Indian companies were trusting Razorpay with their financial infrastructure. The network effect of being the payment infrastructure for India’s startup ecosystem meant that investors, founders, and operators were encountering Razorpay constantly. Recommendations flowed through professional networks without effort.

Harshil’s description of Razorpay’s growth as an index of India’s digital economy is accurate. The P2M payments market in India is projected to reach approximately $4 trillion by 2030. Razorpay’s CFO has stated publicly that the company expects to process around $750 billion of that by 2030, representing a 15-20% market share in a market that has grown dramatically from where it was when Razorpay launched.

The valuation has reflected this trajectory. From the initial $120,000 seed at YC to $9 million Series A in 2015, to unicorn status at $1 billion in October 2020, to $3 billion in 2021, to $7.5 billion in the December 2021 Series F led by Lone Pine Capital, Alkeon Capital, and TCV. The most recent publicly tracked valuation places the company at approximately $9.2 billion as of mid-2025.


The Domicile Shift and the IPO Path

In May 2025, Razorpay completed what the founders called its “reverse flip,” merging its US-registered parent company with its Indian subsidiary to consolidate operations under Indian corporate jurisdiction.

Shashank Kumar described the move as more than structural, calling it a signal of belief in India’s economic future and regulatory ecosystem. The practical dimension was straightforward: an Indian company listing on Indian exchanges needs to be domiciled in India. The symbolic dimension was meaningful for a company that had been specifically built to serve the Indian digital economy and whose entire customer base was India-facing.

The company changed its name from Razorpay Software Private Limited to Razorpay Software Limited, the corporate form appropriate for a company preparing for public listing. The stated timeline for the IPO is approximately two years from the 2025 domicile completion.

The IPO will be one of the more significant fintech listings in Indian stock market history. Razorpay is not a payment wallet or a consumer app but the infrastructure layer underneath hundreds of thousands of Indian businesses. Its valuation needs to be justified by the financial performance and the runway for continued growth, and the numbers support a serious conversation: consistent revenue growth, profitability in the core payments business, an expanding product suite with high switching costs, and exposure to a digital payments market that is in the middle of a structural transformation rather than at the end of one.


What the Razorpay Story Is Really About

Strip the mythology away from the Razorpay story and a few things are clearly true.

The founders built it because they ran into the problem themselves. The crowdfunding project that couldn’t collect payments was not a market research exercise. It was a genuine operational frustration that two engineers with the technical ability to fix it decided to fix. That specificity of motivation translated into a specificity of product vision: what would a payment API look like if developers built it for developers rather than enterprise sales teams building it for compliance departments?

The developer-first positioning was not a marketing angle. It was a genuine architecture decision that shaped every subsequent product choice. APIs that worked as documented. Sandbox environments that mirrored production. Documentation that answered the actual questions developers asked. These things cost time and engineering investment but produced a distribution channel that required almost no marketing spend, because the word of mouth in the developer community was genuine and self-sustaining.

The platform expansion was driven by customers, not by competitive positioning. Every product Razorpay added after the initial payment gateway existed because existing customers were asking for it. The company listened to what the businesses using it needed and built it. This customer-driven product strategy meant that each expansion was entering a market where there was already validated demand rather than building ahead of it.

And the Indian market timing was right in a way that required both luck and positioning. Demonetization in 2016 compressed years of digital payment adoption into months. UPI becoming the dominant payment rails in India created a structural shift that benefited the infrastructure players who were already embedded. The Indian startup boom of 2020-2021 meant that an enormous number of new businesses needed payment infrastructure simultaneously. Each of these tailwinds found Razorpay already in position to absorb them.

Two IIT Roorkee engineers. A parent’s house in Jaipur. Motorbike rides to schools that said no. One bank that finally said yes. Y Combinator. Demonetization. Eight acquisitions. Thirty-four unicorn customers.

India’s only full-stack financial solutions company for businesses, processing $150 billion a year and building toward a public listing on the exchanges of the country it was built to serve.

Leave a Reply

Discover more from The Courier

Subscribe now to keep reading and get access to the full archive.

Continue reading