Signing the request

Last updated: 2019-4-4

MD5 sign type

After the pre-sign string is generated:

  1. Append the MD5 secret key to the pre-sign string to generate a new string.
  2. Calculate the new string with the MD5 signature algorithm (by using the MD5 signature function).

The result 32-byte string is the signature, which is used as the value of the sign parameter.

RSA/DSA sign type

After the pre-sign string is generated, perform the following steps to generate the signature:

  1. Use the RSA/DSA algorithm and the merchant private key to generate the signature.
  2. Encode the signature to a string.

Then, use the string as the value of the sign parameter.

If you have any question, please contact us