Ejemplo 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);
        }
Ejemplo n.º 2
0
        public void Apply(ApiRequest request)
        {
            request.Plain.MerchantId = Credentials.MerchantId;
            request.Plain.Salt       = SaltProvider.Generate();

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

            request.Plain.Signature = Sign(scriptPath, values);
        }