Exemple #1
0
        public async Task ReservePayment(Payment payment)
        {
            await _cardIssuerApi.ReservePayment();

            Console.WriteLine($"[{DateTime.Now.Hour}:{DateTime.Now.Minute}:{DateTime.Now.Second}.{DateTime.Now.Millisecond}] Mokėjimas sėkmingai užrezervuotas. Mokėjimo ID: {payment.Id}");
            await _merchantService.AddPayment(payment);
        }
Exemple #2
0
        public async Task <IActionResult> AddPayment([FromBody] Payment request)
        {
            await _merchantService.AddPayment(request);

            return(Ok());
        }