PAYONE-GmbH / magento-2

PAYONE Payment Extension for Magento 2
28 stars 56 forks source link

Product quantity is reduced on payment error #478

Closed simonrl closed 1 year ago

simonrl commented 1 year ago

Hi,

I couldn't find the place where in the module this happens. But here's how to reproduce:

Magento-Version: Open Source 2.4.5-p1

Payone Module Version: 3.6.0

Reproduce

  1. have a product with qty=1
  2. add to cart, go to checkout
  3. enter invalid address data, for example firstname=1, lastname=2, street=3
  4. select "Paypal" as payment method
  5. click "Place order"
  6. after the error message, go back and fix your address
  7. proceed to payment page again
  8. select "Paypal"
  9. click "Place order"

Expected result

  1. product was not ordered, so it should still have qty=1
  2. Get redirected to Paypal & being able to finish the payment

Actual ### result

  1. product has qty 0 (can be seen in backend & database)
  2. Error message: "This product is not in stock", ordering not possible

Any idea how this happens?

Thanks Simon

janteuber commented 1 year ago

Hello @simonrl ,

Thank you very much for your message.

Basically, it should be that the order is set to "canceled" if the attempt is aborted.

Unfortunately, I cannot reproduce the case you describe. What do you mean by enter invalid address data, for example firstname=1, lastname=2, street=3? Can you show me an example? Maybe as a sceen video? Generally PayPal should have no problem with the entered address of the checkout.

Thank you.

FatchipRobert commented 1 year ago

I can not reproduce this issue.

A vanilla Mage 2 with the current version of the Payone module installed behaves like described in your Expected result.

https://user-images.githubusercontent.com/25302155/199491590-5d99a05e-9e05-46c7-b0a3-b57b0f6c6bb6.mov

simonrl commented 1 year ago

Thanks. I'll check it this week and reply if it's really an issue with another module.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.