MAC Data Computation
The macdata is one of the data elements in the Request. The hash method should be SHA512 calculated against the data elements specified below.
MAC Data Computation for Authorize Transaction
The data elements are subscriberId, providerToken, transactionType, paycode, shared secret key (to be shared between Interswitch and the MMO).
The pseudo-code below shows how this can be done with any programming language of choice:
String baseStringToBeSigned = subscriberId + “&” + providerToken + “&” + transactionType + “&” + paycode + “&” + shared_secret_key;
String macdata = Base64(Hash(stringToBeSigned)); |
MAC Data Computation for Reverse Transaction
The data elements are subscriberId, paycode, shared secret key (to be shared between Interswitch and the MMO).
The pseudo-code below shows how this can be done with any programming language of choice:
String baseStringToBeSigned = subscriberId + “&” + paycode + “&” + shared_secret_key; String macdata = Base64(Hash(stringToBeSigned)); |