예제 #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);
        }
예제 #2
0
 public string Serialize(ApiCallbackResponse request)
 {
     Ensure.ArgumentNotNull(request, nameof(request));
     return(Serialize(request.Plain, ResponseRoot));
 }