Skip to content

Commit 8d88d20

Browse files
authored
Merge pull request #24 from vvasiloi/fix-unit-price
Use full discounted item price which takes into account promotions.
2 parents 54ff65d + c42ce4b commit 8d88d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Action/ConvertPaymentAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ protected function convertOrderItems(Collection $items): array
171171
$orderItem->getProductName(),
172172
$orderItem->getVariantName()
173173
),
174-
'item_price' => $orderItem->getUnitPrice(),
174+
'item_price' => $orderItem->getFullDiscountedUnitPrice(),
175175
'vat_rate' => 25 / 100, // @todo Fix
176176
];
177177
})->toArray();

0 commit comments

Comments
 (0)