Exemplo n.º 1
0
        public ActionResult SignFields(IDictionary <string, string> fields)
        {
            var result = _secureAcceptanceSecurity.Sign(fields);

            return(Json(new
            {
                result
            }));
        }
Exemplo n.º 2
0
        // CyberSource Connector code changes
        private bool IsSignatureChecked()
        {
            var parameters = new Dictionary <string, string>();

            foreach (var key in Request.Form.AllKeys)
            {
                parameters.Add(key, Request.Params[key]);
            }
            var computedSignature     = _secureAcceptanceSecurity.Sign(parameters);
            var requestSignatureValue = Request.Form["signature"];

            return(computedSignature == requestSignatureValue);
        }