Nayax eCom SDK employs a robust system of unique security keys and hashed signatures to authenticate integrators and prevent unauthorized access. Each Integrator receives a minimum of two sets of keys:Documentation Index
Fetch the complete documentation index at: https://devzone.nayax.com/llms.txt
Use this file to discover all available pages before exploring further.
- Secret Token: A unique, pre-shared token (typically 66 characters long) used for the
/validate-merchantmethod. Nayax can, at the integrator’s request, provide additional authentication keys to distinguish between Nayax Merchants. - Sign Key: Used for signing requests by generating a hash. Integrators receive one Sign Key and one Sign Key ID.
Sign Key and attaching two mandatory headers: Signature and IntegratorId.
Pre-requisites
Before you begin, make sure you have the following resources:- A valid Sign Key (shared by Nayax, typically 16 characters)
- The associated Sign Key ID
Authenticate Requests
Once you have the required resources, you can start authenticating your request to eCom SDK by following the steps below:-
Prepare the JSON body with all the necessary fields (e.g.,
actorId,Cipher, etc.). Here’s a simplified example for the/validateMerchantendpoint: -
Prepare the
IntegratorIdheader using your Sign Key ID. -
Serialize the JSON request content, removing whitespace and line breaks. Do not alter values or add escape characters unless they are part of the actual payload.
-
Generate the
Signatureheader following the steps below:- Concatenate the serialized request and the Sign Key, separated by ”;”.
- Hash the result using SHA-256 (UTF-8 encoded) and use the output as your
Signatureheader:
- Concatenate the serialized request and the Sign Key, separated by ”;”.
-
Add the
IntegratorIdandSignatureheaders to your request.
/validateMerchant method was used, but the process is relevant for any eCom SDK method request and response.