How we handle money, keys and data
Plain answers to the questions a careful business should ask before connecting its payment accounts to anyone. Everything here describes how the software works today. We do not claim certifications or audits we do not have.
What Paymentsnp keeps
- Payment, order and customer records for your workspace
- Your provider credentials, encrypted
- An audit log of changes
What Paymentsnp never has
- Your customers' money
- Customer wallet passwords, PINs or OTPs
- A way to show your secrets to anyone, staff included
Your customer pays you, not us. We see the proof, never the funds.
When a customer pays Rs 1,500 with eSewa, that Rs 1,500 lands in your eSewa merchant account. eSewa settles it to your bank on the schedule and fees you agreed with them. Paymentsnp receives the proof of payment so it can tell your system the order is paid.
- CustomerPays in eSewa, Khalti or a bank app
- Provider pageTakes the payment on your merchant account
- Your merchant accountReceives the money, settles to your bank
- PaymentsnpChecks the provider's answer, records it, tells your system
What we protect, and how.
Grouped by area. Each line describes something the platform does today.
| Control | How it works |
|---|---|
| Credentials and secrets | |
| Encryption | Provider credentials, SMTP and SMS tokens, webhook secrets and two-factor secrets are encrypted with AES-256-GCM. The additional authenticated data ties each one to its workspace and connection, so a value copied elsewhere does not decrypt. |
| Encryption key | Held in the server environment, outside the database. Rotation is supported but manual. There is no managed key service. |
| Who can read them | Nobody through the product. Secrets are never returned to a browser, to platform administrators or to logs. |
| Versions | Every save creates a new credential version, and a payment in progress keeps the version it started with. |
| Accounts and sessions | |
| Passwords | Hashed with scrypt and checked in constant time. Your last five passwords cannot be reused. |
| API keys and one-time tokens | Shown once, then stored only as SHA-256 hashes. Keys carry scopes and can have an expiry date, an IP allowlist and their own rate limit. |
| Sessions | An httpOnly cookie (secure in production). Every request that changes something needs a double-submit CSRF token and an allowed Origin. |
| Authorization | Fails closed: a route without an access rule answers 403. Roles are read again on every request, so a removed teammate loses access at once. |
| Two-factor sign-in | Optional TOTP with ten one-time recovery codes for merchants; required for platform administrators. |
| Signed-in devices | A list of your sessions with the option to sign others out. A password reset signs out every session. |
| Isolation | |
| Between businesses | Postgres row-level security, forced on every tenant table. The application's database role cannot bypass it. |
| Test and Live | Kept apart. Test API keys never see live data, and the Sandbox cannot be switched on in production. |
| Input and output | |
| Requests | Strict schemas reject unknown fields. Every query is parameterized SQL. |
| Exports | CSV cells that could run as spreadsheet formulas are neutralised. |
| Logo uploads | Checked by their actual bytes (PNG, JPEG or WebP), up to 200 KB. SVG is refused. |
| Browser | |
| Framing | Content-Security-Policy frame-ancestors 'none' and X-Frame-Options DENY: no Paymentsnp page can be placed inside another site. |
| Other headers | X-Content-Type-Options nosniff, Referrer-Policy strict-origin-when-cross-origin, and HSTS in production. A wider content security policy runs in report-only mode and is not enforced yet. |
| Rate limits | |
| Per client | 120 requests a minute per IP address, with tighter limits on sign-in, registration, password reset, email verification, public checkout and payment links. |
| Per API key | Each key can carry its own limit. At most 30 invalid API keys are accepted per IP address per minute before requests are refused. |
| Webhooks | |
| Destinations | HTTPS only, on ports 443 or 8443, to public addresses. The address is checked against private and internal ranges on every attempt, and the connection is pinned to the checked IP. |
| Signatures | HMAC-SHA256 over a timestamp and the raw body, in the Paymentnp-Signature header. No redirects are followed. |
| Audit | |
| Audit log | Credential saves, API key changes, team and settings changes, refunds and administrator actions are recorded with who, what and when. |
Who can see what. Including us.
What platform administrators cannot do
Paymentsnp administrators work in a console separate from the merchant dashboard, and two-factor sign-in is required there. They can see operational data such as payment records to help with support. They cannot:
- see your API keys, provider credentials or any other secret
- sign in as you or act inside your workspace
- issue refunds or payouts
- permanently delete a workspace
What we never see at all
Customers sign in and approve payments on the provider's own page: eSewa's, Khalti's, or Fonepay's QR scanned in their bank app.
- wallet usernames, passwords and PINs
- one-time passwords (OTPs)
- mobile banking credentials
Paymentsnp never asks a customer for any of these.
A screenshot is not a payment. Neither is a thank-you page.
Screenshots can be edited
An image of a wallet receipt proves nothing about your merchant account. Paymentsnp does not accept one as evidence.
Return links can be opened by anyone
A customer arriving at your success URL is not proof of payment. Your server should wait for the webhook or ask the API.
Only provider evidence counts
An order is marked paid when the provider confirms it for the right merchant, the right order and the exact amount.
When a payment is unclear. We never guess our way to paid.
Networks drop and providers time out. Every payment attempt is in one of these states.
| State | What it means | What happens next |
|---|---|---|
| Succeeded | The provider confirmed the payment for this order and the exact amount. | The order is paid and your webhook is sent. |
| Pending | The customer is on the provider's page, or the provider says it is still processing. | eSewa and Khalti payments are re-checked in the background. |
| Unknown | The provider did not answer clearly, for example a timeout. | Treated as possibly paid: no second payment can start until it is resolved. |
| Failed | The provider clearly said no. | The customer can try again. |
| Expired | Nobody finished within 30 minutes. | If eSewa or Khalti later confirm a payment, it is still recorded. |
| Manually confirmed | You recorded a Fonepay payment from your Fonepay panel reference. | Audited and labelled as yours, not as provider verified. |
Infrastructure, described honestly.
Paymentsnp runs on one server today. We do not claim redundancy, multiple regions or an uptime figure, and there is no public status page.
What a single server does protect is the order of events. A payment and the event that announces it are written in the same database transaction, so a crash cannot lose a webhook. Unfinished eSewa and Khalti payments are re-checked in the background, and a late success is still recorded.
| Servers | A single server running the web app, API and database in Docker containers |
|---|---|
| Open ports | Web (80 and 443) and SSH only |
| Database and API | Reachable only inside the Docker network, never directly from the internet |
| Certificates | Issued automatically, including for verified custom checkout domains |
Reviews and reporting. What has been checked, and how to tell us.
Reviews so far
The team carried out an internal security review dated 17 October 2026 and fixed its findings. It was done by the people who build Paymentsnp. It is not an independent audit, a penetration test by a third party, or a certification.
Paymentsnp holds no security certification and does not claim one. Before live payments, each provider runs its own approval (UAT) with your merchant credentials.
Reporting a vulnerability
If you find a security problem in Paymentsnp, send it through the contact form with the topic Security report. It is stored and sent to the platform administrators by email. Include the steps to reproduce it, and do not access other people's data or disrupt the service while testing.
Your part. Security is shared with your own systems.
Keep API keys on your server
Secret keys never belong in a browser, a mobile app or a public repository. Give each key only the scopes it needs, and add an IP allowlist and an expiry where you can.
Verify every webhook
Check the Paymentnp-Signature header against the raw body with your webhook secret, and reject old timestamps. Our SDKs include helpers for this.
Turn on two-factor sign-in
Every teammate with access to gateways, keys or exports should use it. Remove people who no longer need access.
Develop in Test
Use np_test_ keys and the Sandbox while building. Switching the dashboard to Live asks for confirmation for a reason.
Reconcile settlement
Upload your provider's settlement file under Reconciliation to confirm that verified payments reached your bank.
Trust questions
Does Paymentsnp collect customer wallet passwords or OTPs?
No. Customers sign in and approve payments on the provider's own pages. Paymentsnp never asks for wallet credentials.
Is Paymentsnp certified or independently audited?
No. The only review so far is the team's own internal security review of 17 October 2026, whose findings were fixed. Provider approval and UAT are completed per merchant before live payments.
Can Paymentsnp staff see my gateway secrets?
No. Platform administrators can see operational data such as payment records to help with support, but secrets are never returned to any screen, including ours.
What happens if a payment succeeds after expiry?
Expiry stops new attempts but is not proof that no money moved. If eSewa or Khalti later confirm the payment, it is still recorded and your webhook is sent.