OFFLINE-GmbH / oc-mall-plugin

:convenience_store: E-commerce solution for October CMS
https://offline-gmbh.github.io/oc-mall-plugin
MIT License
170 stars 113 forks source link

[bug] You can avoid payment fee if you pay your order after using payment button #824

Open PubliAlex opened 3 years ago

PubliAlex commented 3 years ago

Hello,

I noticed a bug when you decide to pay an order later using the payment button you find in your order history. The order total is not updated and you can bypass the fee of the chosen payment method. Can be reproduced on the default mall theme.

To reproduce :

After a quick investigation, it seems the reason of that is the paymentMethodSelector component that does not update the order totals in the setData() function. It should update all order totals by taking the payment fee into consideration.

Best regards,

tobias-kuendig commented 3 years ago

Thank you for this report. This is going to be hard to fix as the totals calculator currently does not work with Order models.