public virtual async Task <bool> IsValidPaymentAsync(Order order, EShopPaymentEto payment, EShopPaymentItemEto paymentItem) { return(await IsStoreIdCorrectAsync(order, paymentItem) && await IsPaymentPriceCorrectAsync(order, paymentItem) && await IsUserAllowedToPayAsync(order, payment)); }
protected virtual Task <bool> IsUserAllowedToPayAsync(Order order, EShopPaymentEto payment) { return(Task.FromResult(order.CustomerUserId == payment.UserId)); }