[Paymill] Video 6. Capture and refund a card payment from the Paymill side (using a webhook)

CAPTIONS:

0:00:02
In the previous video I have shown how to capture and refund a payment from the Magento 2 backend.

0:00:03
Now I will show how to do the same from the Paymill merchant account.
The Magento data will be updated automatically.

0:00:05
I have set the payment action as «Authorize», so a payment will be preauthorized on the order placement.

0:00:08
Let’s place an order.

0:00:20
The order is placed, and the payment is preauthorized.

0:00:23
Let’s review the order in the customer’s account.

0:00:29
The customer can see a masked information about the used bank card.

0:00:31
Let’s review the order in the Magento 2 backend.

0:00:41
A Magento administrator can see much more information about the payment and the used bank card.

0:00:47
The payment is not yet captured, so there is no an invoice yet.

0:00:50
The «Transactions» tab contains a record about the preauthorization API request.

0:00:58
Let’s capture the payment from the Paymill merchant account.

0:01:04
The transaction (payment) has the «Authorized» status.

0:01:14
To capture the payment press the «Redeem allocated amount» button.

0:01:16
Paymill does not support a partial capture.
So we capture the full preauthorized amount.

0:01:19
The payment (transaction) is captured, and it has the «Complete» status.

0:01:24
Paymill sends a notification to the store not instantly, but after the 60 second timeout.
I cut this waiting interval from the video.

0:01:27
Let’s review the order in the Magento backend again.

0:01:33
An invoice has been created, and it has the «Paid» status.

0:01:37
The «Transactions» tab contains a record about the capture notification from Paymill.

0:01:47
Let’s review the order in the customer’s account again.

0:01:50
The «Invoices» tab has been added.

0:01:56
Now, I will show how to make a partial refund from the Paymill merchant account.

0:02:00
To do so, press the «Refund» button on the transaction screen inside the Paymill merchant account.

0:02:01
Paymill supports a partial refund, so we make a partial one, not full.
An amount is specified just here.

0:02:07
The transaction’s status is switched to «Partially refunded».

0:02:09
Again, we need to wait for 60 seconds.
I have cut this interval from the video.

0:02:11
Let’s review the order in the Magento backend again.

0:02:13
A credit memo has been created, and it has the «Refunded» status.

0:02:15
Due to a Magento 2 core bug, the grid wrongly denominates the base currency. Actually, it is $, not € in my case. So €100 = $107.86.

0:02:31
The «Transactions» tab contains a record about the refund notification from Paymill.

0:02:40
Let’s review the order in the customer’s account again.

0:02:44
The «Refunds» tab has been added.

See also: