Esempio n. 1
0
        public static string Execute(TokenHistoryRequest request, Options options)
        {
            string hash = CreateSignature(request, options.SecretKey);
            var    url  = options.Url + request.TOKEN + "/history" + "?merchant=" + request.MERCHANT + "&timestamp=" + request.TIMESTAMP + "&signature=" + hash;

            return(HttpCaller.GetDataToUrl(url));
        }
Esempio n. 2
0
        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);
        }