Email ahmed@elbanby.com with the details. Please do not open a public issue for anything that could put a merchant's payments at risk. Expect an answer within a few days.
- Gateway secrets (
secret_key,hmac_secret) stay on the server and out of logs. Onlypublic_keyis safe in a browser. - A callback is untrusted until its signature verifies. The webhook endpoint verifies before it dispatches anything, and it compares digests in constant time.
- The
redirection_urlis not signed. It is never used to change order state. - Idempotency keys are hashed before they touch the cache, so a key cannot be used to read another key's entry.
- Replay protection is cache based. If the cache is flushed between two deliveries of the same callback, the transaction is processed twice. Make your listener idempotent as well.
- Paykit does not rate-limit the webhook endpoint. Put it behind your usual middleware if that matters to you.