> ## Documentation Index
> Fetch the complete documentation index at: https://docs.waffo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Payment Security

> How we keep your payments safe

## Overview

Payment security isn't optional. It's the foundation of online commerce.

Waffo Pancake is built with security at every layer.

***

## PCI DSS Compliance

The Payment Card Industry Data Security Standard.

### What Is PCI DSS?

A set of security standards for anyone handling card data:

| Level | Annual Transactions | Requirements |
| - | - | - |
| 1 | 6M+ | Annual audit, quarterly scans |
| 2 | 1M - 6M | Self-assessment, quarterly scans |
| 3 | 20K - 1M | Self-assessment |
| 4 | Under 20K | Self-assessment |

### Our Compliance

* **Waffo Pancake**: PCI DSS Level 1 (highest)
* **You**: PCI scope reduced to SAQ-A (minimal)

Because we handle all card data, you don't have to.

***

## Tokenization

We never expose real card numbers.

### How It Works

```
Real Card: 4576 7500 0000 0110
     ↓ Tokenization
Token: tok_1NqVr2IEC4...
```

| What's Stored | Where |
| - | - |
| Actual card number | Waffo Pancake vault (encrypted) |
| Token | Your database |

### Benefits

* Your servers never see card numbers
* Tokens are useless if stolen
* Simplified compliance
* Safe to log and store

***

## Encryption

Data protected in transit and at rest.

### In Transit

| Protocol | Purpose |
| - | - |
| TLS 1.3 | All API communication |
| HTTPS | Checkout pages |
| Certificate pinning | Mobile SDKs |

### At Rest

| Data | Protection |
| - | - |
| Card numbers | AES-256 encryption |
| Encryption keys | Hardware Security Modules (HSM) |
| Backups | Encrypted |

> [!NOTE]
>
> Even Waffo Pancake employees cannot access raw card numbers.

***

## Fraud Prevention

Multi-layer fraud detection.

### What We Check

| Signal | What We Look For |
| - | - |
| Velocity | Too many attempts too fast |
| Geolocation | Card country vs IP country |
| Device fingerprint | Known fraudulent devices |
| Behavioral | Unusual patterns |
| Card testing | Small charges to validate stolen cards |
| BIN analysis | Card type, issuer risk |

***

## 3D Secure (3DS)

Extra authentication layer.

### How 3DS Works

**1. Customer Pays**

Enters card details

**2. Bank Check**

Issuing bank decides if verification needed

**3. Customer Verifies**

SMS code, banking app, or biometric

**4. Complete**

Payment proceeds if verified

### 3DS2 vs 3DS1

| Feature | 3DS1 (Old) | 3DS2 (Current) |
| - | - | - |
| User experience | Pop-up, clunky | In-app, smooth |
| Data shared | Minimal | Rich (better decisions) |
| Frictionless auth | No | Yes (low-risk skips verify) |
| Mobile support | Poor | Native |

### Liability Shift

With 3DS, fraud liability shifts:

| Scenario | Who's Liable |
| - | - |
| 3DS used, fraud occurs | Issuing bank |
| 3DS not used, fraud occurs | You (merchant) |

***

## Strong Customer Authentication (SCA)

Required in Europe (PSD2 regulation).

### What Is SCA?

Two of three factors required:

| Factor | Examples |
| - | - |
| **Knowledge** | Password, PIN |
| **Possession** | Phone, hardware token |
| **Inherence** | Fingerprint, face |

### Exemptions

Not every payment needs SCA:

| Exemption | When |
| - | - |
| Low value | Under EUR30 (limits apply) |
| Low risk | Transaction Risk Analysis |
| Recurring | After first payment |
| Trusted merchant | Customer whitelisted you |

We automatically request exemptions when appropriate.

***

## Dispute & Chargeback Protection

When customers dispute charges.

### What Is a Chargeback?

Customer contacts their bank → Bank reverses charge → Money taken from you.

### Chargeback Reasons

| Code | Reason | Prevention |
| - | - | - |
| Fraud | Unauthorized transaction | 3DS, fraud checks |
| Not received | Product not delivered | Delivery tracking |
| Not as described | Product different than expected | Clear descriptions |
| Duplicate | Charged twice | Idempotency keys |
| Subscription | Forgot they subscribed | Clear billing emails |

### Our Protection

1. **Fraud prevention** - Block bad payments upfront
2. **Evidence collection** - Automatic data gathering
3. **Dispute management** - Dashboard to respond
4. **Representment** - We help you fight invalid disputes

***

## Data Security

Beyond payments.

### What We Protect

| Data Type | Protection |
| - | - |
| Payment info | Encrypted, tokenized |
| Customer PII | Encrypted, access-controlled |
| API keys | Hashed, rotatable |
| Logs | Encrypted, retained per policy |

### Access Control

* Role-based permissions
* Two-factor authentication
* Audit logs
* IP allowlisting (optional)

***

## Your Security Checklist

> [card] API Keys
>
> * Use secret keys server-side only
> * Rotate keys periodically
> * Use restricted keys when possible

> [card] Webhooks
>
> * Verify webhook signatures
> * Use HTTPS endpoints
> * Implement idempotency

> [card] Access
>
> * Enable 2FA for all team members
> * Use role-based permissions
> * Review access regularly

> [card] Monitoring
>
> * Watch for unusual activity
> * Set up alerts
> * Review fraud reports

***

## Compliance Certifications

| Certification | Status |
| - | - |
| PCI DSS Level 1 | Certified |
| SOC 2 Type II | Certified |
| GDPR | Compliant |
| CCPA | Compliant |

***

## Security Incident Response

If something goes wrong:

1. **Detection** - Automated monitoring
2. **Containment** - Isolate affected systems
3. **Investigation** - Determine scope
4. **Notification** - Inform affected parties
5. **Remediation** - Fix and prevent recurrence

> [!NOTE]
>
> We've never had a data breach. We intend to keep it that way.

***

## Report a Vulnerability

Found a security issue?

**[security@waffo.ai](mailto:security@waffo.ai)**

We take all reports seriously and respond within 24 hours.

***

## Next Steps

> [card] [Troubleshooting](https://docs.waffo.ai/payments/troubleshooting.md)
>
> Fix common payment issues

> [card] [API Reference](https://docs.waffo.ai/api-reference/introduction.md)
>
> Integrate securely


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.