This guide explains how to generate and use the hash key required for secure API communication. The hash mechanism ensures that requests are authenticated and have not been altered during transmission.Hash_key should be obtained from the request, and secret_key is the merchant application's secret key (app_secret) provided by Sipay.The hash key is a mandatory parameter and must be included in the request.
Required parameters may vary depending on the endpoint being used.
When the relevant endpoint is accessed and a preferred programming language is selected in the request section, a sample HASH implementation can be found and copied directly from there.The following parameters must be sent in the same order as specified.
Important Notes#
Each request should generate a new hash key.
Ensure that all parameters are sent in the correct order.
Any mismatch in parameter values will result in hash validation errors.
Common Errors#
Incorrect parameter order.
Using different hash/encryption algorithms.
The same hash key algorithm and parameters can be used for payment transactions (ex: Non Secure and 3DS Payment.)The parameters required to decrypt the hash are as follows:#