In the previous video I have shown how to auto-capture the payments.
Now I will show how to preautorize a payment on the order placement, and then manually capture it after revieving the order.
You can choose a frontend payment action: «Authorize» or «Capture»
separately for your new and returning customers.
As you can see, I have set the both to the «Authorize» state. So we will capture the payments manually.
Let’s place an order.
The extension allows the customers to reuse their previously used bank cards.
The payment is preauthorized.
Let’s review the order in the customer’s account.
The customer can see a masked information about the used bank card.
Let’s review the order in the Magento 2 backend.
The payment is not yet captured, so there is no an invoice yet.
The «Transactions» tab contains a record about the preauthorization API request.
Let’s review the payment in the Paymill merchant account.
The transaction has the «Authorized» status.
There are 2 ways to capture a preauthorized transaction (payment): from the Magento side and from the Paymill side.
In this video I will show the first way.
The second way will be shown later in the next videos.
To capture a preauthorized payment from the Magento side, you need to create an invoice.
The action should be «Capture Online».
Press the «Submit Invoice» button.
The payment is captured on the invoice submission.
Let’s check the invoice.
It has the «Paid» status.
The capturing API request and response have been recorded.
Let’s check the payment in the Paymill merchant account again.
The payment has the «Complete» status here.