We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0fee09 commit 6d188b8Copy full SHA for 6d188b8
1 file changed
src/Smartstore.Modules/Smartstore.PayPal/Client/PayPalHttpClient.cs
@@ -599,7 +599,7 @@ private async Task<List<PurchaseUnitItem>> GetPurchaseUnitItemsAsync(ShoppingCar
599
600
foreach (var item in model.Items)
601
{
602
- var cartItem = cart.Items.Where(x => x.Item.ProductId == item.ProductId).FirstOrDefault();
+ var cartItem = cart.Items.FirstOrDefault(x => x.Item.Id == item.Id);
603
var taxRate = await _taxService.GetTaxRateAsync(cartItem.Item.Product);
604
var calculationContext = await _priceCalculationService.CreateCalculationContextAsync(cartItem, calculationOptions);
605
var (unitPrice, subtotal) = await _priceCalculationService.CalculateSubtotalAsync(calculationContext);
0 commit comments