mollie / magento2

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

Payment method not correctly sent in combination with onestepcheckout/iosc #492

Closed MichielVrins closed 2 years ago

MichielVrins commented 2 years ago

Describe the bug When using mollie with onestepcheckout/iosc version 1.2.053 (but also seen this bug on previous versions) the set-payment-information call sends the previously selected payment method in the api call. Request url: est/nl/V1/guest-carts//set-payment-information Read this as, when you select paypal and then switch to ideal, it will send a request to select paypal. This normally is not an issue as it gets sent again before you get redirected to mollie and then it will send the correct value. But it is a problem when the price depends on the payment method, when forinstance applying surcharge. Used versions

To Reproduce Steps to reproduce the behavior:

  1. Have onestepcheckout/iosc installed with mollie and onestepcheckout enabled.
  2. Select a different payment method and observe the set-payment-information api call in the network tab.

Expected behavior When using mollie in combination with onestepcheckout/iosc I except that the selected payment method gets correctly sent to magento and, when applicable, the surcharge is shown after selecting a payment method.

Actual behavior The previously selected payment method gets sent to magento and the surcharge does not show untill you press it twice.

Screenshots After selecting the ban-contact payment method, the set-payment-method clearly sends creditcard as payment method. image

Frank-Magmodules commented 2 years ago

HI @MichielVrins ,

Thank you for opening this issue, we are happy to share that we've just released the new 2.7.0 version where we have covered this. Thank you for the detailed issue report.

We are closing this issue now but please feel free to reopen the issue if this still occurs.