mollie / magento2

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

Utilise ObjectManagerInterface instead of ObjectManager #536

Closed indykoning closed 2 years ago

indykoning commented 2 years ago

Using ObjectManager directly causes exceptions in the objectmanager while uncanceling orders. Using ObjectManagerInterface instead fixes all of these problems, in the rest of this project the interface is already used.

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:

When updating the order status of a canceled order with payment method Sepa Bank Transfer which has been paid an exception will be thrown while uncancelling the order.

Scenario to test this code:

Open the environment and...