Migration guide - RefundEdit on GitHub
Upgrading from version 4.* to version 5.*
Version 4 of the Refund module no longer uses
SalesAggregatorFacade , it was replaced with
RefundCalculator business class must now replace
RefundToSalesAggregatorInterface with the
To learn more see Migration Guide - Calculation.
Upgrading from version 2.* to version 3.*
To migrate the Refund module from version 2 to version 3, follow these steps:
Version 3 of the Refund module was completely rebuilt; the
SalesAggregator is used to get a calculated
OrderTransfer and plugins are used to change the refundable amount calculation behaviour.
RefundFacade has completely changed and exposes only two methods.
Check your code and where you make use of the
RefundFacade change your implementation to use the new methods from the
These methods are:
RefundFacade::calculateRefund(array $salesOrderItems, SpySalesOrder $salesOrderEntity)`
RefundFacade::saveRefund(RefundTransfer $refundTransfer)You need to:
- Rename method
RefundFacade::calculateRefund()and pass needed arguments to it.
calculateRefund()will return a
RefundTransferwhich holds the refundable amount.
- When refund process of payment provider is done and accepted, pass the
- Refund view in sales order detail page can be activated by adding
'refund' => '/refund/sales/list'to
For submitting the form