Beispiel #1
0
 public Handler(MongDbContext db, IPayPau payPau, Jobs jobs, IUserSession userSession)
 {
     _userSession = userSession;
     _db          = db;
     _payPau      = payPau;
     _jobs        = jobs;
 }
Beispiel #2
0
        public void Pay(IPayPau payPau, string creditCard)
        {
            var paymentId = payPau.Charge(creditCard, Amount).TransactionId;

            PaymentId = paymentId;
            Status    = TopupStatus.Paid;
            PaidAt    = DateTime.Now;
        }