Automatically create credit memo when a merchant does full refund from OPN Payments's dashboard and from Magento order page, clicks on Sync Order Status button.
Created a class RefundSyncStatus and moved the logic to refund and process credit memo there. Also, added a config to enable partial refund when creating credit memo from Magento admin.
3. Quality assurance
Make an order
Capture the payment
Do a full refund from OPN Payment dashboard
On Magento admin, click on Sync order status button
Go to credit memo
You should see a credit memo generated automatically.
1. Objective
Automatically create credit memo when a merchant does full refund from OPN Payments's dashboard and from Magento order page, clicks on
Sync Order Status
button.Jira Ticket: #618
2. Description of change
Created a class
RefundSyncStatus
and moved the logic to refund and process credit memo there. Also, added a config to enable partial refund when creating credit memo from Magento admin.3. Quality assurance
You should see a credit memo generated automatically.
🔧 Environments: