public async Task <PaymentDeductCommandResult> Handle(PaymentDeductCommand command, CancellationToken cancellationToken) { var customer = await _customerRepository.GetById(Guid.Parse(command.CustomerId)); /*var paymentIntent = */ await _stripeService.PaymentDeduct(command); customer.LastPaymentDeduct = command.Amount; customer.LastPaymentDeductOn = DateTime.Now; var response = await _customerRepository.Update(customer); if (response) { return(new PaymentDeductCommandResult() { //Payload = _mapper.Map<CustomerDto>(customer) IsSucceed = true }); } else { return(new PaymentDeductCommandResult() { //Payload = null IsSucceed = false }); } }