Security best practices
What we ask of every app that holds merchant data. Each point matches a rule the platform already enforces on its side.
Secrets
- Keep the app secret and the webhook secret on your server only, never in a mobile app or a browser page.
- Read them from the environment or a secrets store, not from code.
- If one leaks, rotate it at once from the app page; the old one stops immediately.
Installation
- Use a new verifier and a new
statefor every install, and compare the state on return. - Register exact return addresses only, starting with
https://. - Exchange codes from your server, never from the browser.
Tokens
- Encrypt tokens at rest, separately for each store.
- Never write a token in logs, error reports or links.
- Refresh in one place, and save the new refresh token before using the access token.
Notifications
- Verify every signature in constant time before reading the body.
- Ignore a repeated id, and do not trust the order of arrival.
- Receive on
https://only, on a public address.
Merchant and customer data
- Ask for the least scope that does the job.
- Use data only for what the merchant approved, and never share or sell it.
- Keep customer data no longer than you need it, and encrypt it.
- When you receive
app.uninstalled, delete that store's data and tokens.
Addresses
- Your notification address must be
https://on a public host; private and internal addresses are refused. - We do not follow redirects when sending notifications.
- Return addresses take no wildcard, no fragment and no user name.
Reporting a security problem
If you find a weakness in Naqllah or in an app, tell us privately before sharing it anywhere, with the steps to reproduce it. Support
Version v1.0.0 Changelog Service status openapi-v1.json Support