Y Combinator
Y Combinator
May 6, 2026

How Razorpay Became India’s Largest Payments Company

YouTube · X5bABLCuIHA

Quick Read

Harshil Mathur, co-founder of Razorpay, details the company's path from a YC-backed startup to India's largest payments platform, highlighting critical pivots, the strategic advantage of regulated markets, and the power of customer trust.
Regulated industries create deep moats, deterring competition despite initial complexity.
Customer obsession and direct communication build trust, especially during crises, which is vital in B2B.
Proactive adoption of new technologies (like UPI and AI) is essential to avoid the 'incumbent fallacy' and maintain market leadership.

Summary

Harshil Mathur, co-founder of Razorpay, recounts the company's origins and growth into India's largest payments platform. Initially a side project, Razorpay emerged from the founders' frustration with India's complex digital payment landscape. They initially targeted educational institutions but quickly pivoted to startups after realizing the former lacked interest in digital solutions. Mathur emphasizes that the highly regulated nature of the payments industry, while presenting significant hurdles (like a year-long approval process post-YC), ultimately created a deep moat against competition. A 'near-death' experience where their bank pulled the plug shortly after launch reinforced the importance of human-centric customer support and trust in B2B. Razorpay achieved remarkable capital efficiency by focusing on value creation in B2B rather than consumer-style burn. A key strategic move was being the first payment gateway to integrate UPI in India, ahead of major banks and competitors, which allowed them to capture significant market share during demonetization. Mathur also discusses the company's proactive approach to AI, choosing to 'reinvent' their platform as if starting today to avoid the 'incumbent fallacy' and maintain agility.
Razorpay's story offers a masterclass in navigating highly regulated markets, pivoting based on customer feedback, and leveraging technological shifts (like UPI and AI) for exponential growth. It underscores that deep customer connection and a long-term vision, even in the face of immense challenges, are more powerful than initial market size or external pressures, providing invaluable lessons for founders in any industry.

Takeaways

  • India's digital payment landscape was extremely difficult for startups, making cash easier than digital payments in the early days.
  • Razorpay pivoted from targeting educational institutions (who didn't value digital payments) to startups, finding product-market fit with those who desperately needed better solutions.
  • The year-long regulatory approval process for payments in India, while frustrating, created a significant competitive moat.
  • A 'near-death' experience where their bank pulled the plug taught Razorpay the enduring power of transparent, human-touch customer support in B2B trust.
  • Razorpay achieved capital efficiency by focusing on direct value in B2B, contrasting with the 'burn to grow' mentality of many B2C companies.
  • Being the first payment gateway to integrate UPI in India, before major banks and demonetization, was a critical strategic bet that propelled their growth.
  • Razorpay proactively 'reinvented' its entire platform with AI, acting like a startup to avoid incumbent complacency and adapt to rapid technological shifts.
  • Founders must stay in 'founder mode' for core product vision and direction, as no leader will care as deeply about the company as they do.
  • Entrepreneurship is not getting easier with AI; founders still need to deeply connect with a problem they are willing to solve for 10+ years.

Insights

1Early Market Pain Point: India's Digital Payment Complexity

Harshil Mathur initially encountered the extreme difficulty of accepting digital payments in India while building a side project. The process was not designed for techies or small businesses, making it harder than accepting cash and hindering the democratization of online commerce.

He realized it was 'fairly complicated to accept payments in India. First, it was very hard to get just get started and even if you could get started like the experience was very like really really poor.' He notes, 'it was easier to accept cash in India than to accept digital payments.'

2Strategic Pivot: From Education to Startups

Razorpay initially targeted educational institutes for fee collection, believing it was a large, untapped market. However, direct customer interaction revealed that these institutions didn't value digital convenience, as students would pay fees regardless. A parallel effort selling to startups, who desperately needed digital payment solutions, showed clear traction, leading to a crucial pivot.

After trying to convince universities to accept digital fees, a representative asked, 'if they've paid digitally they're going to pay you 1% extra I said yes so he said then why don't I charge just 1% more fees right so uh and that's when you realize that your customer doesn't really care about digital collections.' They 'quickly pivoted our way and said that this is a sector that is going even though it's small it's growing for us.'

3Regulatory Hurdles as a Competitive Moat

The payments industry in India is heavily regulated, requiring extensive approvals and licenses, which meant Razorpay couldn't process a single live transaction for a year after YC. While challenging, this lengthy and complex process became a significant barrier to entry, limiting competition and creating a deep moat for established players.

He states, 'everyone coming after us will also face the same hurdles. So it's the hurdles become a moat over time because unlike most spaces in India which get funded... there's still much lesser number of companies in competition because it's not very easy to just bring build a payment gateway get an approval started.'

4Customer-Centric Conviction Amidst Challenges

Despite constant doubts and the allure of easier markets, Razorpay's founders maintained conviction by deeply connecting with potential customers. The consistent feedback that their problem was real and unsolved provided the energy to persevere through regulatory delays and operational difficulties.

He explains, 'we connected with the problem so much because we spoke to so many founders so many people who could be our customers and I That gave the highest form of energy. Every single customer we started meeting, everyone said yes, we have a problem. Yes, nobody's solving it.'

5Building Trust Through Human Connection in Crisis

After a bank abruptly pulled their services, shutting down all live merchants, Razorpay faced a 'near-death' moment. Instead of avoiding customers, they committed to calling every single one, explaining the situation transparently, and enduring abuse. This dedication to human connection rebuilt trust and retained many merchants, proving that in B2B, especially finance, human touch is irreplaceable for trust.

He recounts, 'we'll call every single customer and tell what is happening exactly why it is happening and what we are doing about it.' He adds, 'just having somebody a human on other side saying that yes I am with you and I'm going to I am managing it gives a lot of trust.'

6Capital Efficiency in B2B: Value Over Burn

During a period when investors expected high burn rates for growth, Razorpay maintained exceptional capital efficiency, with interest from their fixed deposits exceeding their monthly burn. Mathur argues that B2B is a logical business where value addition directly translates to revenue, making excessive burn unnecessary and illogical.

He states, 'the interest on the deposits was more than our burn. So we became profitable and uh our investor was very unhappy with that because he was like we've given you this money to burn and grow.' He contrasts this with B2C, saying 'in B2B it's very simple you add a value to a business the business pays you for it.'

7Leveraging New Technologies: The UPI Advantage

Razorpay made an early, risky bet by being the first payment gateway to integrate India's UPI system in 2016, even when major banks were skeptical and hadn't adopted it. This foresight positioned them perfectly when demonetization occurred, creating a surge in demand for UPI and allowing Razorpay to onboard major companies like Zomato and Swiggy, gaining a six-month lead on competitors.

He explains, 'in September October 2016, we became the first payment gateway in the country to go live on UPI much before the largest banks of the country had gone live.' This allowed them to 'enter spaces that we couldn't have entered uh if there was no differentiator for us to play on.'

8Proactive AI Integration: Avoiding Incumbent Fallacy

To avoid becoming complacent like the incumbents they disrupted, Razorpay proactively 'reinvented' its entire platform with AI, asking how they would build it if starting today. This aggressive, forward-looking approach, even with evolving AI tech, is seen as essential for survival in a world where AI will rapidly compress building time, making speed and vision the only true differentiators.

He describes asking, 'if I were to start razor it today how would I build it' and deciding 'we are going to bring these changes before a new startup brings those in.' He warns, 'any company who takes that call that we're going to respond to the market is already dead.'

9The Enduring Importance of Founder Mode

Mathur admits to making the mistake of shifting into 'manager mode' by delegating too much to leaders. He learned that founders must remain deeply involved in the core aspects that define the company, such as product vision and direction, because no one else will care as much or possess the same conviction.

He states, 'I myself shifted to manager mode for a couple of years where I said, I have the best leaders... and that's the worst mistake you can do.' He emphasizes, 'nobody's going to care about your company as much as you do. And that that is never going to change.'

Bottom Line

AI will compress the 'build' time for software so dramatically that the only remaining competitive moat will be the speed and clarity of deciding *what* to build, not *how* to build it.

So What?

Companies must shift their strategic focus from execution efficiency to visionary product strategy and rapid decision-making. Those who wait to 'respond to the market' will be too late.

Impact

Founders can gain a significant advantage by deeply understanding AI's capabilities and proactively redesigning their entire product and operational stack as if starting from scratch, rather than incrementally adding AI features.

In B2B, particularly in financial services, human-to-human interaction remains critical for establishing and maintaining trust, even when AI can offer greater efficiency in support.

So What?

While AI can automate many aspects of a business, customer support should be viewed as a trust-building channel, not just a problem-solving one. Over-automating this function risks eroding the foundational trust necessary for long-term B2B relationships.

Impact

Companies can differentiate by strategically integrating human touchpoints into their B2B customer support, especially during critical or sensitive interactions, leveraging AI to empower human agents rather than replace them entirely.

Key Concepts

Regulated Moat

The idea that difficult regulatory environments, while challenging to navigate initially, create significant barriers to entry for competitors, thereby establishing a deep and sustainable competitive advantage for those who successfully comply.

Incumbent Fallacy

The tendency for established companies to react to market changes rather than proactively shaping them, believing their existing position is secure. This leads to being outmaneuvered by agile startups or new technologies.

Founder Mode vs. Manager Mode

A framework distinguishing between a founder's deep, hands-on involvement in core company vision and product direction ('founder mode') versus delegating these critical areas to executives ('manager mode'). The podcast argues founders must remain in 'founder mode' for essential aspects, as no one else will possess the same level of conviction or care.

Lessons

  • Identify and solve a deeply felt problem for a specific customer segment, even if it's small initially, as their need will provide conviction through tough times.
  • View regulatory hurdles not just as obstacles, but as potential long-term competitive moats that deter less patient or committed entrants.
  • Prioritize transparent, human-centric communication with customers during crises; picking up the phone and explaining the situation, even when it's bad, builds invaluable trust.
  • Embrace new, disruptive technologies proactively, even if they seem unproven or inconvenient for existing systems, to create unique market wedges and avoid being outmaneuvered.
  • As a founder, remain deeply engaged in the core product vision and strategic direction, resisting the temptation to fully delegate these critical areas to 'manager mode'.

Reinventing Your Platform with AI to Avoid Incumbent Fallacy

1

**Calibrate Leadership on AI:** Founders and leadership must personally engage deeply with AI tools (e.g., Claude, OpenAI) to understand their power and potential, fostering an informed perspective.

2

**Hypothetical Reinvention Exercise:** Conduct a thought experiment: 'If we were to start our company today, how would we build our entire platform (integration, onboarding, support, etc.) using current AI capabilities?'

3

**Challenge Existing Structures:** Use the hypothetical redesign to identify areas where current processes or teams are acting like incumbents, resisting change, or relying on outdated methods.

4

**Commit to Proactive Change:** Make a firm decision to implement these AI-driven changes *before* new startups force the market's hand, accepting short-term disruption for long-term survival.

5

**Rewire Teams and Capital:** Reallocate resources, rewire teams, and adjust capital deployment to align with the new AI-centric vision, even if it means hurting short-term metrics.

Notable Moments

Two weeks after Razorpay's YC demo day and launch, the bank enabling their payments abruptly pulled the plug, shutting down all 50 live merchant accounts.

This 'near-death' experience forced the company to confront a severe trust crisis. Their decision to transparently call every affected customer, despite potential abuse, became a foundational principle for building trust in B2B financial services and proved the irreplaceable value of human connection.

Quotes

"

"If I knew what I knew today, maybe I would have not not started."

Harshil Mathur
"

"The hurdles become a moat over time because unlike most spaces in India which get funded... there's still much lesser number of companies in competition because it's not very easy to just bring build a payment gateway."

Harshil Mathur
"

"If it is hard to sell to customers it's a problem. If it's hard for other reasons it's not really a problem. It's actually a mode."

Harshil Mathur
"

"B2B is a business of trust and the trust at the end of the day nothing replaces the human touch point of trust."

Harshil Mathur
"

"Any company who takes that call that we're going to respond to the market is already dead. The only way to survive is to figure out what the market is going to be and move today."

Harshil Mathur
"

"Nobody's going to care about your company as much as you do. And that that is never going to change."

Harshil Mathur

Q&A

Recent Questions

Related Episodes

How Replit made $1M on day one (then $250M in a year)
My First MillionMay 7, 2026

How Replit made $1M on day one (then $250M in a year)

"Replit's CEO, Amjad Masad, details how the company exploded from $2.5 million to $250 million in annual revenue in one year, fueled by their AI coding agent, and shares candid insights on founder struggles, the AI singularity, and building businesses in a new era of software creation."

AIStartup GrowthEntrepreneurship+2
This Startup Catches Fraud at Scale
Y CombinatorMar 31, 2026

This Startup Catches Fraud at Scale

"Variance, an AI startup, emerged from three years of stealth with a $21 million Series A to reveal how its AI agents automate complex fraud and compliance reviews for Fortune 500 companies and marketplaces, replacing slow human processes with self-healing, dynamic systems."

AI AgentsFraud DetectionRisk Management+2
The Simplest Way To Make $1,000,000 Isn't Starting A Business (it's working in one of these 10)
My First MillionMar 11, 2026

The Simplest Way To Make $1,000,000 Isn't Starting A Business (it's working in one of these 10)

"Discover 'Sarah's List'—a curated selection of high-growth companies where joining as an employee, rather than a founder, offers a clear path to significant wealth through equity appreciation."

InvestingStartupsManufacturing+2
Dumb iPhone Apps Are Making People Rich Again (Here’s how)
My First MillionFeb 24, 2026

Dumb iPhone Apps Are Making People Rich Again (Here’s how)

"Pat Walls, founder of Starter Story, reveals how simple iOS apps are generating significant revenue, the untapped potential in B2B video, and the critical importance of strategic focus and robust systems for business growth."

App DevelopmentEntrepreneurshipBusiness Strategy+2