Mathur began as a coder and found the payments problem while trying to accept money for a side project in India. Razorpay first targeted educational institutions, but colleges had little reason to make fee collection easier. Startups cared about the problem, so the company pivoted to serve them.
Harshil Mathur: AI Is Compressing Every Moat
Speaker
Harshil Mathur, co-founder of Razorpay, discusses building a payments company and adapting its product and organization to AI with a Y Combinator host.
Razorpay waited nearly a year after YC to process its first live transaction while it secured approvals and certifications. Mathur saw that difficult entry requirements could become a moat because competitors faced the same process. When its bank partner shut down service for about 50 merchants, the team called each customer, explained the situation, and restored service with another partner within four or five days.
Mathur said Razorpay kept spending lean because businesses paid for concrete value, rather than engagement metrics. In 2016, while larger gateways waited to see whether UPI would succeed, Razorpay became the first payment gateway in India to go live with it. After demonetization, major merchants including Zomato, Swiggy, and BookMyShow joined, giving Razorpay an early advantage.
Mathur said AI is making software faster to build, so companies need to decide sooner what to build and move before the market shifts. Razorpay redesigned its platform around integration, onboarding, and support, and redirected teams toward the new approach. He also warned against founders retreating into manager mode: they should stay involved in product vision and other core decisions while delegating the rest.
Mathur advised founders to look beyond how easily AI lets them build and launch software. The key question is whether they care enough about a problem to work on it for the next 10 years. He said sustained effort on a problem founders deeply understand is still central to building a company.
Takeaways
- Test whether customers truly care before committing to a market; Razorpay shifted from education to startups when the customer need proved stronger.
- Separate customer demand from operational difficulty: a hard problem can create a moat when customers want the solution.
- In trust based B2B, clear and direct customer communication can help preserve relationships during a crisis.
- For a business selling to businesses, keep spending tied to value delivered and make bets while the company is small enough to move quickly.
- Use AI to revisit what the company should build, and choose a problem you can stay committed to for years.
Mentioned in this talk
Search inside this talk
What was claimed 9
- metricRazorpay: India's largest payments platform
“it's become India’s largest payments platform”
YouTube Unverified1 source· Talk
- invested in
Y Combinator invested in Razorpay
first Indian company invested in“It was the first Indian company Y Combinator ever invested in.”
YouTube Unverified1 source· Talk
- foundedHarshil Mathur founded Razorpay
“Razorpay went through YC in winter 2015.”
YouTube Unverified1 source· Talk
- metricRazorpay: First live transaction approximately one year after in-principle approval
“it took us a year after that to do our first live transaction”
YouTube Unverified1 source· Talk
- metricRazorpay: $180 billion in payments volume
“Today, Razorpay alone does $180 billion.”
YouTube Unverified1 source· Talk
- usespayment gateway integration
“we became the first payment gateway in the country to go live on UPI”
YouTube Unverified1 source· Talk
- launchedfirst payment gateway in the country to go live on UPI
“In September or October 2016, we became the first payment gateway in the country to go live on UPI”
YouTube Unverified1 source· Talk
- uses
“I'm addicted to Claude Code right now.”
YouTube Unverified1 source· Talk





