Ejemplo n.º 1
0
        public string CreatePayment(Payment payment)
        {
            var status = _paymentsManager.CreatePayment(payment);

            var response = new CreatedPaymentResponse
            {
                StatusCode = _statusCodes.GetStatusCode(status),
                Message    = "Payment created succesfully ."
            };

            return(JsonConvert.SerializeObject(response));
        }