mollie / magento2

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

Cart is being restored when paymentStatus is equal to PENDING with PayPal #562

Closed joggienl closed 1 year ago

joggienl commented 1 year ago

Describe the bug In test mode I noticed that when I do an order and select paypal as payment method the cart in magento gets restored if the payment status is "PENDING". I do not think that should happen.

Used versions

To Reproduce

It is a bit hard to describe every possible step so I hope this helps. If not, let me know!

At this point your site will load the configured return url

The cart_id that was previously used with placeOrder is restored and "active" (depending on how you use this).

Expected behavior

When PENDING is the state of a payment, the cart should not be restored. Just like the OPEN state with iDeal.

Actual behavior

The cart_id that you used for place_order will be restored and the customer is able to use the same cart to order again. This causes trouble in other systems.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

joggienl commented 1 year ago

Perhaps related but not for sure:

joggienl commented 1 year ago

We've just updated our instance to v2.16.0 and I can confirm the same issue happens here as well.

Frank-Magmodules commented 1 year ago

HI @joggienl 

We are happy to share that we've just released the new 2.17.0 version where we have fixed this issue now. Thank you for opening this issue and for the detailed description in the comments. We are closing this issue now but please feel free to reopen the issue if you need any help on this.

joggienl commented 1 year ago

Thanks @Frank-Magmodules , we'll check the update!

joggienl commented 1 year ago

@Frank-Magmodules I've detected something weird after we upgraded to 2.17.0, could be related to this hence I am adding a comment here as well. I've created a new issue #573.