adyen-magento2
adyen-magento2 copied to clipboard
[PW-6998] Review refundOrder function
Description
The purpose behind this PR is to update what we do in Helper\Order::refundOrder
.
Instead of using $notification->getOriginalReference()
to check if it's a partial payment, we are switching to using the entries in the adyen_order_payment
table and making sure that adyen_order_payment
is found before calling registerRefundNotification()
in the other if block.
Tested scenarios
- successful full and partial refund scenarios
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication