Security & compliance
What ePay protects for you, what remains your responsibility, and how to keep your integration's PCI scope minimal.
PCI DSS scope
With the hosted checkout, card data never touches your systems or ePay's checkout page. Payers enter card numbers, expiry and CVC only on the acquiring bank's payment page (in the sandbox, on the bank simulator), which also performs 3-D Secure. Your servers only ever see the result: brand and last four digits.
That keeps a standard redirect integration in the lowest PCI DSS validation tier (typically SAQ A — confirm with your acquirer or QSA). To stay there:
- Never ask payers for card details on your own pages, and never put a card form in front of the redirect.
- Serve the pages that link to checkout over HTTPS so the redirect can't be tampered with.
- Don't embed the checkout in an iframe (it refuses to be framed anyway).
Transport security
- All ePay hostnames are served over HTTPS only; send every API request to an
https://URL. - Webhooks are only delivered to public HTTPS endpoints; private, loopback and link-local addresses are refused to prevent server-side request forgery.
- Keep TLS certificate verification on in your HTTP client — don't disable it to "fix" errors.
Key and secret hygiene
| Secret | Where it lives | If it leaks |
|---|---|---|
Secret API key (sk_live_…) | Server environment / secrets manager | Revoke it in Developers → API keys, create a new one |
Webhook signing secret (whsec_…) | Server environment | Replace the endpoint (new secret), then delete the old one |
| Legacy credential | Plugin settings / server | Rotate it in Developers → Legacy integration |
- Give every key the fewest scopes it needs, and use separate keys per system so you can revoke one without affecting others.
- Never commit keys, never log full request headers, never send keys to browsers or mobile apps.
- Watch last used on your keys and the Activity log for unexpected use.
- Enable TOTP two-factor authentication for every dashboard user and remove team members who leave.
Verifying what you receive
- Fulfil only from verified data: a webhook whose
Epay-Signatureyou verified (with the timestamp check), or an API response you fetched with your own key. - Never trust redirect query parameters (
status=succeeded) — they're user-controlled. - Compare amounts: check
amountandcurrencyagainst your order before fulfilling. - Be idempotent: process each
event.idonce and make fulfilment safe to repeat.
How ePay protects the platform
- Production and sandbox are separate deployments with separate databases, secrets and keys; keys are rejected outside their environment.
- API keys and webhook secrets are stored only as keyed hashes or encrypted at rest; full keys are shown to you once.
- Financial records use a double-entry ledger with append-only history; refunds above the threshold and bank-account changes require a second reviewer.
- Dashboards use httpOnly cookies, CSRF protection and optional TOTP; every action is recorded in an audit log.
- Requests are rate-limited per key and per IP.
Reporting a vulnerability
Report it privately to ePay support, marked Security, with details and steps to reproduce — don't open a public issue. Please don't test against other merchants' data or production payments; use your own sandbox account.

