From f78d4bd3cb9c2badb572643e9604b507afc2df11 Mon Sep 17 00:00:00 2001 From: mbe Date: Wed, 11 Dec 2024 15:26:22 +0100 Subject: [PATCH] bugfix --- paypal-commercetools-extension/src/utils/map.utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paypal-commercetools-extension/src/utils/map.utils.ts b/paypal-commercetools-extension/src/utils/map.utils.ts index 73a5380..876b73c 100644 --- a/paypal-commercetools-extension/src/utils/map.utils.ts +++ b/paypal-commercetools-extension/src/utils/map.utils.ts @@ -144,7 +144,7 @@ const mapCommercetoolsLineItemsToPayPalItems = ( return { unit_amount: { value: mapCommercetoolsMoneyToPayPalMoney({ - centAmount: taxedNetAmount + centAmount: taxedNetAmount != null ? taxedNetAmount / lineItem.quantity : lineItem.price.value.centAmount, fractionDigits,