Missing discount amount/coupon code on MSP payment page
Is your feature request related to a problem? Please describe. Yes, the issue is that on the payment page of Multisafepay, there is no line that displays the discount code and the corresponding discount amount. While the grand total amount is correct, the discount itself is not shown.
Describe the solution you'd like I would like a feature that shows the applied discount code and the amount of discount it provides on the payment page. This information should be clearly displayed alongside the other cost breakdowns.
Describe alternatives you've considered As an alternative, I have considered manually calculating and verifying the discount amount before proceeding to the payment page. However, this is inconvenient and prone to errors. It would be much more user-friendly to have this information displayed directly on the payment page.
Additional context Providing a visual indication of the discount code and amount will enhance user experience by offering transparency and assurance that the discount has been correctly applied. It also aligns with standard e-commerce practices where customers expect to see a detailed breakdown of costs, including discounts.
Hi @rhengeveldbordex ,
Thank you for your feedback. We'll look into it first and come back to you later with more information.
Hi @rhengeveldbordex ,
We've tested this thoroughly and came to the following conclusions:
In Magento/Adobe Commerce, an overall cart discount can be applied on a per item basis. This means that, for example, if you add a cart discount of €5,- on a cart with 2 items of €10,- including taxes each, the items will each have a discount of €2,50 with the amount of both corresponding to €7,50 including taxes each. To create a separate order line with the discount shown, means that we have to subtract all the item discounts and add them together so that we can show them as a separate order line. For the items themselves, we would then have to use their base price excluding taxes without the discount (because the taxes already have to be subtracted to be shown on another line) which is €7,90 for each item.
The problem with this, is that it is not clear for the customer how much discount exactly has been deducted from the item. So whenever the customer asks for a refund of one of the items, in Magento/Adobe Commerce the refund will be €7,50 including taxes. But in the MultiSafepay environment the item had a base price of €7,90 excluding taxes. In the MultiSafepay environment there is currently no possibility to tie a part of the separate discount order line to the item. So you would have to discount in MultiSafepay a separate amount of €7,50 including taxes, but this looks a bit strange, because the item shows as €7,90 (because the taxes are on another line), so it might not be exactly clear why the customer only received an amount back of €7,50. It gets even more complicated when the amounts and taxes are more arbitrary as shown in this screenshot:
To make it easier for the customer and merchant to see exactly how much discount an item has, we decided to leave the behaviour as it currently is, but add a mention of all the applied discounts on the order line itself, so that it will be clear which item has it's price deducted by which discount as shown in the following example:
We've added a setting for this in the new release of our module: https://github.com/MultiSafepay/magento2/releases/tag/3.9.0
I'm closing this issue for now, if there are more questions in the future, feel free to create a new comment or open a new issue.