McTaba Labs logo
Software EngineeringThe WhiteboardProjectsEventsMasterclassesWebinarsLearn
Book Call

500+ developers already in the community

Get answers, find accountability partners, and stay ahead

Join Discord →
McTaba Labs logo

Educating 1 million students in tech by 2030.

Programs

  • HighSchool Graduates Launchpad
  • AI & Business Automation
  • Corporate Training
  • McTaba Story & Mission
  • Full-Stack Curriculum
  • Course Pricing & Plans
  • Frequently Asked Questions

Resources

  • Join Discord Community
  • Tech Events in Nairobi
  • Masterclasses
  • Free Resources
  • Learn
  • Campus
  • Africa Tech Talent Report
  • Partner With Us
  • Start a Project
  • Our Work

Contact Us

  • 124 Manyani East Road, Lavington, Nairobi
  • +254727795603
  • Book a Discovery Call

Office Hours:

Mon-Fri: 9am - 2pm EAT

Sat: 10am - 12pm EAT

© 2027 McTaba Labs - A product of Edtech Industries. All rights reserved.

Privacy PolicyTerms of ServiceRefund Policy
  1. Learn
  2. Paystack for African Developers
  3. Nigeria Data Protection Act and Payment Data Storage
Bonaventure OgetoBy Bonaventure Ogeto|Updated July 22, 2026

Nigeria Data Protection Act and Payment Data Storage

Under Nigeria's NDPA 2023, storing Paystack payment data (customer email, phone, amount, reference) is lawful under the "contractual necessity" basis — you need it to fulfill the transaction. You must: (1) only store what you need (data minimisation), (2) delete payment records after your retention period, (3) notify the NDPC and affected customers within 72 hours of a data breach, (4) register with the Nigeria Data Protection Commission (NDPC) if you process data for more than 2,000 persons annually, and (5) never store raw card numbers — Paystack prevents this by design.

In this article

  1. 1. How NDPA 2023 Applies to Paystack Payment Data
  2. 2. Key NDPA Obligations for Payment Data Handlers
  3. 3. Learn More

How NDPA 2023 Applies to Paystack Payment Data

The Nigeria Data Protection Act 2023 covers any personal data — information that identifies or can identify a person. In your Paystack integration, this includes:

  • Customer email address and phone number
  • Customer name attached to a transaction
  • Transaction reference linked to a specific person
  • IP address captured during a transaction
  • Metadata you attach to transactions (e.g., customer ID, order details)

It does not include anonymised or aggregated data where no individual can be identified.

The lawful basis for storing this data is contractual necessity (NDPA Section 25(1)(b)) — you need to process the data to fulfill the payment contract with your customer. You do not need a separate consent form for storing payment records. However, your privacy policy must disclose that you collect and store this data.

Key NDPA Obligations for Payment Data Handlers

1. Data minimisation
Only store what you need. For a completed transaction, you need: reference, amount, status, customer email, and timestamp. You do not need to store the full webhook payload indefinitely.

2. Retention limits
Define and enforce a retention period. For financial records in Nigeria, 5-7 years aligns with FIRS (Federal Inland Revenue Service) requirements. After this period, delete or anonymise payment records.

3. Security measures
Encrypt sensitive fields at rest. Use TLS for all data in transit. Restrict access to payment tables — only staff who need transaction data for their role should be able to query it.

4. NDPC registration
If your business processes personal data of more than 2,000 Nigerians per year, register with the Nigeria Data Protection Commission (ndpc.gov.ng) and appoint a Data Protection Officer (DPO) or retain a licensed Data Protection Compliance Organisation (DPCO).

5. Breach notification
If your payment database is breached, you must:

  • Notify the NDPC within 72 hours of becoming aware
  • Notify affected customers without undue delay if the breach poses high risk to their rights
  • Document the breach, its scope, and remediation steps

Get weekly developer tips

Join 25,000+ developers. Practical guides, job tips, and new content — straight to your inbox.

No spam. Unsubscribe anytime.

Learn More

This guide is part of the Paystack security and compliance guide.

Sign up for the McTaba newsletter

Key Takeaways

  • ✓Nigeria's NDPA 2023 applies to all businesses processing personal data of Nigerian residents, regardless of where the business is registered.
  • ✓Storing customer email, phone, name, and transaction reference for payment records is lawful under the "contractual necessity" basis — no separate consent form needed.
  • ✓Never store card numbers, CVVs, or PINs. Paystack handles these by design — storing them yourself would violate both NDPA and PCI DSS.
  • ✓If you process data for more than 2,000 people per year, you must register with the NDPC (Nigeria Data Protection Commission) and appoint a Data Protection Officer.
  • ✓In a data breach affecting payment records, you must notify the NDPC within 72 hours and notify affected customers promptly.
  • ✓Implement a data retention policy: delete customer payment records after your defined retention period (typically 5-7 years for financial records under Nigerian law).

Frequently Asked Questions

Does Paystack being PCI DSS compliant satisfy NDPA requirements?
No. PCI DSS covers card data security — it is a payment industry standard, not a national data protection law. The NDPA applies to all personal data you hold, not just card numbers. You need to comply with both: PCI DSS (via your Paystack integration) and NDPA (via your data handling practices).
Do I need a privacy policy to accept payments in Nigeria?
Yes. The NDPA requires you to inform customers about what data you collect, why, and how long you keep it. A privacy policy on your website or app that covers payment data is the minimum. It must be accessible before customers enter any personal information.
What is a DPCO and do I need one?
A Data Protection Compliance Organisation (DPCO) is a firm licensed by the NDPC to help companies with data protection compliance. If your business lacks the internal capacity to appoint a qualified Data Protection Officer, you can engage a DPCO instead. This is common for small to mid-size businesses.
Can I store Nigerian customer payment data on servers outside Nigeria?
The NDPA does not impose a blanket data localisation requirement (unlike some other jurisdictions). You may transfer data outside Nigeria, but you must ensure the recipient country or organisation provides adequate protection — comparable to NDPA standards. Using major cloud providers (AWS, GCP, Azure) with appropriate data processing agreements generally satisfies this.

Learn Paystack Integration

KES 2,999

The definitive guide to building payment systems with Paystack — from your first transaction to production-grade payment infrastructure across Africa. 9 modules, 47 lessons. Free preview available.

Start Paystack Course

Not ready? Create Free Account

Keep reading

Paystack Security, Keys and PCI Compliance: Complete Guide

A complete security reference for Paystack integrations. Covers API key types and rotation, secure key storage, PCI DSS compliance scope, price tampering prevention, webhook replay attacks, rate limiting, fraud signals, and logging without exposing secrets.

Read more

Never Commit Your Paystack Key: Detection and Remediation

Committing a Paystack secret key to version control is one of the most common and most dangerous mistakes in payment integrations. This guide shows you how to detect committed keys, set up automated prevention with pre-commit hooks, and remediate the damage when a key does slip through.

Read more

Price Tampering Attacks on Paystack Checkouts

Price tampering is the most common attack on Paystack integrations. The attacker modifies the amount in the frontend checkout initialization, paying a fraction of the actual price. This guide shows how the attack works and how server-side amount validation stops it completely.

Read more

Velocity Checks and Card Testing Attack Defence

Card testing attacks use stolen card numbers to probe your checkout — making small charges until they find valid cards. These attacks generate failed transaction fees, damage your Paystack account standing, and waste real money. This guide covers detecting card testing patterns and building velocity checks to stop them.

Read more

Paystack 401 Unauthorized on /transaction/initialize

Getting a 401 Unauthorized when calling Paystack /transaction/initialize means your request is not authenticated. This guide walks through every cause and the exact fix for each one.

Read more

Explore related topics

M-Pesa & African Stack

M-Pesa Daraja API tutorials, USSD development, and WhatsApp Business API guides. The African Stack that global bootcamps do not teach.

Learn to Code in Kenya

Everything a Kenyan needs to know before writing their first line of code. Career paths, real costs, hardware requirements, and honest answers about what it takes.

Learning to Code

Roadmaps, language guides, and practical advice for learning to code and launching a programming career.

Breaking Into Tech

Practical, no-nonsense guides for anyone looking to start or change their career in tech. From choosing your first language to acing interviews.

The African Stack: Skills for This Market

The skills that make Kenyan developers hard to replace: M-Pesa, USSD, WhatsApp, fintech, and building for the African market.

Bonaventure Ogeto

Bonaventure Ogeto

Founder, McTaba Labs

Bonaventure is the founder of McTaba Labs, a coding bootcamp in Nairobi, Kenya. He has spent years building products for the African market and mentoring the next generation of developers across the continent.