Exemplo n.º 1
0
        public void Apply(ApiCallbackResponse response)
        {
            response.Plain.Salt = SaltProvider.Generate();

            string scriptPath = response.Endpoint.GetScriptPath();
            List<string> values = _valueProvider.GetValuesToSign(response.Plain);

            response.Plain.Signature = Sign(scriptPath, values);
        }
Exemplo n.º 2
0
 public string Serialize(ApiCallbackResponse request)
 {
     Ensure.ArgumentNotNull(request, nameof(request));
     return(Serialize(request.Plain, ResponseRoot));
 }