MdnAgency / magento2-hyva-checkout-mollie

Mollie Payment method for Hyvä Checkout
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Confirm whether "Payment Surcharge" works #4

Open wigman opened 1 year ago

wigman commented 1 year ago

Cart totals are correctly updated when using Payment Surcharge, but the surcharge details are not available.

This has been reported to the original module here: https://github.com/mollie/magento2/issues/546

As of version https://github.com/mollie/magento2/releases/tag/v2.16.0 this is resolved in the GQL response.

Question now is if the feature fully works with this extension. If anyone is able to test and confirm that would be appreciated.

wigman commented 1 year ago

Update (from @vberthet):

Payment fees details are added to "CartPrices" which requires customization in react-checkout core files in order to display them:

  • add fields in src/reactapp/src/api/cart/utility/query/cartQueryInfo.js
  • add fields in src/reactapp/src/api/cart/fetchGuestCart/modifier.js
  • src/reactapp/src/components/totals/Totals.jsx