In the previous video I have shown how to refund a payment from the Magento 2 backend.
Now I will show how to do so from the Omise dashboard.
For the simplicity, the extension is set up to auto capture the payments for the returning customers.
Let’s make a test order.
The order is placed, and the payment amount is captured from the customer’s bank card.
The customer can see the order and its invoice in his account page.
Let’s check the order in the Magento 2 backend.
The order has the «Processing» status.
An invoice has been created, and it has the «Paid» status.
There are 2 transaction entries: for an initial charge API request, and for a 3D secure confirmation event.
The initial charge API request.
The 3D secure confirmation event.
Let’s review the charge in the Omise backend.
The charge is in the «Successful» state, it is captured.
Let’s refund it.
The charge now in the «Refunded» state.
Let’s review the order in the Magento 2 backend again.
The order now has the «Closed» status.
A credit memo has been created, and it has the «Refunded» status.
There is a new transaction entry: for the refund API response.
Let’s check the order in the customer’s frontend account.
The «Refunds» tab has been added.