Invalid HMAC GitHub csharp

You are here

2 posts / 0 new
Last post
rciappsupport
Invalid HMAC GitHub csharp
Hi, I used the GitHub csharp copy to post payment but it return an error on me. Of course, i changed the Merchant ID, Merchant Key, Client ID and Client Secret Key. When i tried my credential to post payment in API Sandbox, it works fine.  Please advise. Thank you. Here is the error: Server Response: The remote server returned an error: (401) Unauthorized.API Response:       {      "code": "100003",      "message": "Invalid HMAC",      "info": "https://developer.sagepayments.com/docs/errors#100003",      "detail": "Please refer to the documentation for information on HMAC calculations"      }    
thomash
Re: Invalid HMAC GitHub csharp

Thanks for your post, we're happy to assist. With the Direct API the "Invalid HMAC" issue can

point to a number of factors. However, the most basic is the time. The Direct API server requires

the timestamp to be within a specific time constraint. If you are off too much you will receive this

error. Please check your system time and make sure it either synchronizes with the Internet for your

timezone or at least is set to match it. If this is not the issue, the next thing to check is your

credentials. We do not want you to post your credentials here. If you've checked the time and

found that is not the issue, try the sample with our included test credentials. If it works with them,

then reach out to us directly at [email protected]. We'll work with you to verify you have

properly implemented your credentials (merchantId, merchantKey, clientId, and clientSecret).

 

-SDKSupport

Log in or register to post comments