Skip to content

Commit

Permalink
Merge pull request #24 from vvasiloi/fix-unit-price
Browse files Browse the repository at this point in the history
Use full discounted item price which takes into account promotions.
  • Loading branch information
loevgaard authored Jan 20, 2021
2 parents 54ff65d + c42ce4b commit 8d88d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Action/ConvertPaymentAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected function convertOrderItems(Collection $items): array
$orderItem->getProductName(),
$orderItem->getVariantName()
),
'item_price' => $orderItem->getUnitPrice(),
'item_price' => $orderItem->getFullDiscountedUnitPrice(),
'vat_rate' => 25 / 100, // @todo Fix
];
})->toArray();
Expand Down

0 comments on commit 8d88d20

Please sign in to comment.