public PaymentStatus CheckPaymentStatus(Guid gatewayId, Guid paymentId) { _logger.LogDebug(ServerEventId.CheckPaymentStatus, "Check payment status, gateway '{0}', payment '{0}'", gatewayId, paymentId); var paymentDetail = _repository.PaymentDetails() .Where(p => p.PaymentRequest.Gateway.Id == gatewayId) .Where(p => p.PaymentId == paymentId) .First(); var paymentStatus = _verificationService.CheckPaymentStatus(paymentDetail.PaymentAddress, paymentDetail.AmountBtc); return(paymentStatus); }
public IActionResult Details(int?id) { if (id == null) { return(NotFound()); } var payment = _paymentsRepository.PaymentDetails(id); if (payment == null) { return(NotFound()); } return(View(payment)); }