https://www.x-payments.com/help/?title=X-Payments:Capturing_payments_when_using_X-Payments_with_Magento&feed=atom&action=historyX-Payments:Capturing payments when using X-Payments with Magento - Revision history2024-03-29T06:52:25ZRevision history for this page on the wikiMediaWiki 1.31.5https://www.x-payments.com/help/?title=X-Payments:Capturing_payments_when_using_X-Payments_with_Magento&diff=1419&oldid=prevDohtur at 13:02, 12 March 20182018-03-12T13:02:01Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 13:02, 12 March 2018</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>If payment for an order is <del class="diffchange diffchange-inline">performed </del>in the "Auth and capture" mode ("Initial transaction = Auth and capture" in the payment configuration settings in X-Payments ''and'' "Use forced Authorize operation = No" in the X-Payments connector payment method settings in Magento), the customer is charged for the order at the time of order creation. However, in a workflow where the initial payment transaction is performed in the "Authorization only" mode ("Initial transaction = Auth" in X-Payments and/or "Use forced Authorize operation = Yes" in Magento), no money changes hands immediately after order creation: the payment transaction is <del class="diffchange diffchange-inline">done </del>only to obtain an authorization for the amount listed as the order Grand Total, and you have to take a few additional steps to capture the amount that was authorized.</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>If <ins class="diffchange diffchange-inline">a </ins>payment for an order is <ins class="diffchange diffchange-inline">made </ins>in the "Auth and capture" mode ("Initial transaction = Auth and capture" in the payment configuration settings in X-Payments ''and'' "Use forced Authorize operation = No" in the X-Payments connector payment method settings in Magento), the customer is charged for the order at the time of order creation. However, in a workflow where the initial payment transaction is performed in the "Authorization only" mode ("Initial transaction = Auth" in X-Payments and/or "Use forced Authorize operation = Yes" in Magento), no money changes hands immediately after order creation: the payment transaction is <ins class="diffchange diffchange-inline">made </ins>only to obtain an authorization for the amount listed as the order Grand Total, and you have to take a few additional steps to capture the amount that was authorized.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Below we discuss how to capture the funds for which an authorization has been obtained as a result of the customer making a payment in the "Authorization only" mode.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Below we discuss how to capture the funds for which an authorization has been obtained as a result of the customer making a payment in the "Authorization only" mode.</div></td></tr>
</table>Dohturhttps://www.x-payments.com/help/?title=X-Payments:Capturing_payments_when_using_X-Payments_with_Magento&diff=1103&oldid=prevDohtur: Created page with "If payment for an order is performed in the "Auth and capture" mode ("Initial transaction = Auth and capture" in the payment configuration settings in X-Payments ''and'' "Use..."2017-11-02T09:08:24Z<p>Created page with "If payment for an order is performed in the "Auth and capture" mode ("Initial transaction = Auth and capture" in the payment configuration settings in X-Payments ''and'' "Use..."</p>
<p><b>New page</b></p><div>If payment for an order is performed in the "Auth and capture" mode ("Initial transaction = Auth and capture" in the payment configuration settings in X-Payments ''and'' "Use forced Authorize operation = No" in the X-Payments connector payment method settings in Magento), the customer is charged for the order at the time of order creation. However, in a workflow where the initial payment transaction is performed in the "Authorization only" mode ("Initial transaction = Auth" in X-Payments and/or "Use forced Authorize operation = Yes" in Magento), no money changes hands immediately after order creation: the payment transaction is done only to obtain an authorization for the amount listed as the order Grand Total, and you have to take a few additional steps to capture the amount that was authorized.<br />
<br />
Below we discuss how to capture the funds for which an authorization has been obtained as a result of the customer making a payment in the "Authorization only" mode.<br />
<br />
For orders for which an authorization has been obtained via X-Payments, Magento uses a special status: ''X-Payments Pending Payment'' (In the Magento front end, the same status is named "X-Payments Authorized Payment").<br />
:[[File:xp_pending_payment.png|700px|border]]<br /><br /><br />
When an order has this status, you know that a capture needs to be performed on it. Please note that when an authorization to capture a certain amount is obtained, this amount is reserved on the customer's account for you to capture only for a limited time; for this reason, when you get an order with the "X-Payments Pending Payment" status, be sure to keep an eye on it and perform the capture before the authorization expires. <br />
<br />
The main method that can be used 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 or as few of the purchased items as you specify.<br />
<br />
{{Note1|'''Important''': If your workflow does not use invoices, or the order for which you need to perform a capture has been modified using Magento's default Edit feature, DO NOT use this procedure; instead, please refer to the section "[[#Capture, Void and Refund via the X-Payment Order State tab|Capture, Void and Refund via the X-Payment Order State tab]]".}}<br />
<br />
To perform a capture:<br />
# In the Admin panel, select '''Sales''' > '''Orders''':<br />[[File:sales_orders.png|border]]<br /><br /><br />
# In the Orders list, locate the order for which you want to perform a capture and click to open the order details.<br />[[File:order_to_capture.png|border]]<br /><br /><br />
# In the upper right, click the '''Invoice''' button:<br />[[File:invoice_button.png|border]]<br /><br />This opens a new invoice page:<br />[[File:new_invoice_page.png|border]]<br /><br /><br />
# Scroll down to the '''Items to Invoice''' section.<br />[[File:items_to_invoice.png|border]]<br /><br />This section provides a list of items you can invoice and their respective quantities. By default, the invoice will be created for the entire order. If you are going to invoice only some of the items and do a partial capture this time, update the quantities to invoice (specify the correct quantities in the '''Qty to invoice''' column and click the '''Update Qty's''' button); the invoice totals will be re-calculated.<br />{{Note1|'''Important''': Before using partial capture, make sure your payment gateway supports this feature.}}<br />
# Work through the invoicing process as usual: add a tracking number, create a packing slip, enter invoice comments as needed, specify whether a copy of the invoice needs to be emailed to the customer and whether your comments need to be appended to it.<br />
# In the '''Amount''' field, select the payment action you require:<br />[[File:amount_field.png|border]]<br /><br /><br />
#* ''Capture Online'': Upon invoice submission, the invoice amount will be captured (a request to capture the specified amount will be sent through X-Payments to the payment gateway). After the capture, you will have the ability to create a credit memo should you require to issue a refund.<br />
#* ''Capture Offline'': Upon invoice submission, the system will not capture the payment (no request to capture the payment will be sent). This option should be selected if the capture of funds is performed directly through the gateway or through the X-Payments back end. Note that after using the "Capture Offline" option you will no longer have the option to capture this payment through your Magento store. You will have the ability to create a credit memo. <br />
#* ''Not Capture'': Upon invoice submission, the system will not capture the payment (no request to capture the payment will be sent). This option assumes that you will capture the payment at a later date. The completed invoice (you will be able to access it through '''Order View''' > '''Invoices''') will have a '''Capture''' button allowing you to complete the task:<br />[[File:capture_invoice.png|border]]<br /><br />Before the payment is captured, you will able to cancel the invoice. After capturing you will be able to create a credit memo.<br />{{Note1|'''Important''': Do not select “Not Capture” unless you are certain that you are going to capture the payment through Magento at a later date. You will not be able to create a credit memo until the payment has been captured using the '''Capture''' button.}}<br />
# Click the '''Submit Invoice''' button to process the invoice.<br />[[File:submit_invoice.png|border]]<br /><br />The invoice will be created. The selected payment action (Capture Online, Capture Offline or Not Capture) will be applied.<br /><br />Now if you go back to the order details and click on the '''Invoices''' tab under the '''Order View''' menu, you should be able to see the new invoice added to the list of invoices pertaining to the order:<br />[[File:paid_invoice.png|border]]<br /><br />An invoice created with the "Capture Online" option or captured after it has been created with the "Not Capture" option will have the status ''Paid''. The respective capture transaction will appear in the X-Payments back end with the status ''Charged''.<br />An invoice created with the "Capture Offline" or "Not Capture" option will have the status ''Pending''; no transaction will be reflected in X-Payments.<br /><br /></div>Dohtur