1. Home
  2. Interswitch Security Headers
  3. Header Computation
  4. Signature Computation

Signature Computation

The signature method should be SHA1 calculated against the data elements above in the order in which they are listed.
The pseudo-code below shows how this can be done with any programming language of choice:

String baseStringToBeSigned = http_verb + “&” +  percent_encode(url) + “&” + timestamp + “&” + nonce + “&” + client_id + “&” + shared_secret_key;

String signature = Base64(Hash(stringToBeSigned));

Was this article helpful to you? Yes No 1

How can we help?