Book a free call

How to Develop a PCI-Compliant Fintech App

A PCI-compliant fintech app protects card data from the first line of code. Here is what the standard asks for, how to scope the work, and what it costs to build.

Hertiv engineering teamReviewed by a senior engineer
7 min read
How to Develop a PCI-Compliant Fintech App
On this page

Short answer

To develop a PCI-compliant fintech app, build card handling around the PCI DSS standard: keep card numbers out of your own systems where possible, encrypt what you must hold, control who can reach it, and log everything. Most small teams let a certified payment provider handle card data and complete a self-assessment, while larger teams work with an external assessor.

What does PCI compliance mean for a fintech app?

PCI compliance means a fintech app meets the Payment Card Industry Data Security Standard (PCI DSS), the set of rules the card brands require of any business that stores, processes or transmits card data. If your app takes a card payment, the standard applies to you, even if a payment provider does most of the work.

The standard exists because card numbers are easy to steal and hard to replace. A breach that exposes stored card data can mean fines from the card brands, a forced change of payment provider, and a loss of trust that a young fintech may not survive. Compliance is the floor, not the ceiling: it proves you handle card data with care, but it does not make an app safe on its own.

One point trips up many teams. Using a payment provider does not remove your duties. You still have to answer for how card data moves through your app, who can see it, and what your own servers log. The provider covers its own systems; you cover yours.

Start by drawing a map of every place card data travels: the payment form, the app backend, logs, support tools, analytics and backups. Anything that touches the card number is inside the scope of the standard, and the smaller that scope is, the cheaper compliance becomes.

Which PCI DSS level applies to your app?

Your PCI DSS level depends on how many card transactions you process in a year, and it decides what proof the card brands expect from you. Most new fintech apps sit at the lowest level and work up as volume grows.

LevelAnnual transactionsWhat is expected
Level 1Over 6 millionAnnual on-site assessment by an external assessor
Level 21 to 6 millionAnnual self-assessment plus quarterly network scans
Level 320,000 to 1 million onlineAnnual self-assessment plus quarterly network scans
Level 4Under 20,000 onlineAnnual self-assessment plus quarterly network scans

These bands are the ones the card brands publish for merchants, and your payment provider or acquiring bank confirms which one you fall into. The level is not a badge to chase: a Level 4 app that grows fast can move up a band without warning, so build as if the next level is coming.

The self-assessment is a questionnaire, known as a SAQ, and the version you complete depends on how card data flows through your app. An app that never sees a card number answers a short SAQ. An app that stores card numbers answers a long one and faces far more checks.

What does PCI DSS ask you to build?

PCI DSS sets out twelve requirements, and they group into six goals. You do not need to memorise the list, but your architecture should answer each group with a concrete control.

GoalWhat it means in practice
Build a secure networkFirewalls between card systems and the internet; no factory-default passwords
Protect stored card dataEncrypt stored card numbers; never store the security code after a payment
Protect data in transitStrong encryption on every channel that carries card data
Run a secure programmePatch promptly; run anti-malware where it fits; review code for flaws
Control accessLeast access by role; unique logins; two-factor access for remote entry
Monitor and testLog access to card data; review logs; test controls and scan regularly

Two of these rules catch new teams out. First, the three or four digit security code on a card must never be stored after the payment is authorised, not even in an encrypted form. Second, every person with access to card systems needs a unique login, so shared admin accounts are not allowed.

Treat the requirements as design inputs, not as paperwork at the end. A firewall rule, an encryption choice and a logging decision are all easier to make during the build than to add after launch.

How do you keep card data out of your app?

The cheapest way to meet PCI DSS is to hold as little card data as possible. Every field you store is a field you must protect, log and prove safe, so the best architecture is one where the card number never reaches your servers at all.

Most teams do this with a payment provider that offers hosted fields or a token. The card form runs inside the provider's frame, the provider returns a token that stands in for the card, and your app stores only that token. A token is useless to a thief because it cannot be turned back into a card number outside the provider.

Watch the places card data leaks without anyone noticing. Support agents paste card numbers into tickets, error logs capture full request bodies, and analytics tools record form input. Add rules that strip card-like numbers from logs and tickets, and test that the filters actually work.

Encryption still matters for what remains. Card numbers you must keep, such as the last four digits for receipts, should sit in an encrypted store with keys held separately from the data. Keys in the same database as the data they protect are barely better than no encryption at all.

If your app genuinely needs to store full card numbers, pause and ask why. In most fintech products, a token plus the last four digits covers every feature the product needs.

What are the steps to build a PCI-compliant fintech app?

Compliance work follows a clear order, and skipping the early steps is what makes projects run late. Build in this sequence and the assessment at the end is mostly a check of work you have already done.

  1. Map the card data flow. Draw every system, log and third party that touches card data, and mark what is in scope.
  2. Pick your SAQ. Match your flow to the right self-assessment questionnaire, and confirm it with your payment provider.
  3. Design the token flow. Decide how the card form, token and backend fit together, and keep card numbers out of your own systems.
  4. Build the controls. Add encryption, access control, logging and patching as part of the build, not as a later task.
  5. Test with real data. Run the quarterly network scan, try the filters that strip card numbers from logs, and check that alerts fire.
  6. Complete the assessment. Fill in the SAQ, gather the evidence, and file the attestation with your acquiring bank.
  7. Keep it running. Review logs, rotate keys, re-scan every quarter, and repeat the assessment each year.

Give one person ownership of the programme. When compliance is everyone's second job, it becomes nobody's job, and the gaps show up during the assessment instead of during the build.

Example (hypothetical): what does the compliance work cost in hours?

Example (hypothetical): a small fintech team plans the compliance work for its first card product. The team uses planning figures only, and the numbers below are hours of work, not a quote.

The work splits into five parts. Scoping and mapping the card data flow takes 40 hours. The gap assessment against the standard takes 80 hours. Fixing the gaps, including tokenisation and logging, takes 200 hours. Testing, scanning and evidence gathering takes 80 hours. Writing the policies and completing the questionnaire takes 60 hours.

That adds up to 460 hours in total. At a planning rate of $150 an hour, the work costs $69,000. The lesson is that the fix work is the largest share, which is why keeping card data out of your own systems from the start saves more than any other single choice.

On top of the build work, plan for the running cost. Quarterly scans, log review and the annual assessment take a few days each quarter, and a growing app should budget for an external assessor once volume pushes it into Level 1.

Common mistakes

The most common mistake is storing card data you do not need. Teams keep full card numbers for a feature nobody asked for, and then spend months protecting data they could have avoided holding. If a token covers the feature, use the token.

The second mistake is logging too much. Debug logs that capture request bodies will eventually capture a card number, and once it is in a log file it must be protected like any other card store. Strip card-like numbers at the point of logging, and check the filters with a test card.

The third mistake is treating compliance as a one-off project. PCI DSS asks for quarterly scans and an annual assessment, and controls drift as the team ships. Schedule the recurring work when the first assessment finishes, while the evidence is still fresh.

The fourth mistake is giving support staff more access than they need. A support agent who can see full card numbers is a risk the standard will not accept, so mask card data in support tools and limit who can unmask it.

Key takeaways

  • Scope the card data flow before you write code
  • A token beats a stored card number every time
  • Your level follows your transaction volume
  • Quarterly scans and annual assessment keep you compliant
  • One owner should run the compliance programme

Frequently asked questions

Do I need PCI compliance if I use Stripe or another payment provider?

Yes. The provider covers its own systems, but you still answer for how card data moves through your app, what your servers log, and who can see it. Most small teams complete a short self-assessment questionnaire for their part.

What is a SAQ?

A SAQ is a self-assessment questionnaire that checks your app against the parts of PCI DSS that apply to your card data flow. The version you complete depends on whether you store, process or only transmit card data.

Can I store the security code on a card?

No. The three or four digit security code must never be stored after a payment is authorised, not even encrypted. Keep only the token and the last four digits of the card number.

How often must a fintech app prove PCI compliance?

Most apps complete a self-assessment once a year and run a network scan every quarter. Apps at Level 1 need an annual on-site assessment by an external assessor instead of a self-assessment.

What happens if my app fails a PCI assessment?

Your acquiring bank sets a deadline to fix the gaps, and the card brands can fine the bank, which passes the cost on. In serious cases a provider can stop processing your payments until the gaps close.

Does PCI DSS cover bank account data too?

No. PCI DSS covers card data from the card brands. Bank account data falls under other rules, such as data protection law and banking regulation, so check those separately for your market.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a fintech app that takes card payments?

A senior engineer replies within one business day. Or see our Data Security & Compliance service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call