adyen-magento2 icon indicating copy to clipboard operation
adyen-magento2 copied to clipboard

[PW-6998] Review refundOrder function

Open RokPopov opened this issue 2 years ago • 1 comments

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

RokPopov avatar Oct 05 '22 11:10 RokPopov

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Oct 18 '22 11:10 sonarqubecloud[bot]