Esempio n. 1
0
        internal virtual async Task <Payments.Payment> ValidateToUpdateStatusAsync(PaymentHubResponse response)
        {
            var payment = await _paymentRepository.GetByBankResponseIdAsync(response.Id);

            if (!payment.IsValid())
            {
                return(payment);
            }

            payment.ValidationResult = new PaymentIsAlreadyValidatedByBankValidation(_eventRepository).Validate(payment);

            return(payment);
        }
 public UpdatePaymentStatusWithBankResponseCommand(PaymentHubResponse response)
 {
     Response = response;
 }