mollie / magento2

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

Prevent opening success page multiple times #701

Closed frank-bokdam closed 4 months ago

frank-bokdam commented 8 months ago

Thank you for creating this pull request! To make the best use of your and our time we created this checklist to get the best possible pull requests:

This PR touches code in the following areas (Check what is applicable):

Frontend

Backend

Order Processing (Mollie communication)

Other If you didn't check any boxes above, please describe your changes in this section.

Please describe the bug/feature/etc this PR contains:

Fix for https://github.com/mollie/magento2/issues/687

The idea is to check if the payment was already processed. If true, it makes no sense to reset checkout session data.

Scenario to test this code:

Open the environment and...