Customer reported issue that refunds were being unexpectedly imported.
Description
A check was previously added in SyncTransaction::class to validate that our transaction sync feature was enabled for the current order's scope, but the same check was not added to SyncRefund::class. When refunds are updated in Magento, the credit memo updated event will trigger our sync refund observer, which should also check that transaction sync is enabled for the related order scope.
This PR adds the same "feature enabled" check in SyncRefund::class observer.
Context
Customer reported issue that refunds were being unexpectedly imported.
Description
A check was previously added in
SyncTransaction::class
to validate that our transaction sync feature was enabled for the current order's scope, but the same check was not added toSyncRefund::class
. When refunds are updated in Magento, the credit memo updated event will trigger our sync refund observer, which should also check that transaction sync is enabled for the related order scope.This PR adds the same "feature enabled" check in
SyncRefund::class
observer.Performance
Bug fix
Testing
Versions