omise / omise-magento

Omise Magento Plugin
https://docs.opn.ooo/magento-plugin
MIT License
34 stars 19 forks source link

[ENGA3-618]: Credit memo will be automatically created for full refund if merchant clicks Sync status update button on order. #398

Closed aashishgurung closed 1 year ago

aashishgurung commented 2 years ago

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:

sonarcloud[bot] commented 1 year ago

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

0.0% 0.0% Coverage
0.0% 0.0% Duplication