When you use Paystack Inline or the Paystack Popup, the customer enters card details on a Paystack-hosted form. Those details are tokenized in the customer's browser and sent directly to Paystack's servers — they never pass through your backend. You only receive an authorization_code, not the card number. Never build a custom card form that collects card numbers and posts them to your own server.
When a customer pays on your site using Paystack Inline:
Your backend never touches the card number. It is technically impossible for your server to accidentally log or store it through the normal Paystack flow.
// WRONG — do not build your own card form
// This takes card data through your server
app.post('/charge-card', async (req, res) => {
var { cardNumber, cvv, expiryMonth, expiryYear } = req.body; // NEVER DO THIS
});
// RIGHT — let Paystack handle card input
// Your backend only receives the reference after checkout
app.post('/webhook', async (req, res) => {
var event = req.body;
if (event.event === 'charge.success') {
var reference = event.data.reference; // Safe to store
var last4 = event.data.authorization.last4; // Safe to store for display
var authCode = event.data.authorization.authorization_code; // Safe to store for re-use
// No card number here — ever
}
});
PCI DSS (Payment Card Industry Data Security Standard) is a set of security requirements for organizations that handle card data. Compliance is tiered:
By never touching card data and using Paystack's hosted or inline checkout, you remain in SAQ A — the simplest compliance tier, achievable with a self-assessment questionnaire.
Get weekly developer tips
Join 25,000+ developers. Practical guides, job tips, and new content — straight to your inbox.
No spam. Unsubscribe anytime.
This guide is part of the Paystack security and PCI compliance guide.
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