예제 #1
0
 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));
 }
예제 #2
0
 protected virtual Task <bool> IsUserAllowedToPayAsync(Order order, EShopPaymentEto payment)
 {
     return(Task.FromResult(order.CustomerUserId == payment.UserId));
 }