Prepare the verification boundary
Keep verification on your server and store credentials securely. Confirm the exact signature procedure, credential scope, request representation and replay checks from the approved documentation; this article does not specify PAYJN algorithms, headers or fields.
- Preserve original request bytes if the verification procedure requires them.
- Use credentials assigned to the relevant merchant setup.
- Apply documented timestamp and replay protections where specified.
- Keep credentials and unnecessary personal data out of logs.
Parsing and reserializing a message can change what a signature covers. Make sure middleware does not discard data required for verification before your handler receives it.
Authenticate first, match second
- Validate the message using the documented procedure.
- Resolve the merchant order from your records.
- Match merchant context, provider reference, amount and currency.
- Check that the result permits the proposed business action.
- Persist the verified event and protect processing against duplicates.
A valid signature authenticates the message under the agreed procedure; it does not make an unexpected amount correct. Retain mismatches for investigation without automatically fulfilling the order or replacing the expected amount.
Follow documented acknowledgement rules after durable handling. If storage fails, use the prescribed failure response so an event is not treated as safely received when it could be lost.
Test failures and recovery
Use your PAYJN account's test mode before launch: there is no separate sandbox to build, and PAYJN operations can switch the account between test and live mode for you. Include altered payloads, incorrect credentials, documented replay cases, concurrent deliveries and crashes between storage and processing.
The duplicate webhook guide connects verification with safe crediting. Contact PAYJN for the approved verification and acknowledgement contract.
This help article describes PAYJN's published coverage and general integration practice. It is not the PAYJN API specification; endpoints, field names and current limits are provided in the approved integration documentation.
