You can avoid refunds by using the «Authorize» payment action instead of «Capture»: see it in my previous videos.
But sometimes refunds are happen (even if you use Authorize).
But sometimes refunds are happen even if you preauthorize your transactions and review them before capturing.
There are 2 ways to refund a payment: from the Magento backend and from the Omise dashboard.
In this video I will show you how to refund a payment from the Magento backend.
For the simplicity, the extension is set up to auto capture the payments for the returning customers.
We are placing a sample 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.
There are 2 ways to refund a payment (charge): from the Magento 2 backend and from the Omise dashboard.
In this video I will show the first way.
The second way will be shown in the next video.
To refund a payment from the Magento 2 backend, you need to open its invoice
and create a credit memo for it.
You can adjust the refund amount (if needed).
Then press the «Refund» button.
Then a credit memo is submitted, a «refund» API request is made to the Omise service.
The order now has the «Closed» status.
The invoice now 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.
Let’s check the charge in the Omise backend again.
The charge now in the «Refunded» state.