public static string Execute(TokenHistoryRequest request, Options options) { string hash = CreateSignature(request, options.SecretKey); var url = options.Url + request.TOKEN + "/history" + "?merchant=" + request.MERCHANT + "×tamp=" + request.TIMESTAMP + "&signature=" + hash; return(HttpCaller.GetDataToUrl(url)); }
public static string CreateSignature(TokenHistoryRequest request, string secretKey) { string HASHED_CONTENT = string.Empty; var hashString = request.MERCHANT; hashString += request.TIMESTAMP; HASHED_CONTENT = Helper.CreateSha256Hash(hashString, secretKey); return(HASHED_CONTENT); }