On this page
The safest way to handle payment and KYC data in your app is to avoid storing it yourself. Let a compliant payment gateway capture card details, keep only tokens, use licensed verification providers for identity checks, and store the minimum identity data you genuinely need, encrypted and access-controlled. In India this is not just good practice: RBI rules stop merchants storing card numbers, and UIDAI rules control how Aadhaar numbers may be kept.
This guide explains the rules in general terms for business owners. Payment and KYC regulation is detailed and changes often, so confirm specifics with your payment partner, your KYC provider and a lawyer for your sector.
PCI DSS basics: what it is and when it applies
The Payment Card Industry Data Security Standard (PCI DSS) is a global security standard set by the PCI Security Standards Council, a body founded by the major card networks. It applies to any business that stores, processes or transmits cardholder data, and to anything that can affect the security of that data.
A few points worth knowing:
- The current version is PCI DSS v4.0.1. Version 3.2.1 was retired on 31 March 2024, and the new requirements that v4.0 introduced as "future-dated" became mandatory on 31 March 2025.
- Some data must never be stored after a payment is authorised, such as the card security code (CVV) and full magnetic stripe or chip data, even if encrypted.
- Your obligations depend on your setup. A business that sends customers to a gateway's hosted payment page or uses the gateway's embedded payment form has far less to do than one whose own servers touch card numbers. Smaller merchants usually confirm compliance through a Self-Assessment Questionnaire, and which one applies depends on how payments are taken.
- Your payment partner will ask. Gateways and acquiring banks require merchants to follow PCI DSS and may ask for proof.
For most app owners, the right design goal is to keep card data away from your systems entirely, so that your PCI DSS scope stays as small as possible.
Tokenisation and India's card storage rules
Tokenisation replaces a real card number with a substitute value, a token, that is useless to an attacker outside its intended context. In India, the Reserve Bank of India (RBI) went further than most countries. Under RBI's card-on-file rules, merchants and payment aggregators may no longer store actual card data; the final deadline was extended to 30 September 2022, after which stored card data had to be purged. Only card issuers and card networks may keep it.
The replacement is card-on-file tokenisation (CoFT). When a customer chooses to save their card, the card network or issuer creates a token that works only for that card at that merchant, with the customer's explicit consent and an additional authentication step. Your app stores the token reference, never the card number.
In practice this means:
- Use your payment gateway's SDK or hosted fields so card details go straight from the customer's device to the gateway.
- Never log card numbers, CVVs or full request bodies from payment screens, including in crash reports and analytics.
- Use the gateway's tokenisation and saved-card features rather than building your own.
- For subscriptions and recurring payments, use the gateway's e-mandate or recurring payment features, which follow RBI's rules on customer authentication.
Choose a compliant gateway. In India, online payment aggregators are authorised and regulated by RBI. Choose a gateway that is authorised by RBI and PCI DSS compliant, and ask for its compliance confirmation. Reputable gateways publish this.
KYC and Aadhaar data: rules in general terms
Identity data is often more sensitive than card data. A leaked card can be blocked; a leaked identity document cannot be reissued easily.
Aadhaar
Aadhaar is governed by the Aadhaar Act, 2016 and regulations issued by UIDAI. In general terms:
- Only entities approved by UIDAI can perform Aadhaar authentication or e-KYC. Most apps do this through a licensed KYC provider rather than directly.
- Aadhaar numbers must be kept in an Aadhaar Data Vault. UIDAI requires entities that collect Aadhaar numbers under its framework to store them only in a separate, encrypted vault, with business systems using a reference key instead. UIDAI's FAQs say Aadhaar numbers should not be stored elsewhere even in encrypted or masked form, and a 2025 update widened what counts as vault data to include e-KYC XML and related demographic data.
- Biometric data must never be stored or shared by businesses.
- Prefer less. If you only need to confirm a person's identity or age, consider whether you need the Aadhaar number at all. Masked Aadhaar, which shows only the last four digits, and UIDAI's offline verification options exist to reduce exposure.
Other KYC documents
PAN cards, passports, selfies and video KYC recordings are personal data too. If you are a bank, NBFC, payment company, broker or insurer, your regulator's KYC directions set out what you must collect and how long you must keep it. Everyone else should collect only what the purpose requires.
India's DPDP Act adds a general layer on top. As of November 2026, its main obligations apply from 13 May 2027 and include reasonable security safeguards (encryption, masking, tokenisation, access control, logging and backups are named in the Rules), clear consent notices and deletion once the purpose is served. Failing to take reasonable security safeguards can attract a penalty of up to ₹250 crore.
A practical checklist for payment and KYC data
| Area | Do | Avoid |
|---|---|---|
| Card capture | Gateway SDK, hosted page or hosted fields | Card fields posting to your own server |
| Card storage | Gateway tokens only | Storing card numbers, expiry or CVV anywhere |
| Gateway choice | RBI-authorised, PCI DSS compliant, documented | Unverified or unlicensed payment intermediaries |
| Payment callbacks | Verify signatures and amounts on the server; confirm status with the gateway | Trusting "payment successful" messages from the app |
| Aadhaar | Licensed KYC provider, Aadhaar Data Vault, masked display | Aadhaar numbers or card images in ordinary databases or file folders |
| KYC documents | Encrypted storage, restricted access, access logs, retention limits | Public storage buckets, shared drives, email attachments |
| Logs and analytics | Mask sensitive fields; review crash reports | Logging full requests from payment and KYC screens |
| Staff access | Role-based access, two-factor, removal when staff leave | Shared admin logins |
| Incidents | A plan covering CERT-In's six-hour rule and your regulator | Discovering your obligations after a breach |
How Appspine approaches payments and KYC in apps
We build payment and KYC flows so that the most sensitive data never reaches your servers. Card details go directly to your chosen gateway; your app and backend keep tokens and transaction references. Identity checks run through licensed providers, and any documents you must hold are stored encrypted with restricted, logged access.
Our integrations and launch work covers payment gateway and KYC provider integration, server-side payment verification and webhook handling. For full products, our mobile app development and web application development teams build these flows sprint by sprint, with a working build every two weeks. If you already have an app and want to know how exposed your payment or KYC data is, our security and code audit will show you. You own the code and the accounts, and we sign an NDA before you share details.
Frequently asked questions
Do I need PCI DSS certification if I use a payment gateway?
You still have PCI DSS responsibilities, but they are much smaller if card data never touches your systems. Most small merchants complete a Self-Assessment Questionnaire rather than a full audit. Your gateway or acquiring bank will tell you what they need from you.
Can my app save customers' cards?
Yes, but only through tokenisation. Under RBI's rules, merchants cannot store actual card data. Your gateway can create card-on-file tokens with the customer's consent, and your app stores only the token reference.
Can I store a copy of a customer's Aadhaar card?
Avoid it unless a law or regulator requires you to. Where Aadhaar numbers are collected under UIDAI's framework, they must be stored in an Aadhaar Data Vault. If you only need to verify identity, use a licensed KYC provider and keep the result, not the document.
Is encryption enough to protect KYC documents?
Encryption is essential but not sufficient. You also need strict access control, access logs, secure key management, limited retention and a way to delete data when it is no longer needed.
Who is responsible if my payment gateway is breached?
The gateway is responsible for its own systems, but you remain responsible for your users' data under the DPDP Act and for choosing a compliant partner. Check your contract for breach notification terms, and make sure your own systems hold as little sensitive data as possible.
Sources
- PCI Security Standards Council: Document Library (PCI DSS v4.0.1)
- PCI SSC: Future-dated requirements of PCI DSS v4.x
- RBI: Restriction on storage of actual card data (Card-on-File), 23 December 2021
- RBI press release: cardholders encouraged to tokenise cards; deadline extended to 30 September 2022 (24 June 2022)
- UIDAI: FAQs on Aadhaar Data Vault (November 2025)
- Digital Personal Data Protection Rules, 2025 (MeitY)
Written by the Appspine team
We are an app and software development company in Noida, India, with 200+ projects delivered and apps live on the App Store and Google Play. Rated 4.5★ on Clutch and 5.0★ on Google.
Free consultation
Turn this idea into your app
Share a few details. We will call or WhatsApp you with a clear plan and free estimate. No spam, no obligation.