X-Payments:Capturing payments when using X-Payments with Zoey
Depending on the payment method settings, an order payment via X-Payments may be carried out in either the "Authorize" or the "Authorize and capture" mode.
In a workflow where an order payment is performed in the "Authorize" mode ("Initial transaction = Auth" in X-Payments and/or "Use forced authorize operation / Use forced authorize operation for recurring products = Yes" in your Zoey store), it happens as a two-step process: at the time of order creation, you obtain an authorization for the order grand total amount; later you do a manual capture of the funds to initiate a transfer of the authorized amount from the buyer's account to your account. Note that you are guaranteed these funds only for a limited time (Typically, you have to capture a previously authorized amount within 30 days, but the time may vary by company, so you should check with your payment gateway).
In the "Authorize and capture" mode ("Initial transaction = Auth and capture" in the payment configuration settings in X-Payments and "Use forced authorize operation / Use forced authorize operation for recurring products = No" in the X-Payments connector payment method settings in your Zoey store), an authorization and a capture are both performed at once at the time of order creation, so you do not need to worry about manually capturing the funds.
Below we discuss how to capture the funds for which an authorization has been obtained as a result of a buyer making a payment in the "Authorize" mode.
The recommended method to capture a previously authorized amount is based on creating an invoice. If required, multiple invoices can be created for a single order, each containing as many of the purchased items as you specify.