X-Payments:Canceling payments when using X-Payments with Magento 2

From X-Payments Help
Jump to: navigation, search

In the "Authorize" workflow - as opposed to the "Authorize and capture" workflow - it is possible to cancel (void) a payment before it has been captured. For example, if you have a payment for which an invoice was created with the "Not Capture" payment option, you can cancel it via the invoice page.

To cancel a payment:

  1. In the Admin panel, select Sales > Orders:
    Magento2 sales orders.png

  2. In the Orders list, locate the order for which you want to cancel a payment and click to open the order details.
    Magento2 order000000248.png

  3. In the Order View menu on the left-hand side of the screen, select the Invoices tab. This opens a list of invoices pertaining to the order. Locate the invoice you need to cancel and click to open it.
    Magento2 order000000248 invoice2cancel.png

  4. In the upper right of the Invoice page, click the Cancel button.
    Magento2 order000000248 cancel invoice button.png

    The authorization to capture the invoice amount will be voided. You should see a success message:
    Magento2 order000000248 invoice canceled.png

    The invoice status will be updated to Canceled.
    Magento2 order000000248 invoice canceled status.png

    In X-Payments, you should be able to find the respective Void transaction with the status Voided. The status of the payment in X-Payments should be updated to Declined by merchant.