mollie / magento2

Mollie Payments for Magento 2
https://www.mollie.com
Other
101 stars 53 forks source link

No payment methods with subtotal €0.00 #186

Closed chris102948 closed 5 years ago

chris102948 commented 5 years ago

In our webshop we sell 'free' products and customers only have to pay for shipping. So when customers go to checkout, the subtotal will be € 0.00, and only when the customer selects the shipping method, the total will be refreshed to for example € 6.95.

The issue is that the Mollie extension is not refreshing the payment methods, at least not in our setup. Therefor, no payment methods are showing. If we refresh the page after selecting the shipping method, the methods do show up.

In mollie.log we have this, which makes sense:

[2019-08-03 11:58:28] Mollie.ERROR: error: Function: getActiveMethods: Error executing API call (400: Bad Request): The amount is lower than the minimum. Field: amount. Documentation: https://docs.mollie.com/guides/handling-errors [] []

Default Magento2 payment methods do refresh succesfully, for example The Check/Money Order method will show up after selecting the shipping method.

Also the payment methods of our other PSP (Pay.nl) do refresh succesfully when we try that extension: https://github.com/paynl/magento2-plugin

But when we enable Mollie, it does not work. Is there any way to disable the check of minimum amount, or make the API check again after selecting shipping method?

Our setup:

If you need any information or a test-envinrment to see the issue, please let me know.

Schermafbeelding 2019-08-03 om 14 03 08

After refreshing (f5):

Schermafbeelding 2019-08-03 om 14 21 28
Frank-Magmodules commented 5 years ago

HI @GetMagented , Thanks for your message on this, we were able to reproduce this in our own environment and we are getting this fixed a.s.a.p., i will update this issue once we have a fix.

Frank-Magmodules commented 5 years ago

Hi @GetMagented, thanks again for detailed issue report. The issue has been resolved in the v1.7.0 release. We are closing this issue now but please feel free to reopen the issue if this still occurs.

chris102948 commented 5 years ago

Thanks it has been fixed when selecting a shipping method. When I change the shipping method, the payment methods of Mollie are refreshed succesfully. However to make things a little bit more complicated, we are using Amasty Extra Fee extension which makes it possible for us to charge extra fees in checkout. At this moment we still have an issue in this situation:

  1. Customer adds our free product to cart
  2. Customer selects a free shipping method
  3. Customer selects a paid Extra Fee service.

In this case the customer only has to pay for the extra fee. Subtotal will show a positive amount but Mollie does not take this into account. Is there any way that the mollie payment methods can be refreshed based on subtotal instead of shipping method, to make it compatible with third party extensions?

Marvin-Magmodules commented 5 years ago

Hi @GetMagented can you send me the store url by email so I can check how this is implemented in the checkout, as I'm not 100% sure about this?

And when setting a min value on Check/Money Order method, does this show up after selecting a paid Extra Fee Service?

joosteggink commented 5 years ago

@Marvin-Magmodules we are coping with a similar issue. We are using:

https://store.fooman.co.nz/magento-extension-payment-surcharge-m2.html

When we use the Klarna payment method we charge an extra fee. But the Mollie extension does not accept this. I already addressed this issue to Mollie. They told me that this feature is scheduled for Q4. Maybe you can push this al little bit?

Marvin-Magmodules commented 5 years ago

Hi @joosteggink this is a different issue from @GetMagented . You are looking for support for payment fee when using the Orders API. We have this on the roadmap for Magento 2 (built in fee that can be set) and already implemented in the Mollie Magento 1 module.

The issue with @GetMagented is that when setting an Extra Fee the payment methods are not refreshed. This is an issue that should be resolved by the Amasty module. However this Extra Fee can only be used when the payments are done using the Payments API, as for the Orders API we need to make this compatible (different issue).

joosteggink commented 5 years ago

@Marvin-Magmodules, thank you for the clarification. When do you expect this feature to go live?

Marvin-Magmodules commented 5 years ago

Hi @joosteggink it's next on the roadmap! Will update you as soon as I have more info on this.