---
title: "Navigating Recurring Payments in India: A Backend Perspective"
description: "Shopify adapted its internal payment service to India's 2021 RBI recurring-payment rules by working with a local provider supporting cards and UPI."
url: "https://swe.quest/articles/navigating-recurring-payments-in-india-a-backend-perspective-5fb6075f589a16a0"
canonical: "https://shopify.engineering/technology-behind-navigating-recurring-payments-india"
source: "Shopify Engineering"
published: "2022-06-29"
difficulty: "medium"
kind: "Case study"
reading_minutes: 15
tags: ["payments","api-design","resilience","system-design"]
---

# Navigating Recurring Payments in India: A Backend Perspective

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2022-06-29, 15 min read, Case study. Original: [https://shopify.engineering/technology-behind-navigating-recurring-payments-india](https://shopify.engineering/technology-behind-navigating-recurring-payments-india)

## Summary

Shopify adapted its internal payment service to India's 2021 RBI recurring-payment rules by working with a local provider supporting cards and UPI. It reused its existing source model to represent e-mandates, verifying the source while recording and auto-refunding the ₹1 authorization charge for an audit trail. A single recurring-payment tokenization serves both recurring and one-time payments to avoid double AFA challenges, at the cost of a 24-48 hour pre-debit delay. Because UPI limits are min(bank, daily, app) and can't be read at runtime, mandates are capped at ₹5,000 and larger charges go through an on-session flow. Idempotency is built on the provider's unique order \`receipt\` field to prevent double charges.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- payment processing basics
- idempotency keys
- webhooks

## Keywords

RBI, UPI, UPI AutoPay, e-mandate, Shopify, PCI

## Related posts

- [10 Tips for Building Resilient Payment Systems](https://swe.quest/articles/10-tips-for-building-resilient-payment-systems-94c9ade99576742c.md): Shopify Engineering · 2022-07-28 · Medium · 13 min read · Payments & fintech, Resilience, Observability, Incidents & postmortems, Ruby
  Ten lessons from Shopify's payment infrastructure for keeping payment systems reliable at scale.
- [How Shopify Dynamically Routes Storefront Traffic](https://swe.quest/articles/how-shopify-dynamically-routes-storefront-traffic-4416894393bf5cd2.md): Shopify Engineering · 2021-04-09 · Medium · 9 min read · Load balancing, Deployment, Refactoring & migrations, Configuration management, Resilience
  Shopify shifted storefront traffic from its legacy Rails storefront to a rewritten renderer using a rule-based routing system in nginx/OpenResty Lua load balancers, with rules stored as JSON in a control plane and managed via the spy chatbot so changes skip CI and deploys.
- [Introducing the commerce payments protocol](https://swe.quest/articles/introducing-the-commerce-payments-protocol-364920964bfb2054.md): Shopify Engineering · 2025-06-12 · Medium · 10 min read · Payments & fintech, System design, Security
  The Commerce Payments Protocol, built by Coinbase and Shopify on Base, brings card-style authorize-and-capture flows onchain using an immutable escrow smart contract between payer and receiver.
- [How we prepare Shopify for BFCM](https://swe.quest/articles/how-we-prepare-shopify-for-bfcm-4b4a641105e86a3e.md): Shopify Engineering · 2025-11-20 · Medium · 8 min read · Chaos engineering, Capacity planning, Scaling, SRE, E-commerce
  Shopify readies for Black Friday Cyber Monday with a year-long program that runs from March to October.
- [Beyond Test Cards: A Fake Payment Provider for Testing at Scale](https://swe.quest/articles/beyond-test-cards-a-fake-payment-provider-for-testing-at-scale-9be029b6af37f767.md): Lyft Engineering · 2026-11-10 · Medium · 15 min read · Payments & fintech, Testing, Resilience, System design
  Lyft built a Fake Payment Provider that implements the same provider interface as real processors (tokenize, authorize, increment, capture, charge, refund, void), so it can simulate partial failures, soft declines with retries, pending responses, timeouts and outages that processor test cards cannot.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
