How to generate HMAC

You are here

1 post / 0 new
naynish
How to generate HMAC
API: https://api-cert.sagepayments.com/token/v1/tokens How to generate a valid token Authorization token = HMAC value of: verb + url + body + merchantId + nonce + timestamp What should be the values for the following, any thing can go wrong here and generate an invalid authorization token Like spaces or capitalizations or incorrect nonce or timestamp verb = Should it be post or POST url = https://api-cert.sagepayments.com/token/v1/tokens body = {     "cardData": {         "number": "4111111111111111",         "expiration": "1219"     } } merchantId = 173859436515 nonce = TEVpf7Qcucjx (WHAT IS THE FORMAT???) timestamp = 1536684766 (WHAT IS THE FORMAT???) Is there any documentation to generate a valid HMAC?