Skip to content

    Magento 2

    This guide describes how to install, configure, and use Nexi XPay checkout webshop module for Magento 2.

    Compatibility: 2.4+
    Latest version: 7.1.2 (September 2023)

    Overview

    Our plugin for Magento 2 supports all Nexi XPay checkout features such as smart customer recognition and the best converting payment methods. It is easy to integrate and is constantly updated.

    Nexi XPay checkout is compatible with Magento 2.

    The plugin keeps your Magento store and our Nexi XPay checkout payment platform synchronized, so you can fully operate your orders in Magento, and access Nexi XPay Back Office for more detailed reporting.

    plugin magento

    The Nexi XPay payment extension for Magento 2, allows you to integrate the XPay payment gateway without further implementations on your site.

    It manages the transfer of the customer from your E-commerce site to the secure Nexi environment and vice versa.

    The customer stays on your E-commerce site until checkout, then is redirected to the XPay gateway to make the payment.

    Shop features

    • The fast checkout with OneClick functionality.
    • It is redirected to the Nexi environment to make the payment and then returns to your website at the end of the transaction.
    • A smart mix of payment methods to suit all preferences.
    • Supported currencies: please see in the following link all the supported currencies
    • The option to show each payment method as separate option, before loading the checkout.
    • Supported languages: The Nexi XPay checkout is automatically displayed in the same language used on your store.

    Admin panel features

    • Quick setup and flexible configuration.
    • Intuitive order management with synchronized captures and refunds.
    • Compatible with discounts, tax (VAT) and shipping variants.
    • Compatible with multi-shop setups.
    • Quick setup and flexible configuration.

    The screenshot below shows the Settings page in the Magento administration portal:

    Magento 2 features

    Installation

    The Nexi XPay plugin for Magento 2 is available for free at the following link Nexi plugin, from which you can check compatible versions. The module is compatible with Magento Open Source (Community Edition) and Magento Commerce (Enterprise Edition).

    You can install the extension via composer or FTP.

    Installation via composer

    Before proceeding, verify that Composer is installed in your environment. Below is the list of commands to run for installation:

    • Install the plugin.

      composer require iplusservice/xpta

    • Enable the plugin.

      bin/magento module:enable IPlusService_XPTA

    • Run the update command.

      bin/magento setup:upgrade

    • Clear the cache.

      bin/magento cache:flush

    Installation via FTP

    • Download the plugin directly from the Marketplace and upload the .zip file to the app/code/IPlusService/XPay folder (if these folders are not present you will need to create them)

    • Unzip the file and enable the plugin.

      bin/magento module:enable IPlusService_XPay

    • Run the update command.

      bin/magento setup:upgrade

    • Clear the cache.

      bin/magento cache:flush

    The installation phase is complete, proceed with the configuration.

    Configuration

    Here are the indications to correctly configure the Nexi XPTA plugin:

    1. Login to the Magento admin panel.
    2. In the left navigation bar, select Stores > Configuration.
    3. In the new menu on the left, select Sales > Payment methods > Nexi XPay.
    4. Proceed with the configuration of the module:
    ConfigurationDescription
    TypologySelect API Key
    EnabledEnable the Nexi XPay payment module.
    Enable TEST ModeEnable or disable test mode. Test credentials can be found in the Test area section.
    Maximum time in hours for which the Pay-By-Link will be usable.
    Enable OneClickThis feature allows you to tokenize the customer's card data in order to allow faster subsequent payments. Make sure that this option is also enabled on your terminal configuration.
    Enable 3D secure 2The new 3D Secure 2 protocol adopted by the main international circuits (Visa, MasterCard, American Express), introduces new authentication methods, capable of improving and speeding up the cardholder's shopping experience.
    Enable MulticurrencyEnable this option to make payment methods available for different currencies. For the full list of supported currencies, visit the Multicurrency payments section of the developer portal. Make sure that this option is also enabled on your terminal configuration.
    Timeout Pay-By-LinkMaximum time in hours for which the Pay-By-Link link will be usable.
    Sort orderManages the position of the payment method on the checkout page relative to other payment methods
    API KeyCode required for communication with the XPay gateway. To obtain this data for the production or test environment, follow the instructions in the following paragraph Test and production.
    🎉

    You have now installed and configured the Nexi XPay checkout webshop module. If you have further questions, please contact Support.

    Payment Methods

    Nexi XPay Plugin makes various alternative payment methods available. By selecting the desired method, the customer will be redirected to the checkout page of the chosen payment service. Below is a list of supported payment methods:

    Once you have enabled a new payment method from the XPay Back Office, you will need to make a saving of the configuration on the plugin configuration to update the APM list and show the new payment method in the E-commerce checkout page.

    Back office functions

    In the details of each order, the plugin provides information relating to transactions such as the details of the card used and the status of payments on the XPay gateway.

    Refund

    It is possible to perform total or partial refund operations. This operation will reverse the desired amount by refunding the customer and changing the status of the Magento order. Here are the steps to do:

    1. Login to the Magento admin panel.
    2. In the left navigation bar, select Sales > Orders.
    3. Select the order you want to refund.
    4. In the menu on the left, select Invoices and click on the corresponding invoice.
    5. Select Credit note in the top right.
    6. At the bottom of the page you can now make the refund by clicking on the Refund button. There is the Adjustment fee field in which to modify the amount in order to proceed with a partial refund.

    Accounting

    It is possible to perform total or partial accounting operations. This will account for the desired amount on the XPTA gateway.

    By default the accounting takes place automatically at midnight, use this option only in case of non-standard configurations of the terminal.

    1. Login to the Magento admin panel.
    2. In the left navigation bar, select Sales > Orders.
    3. Select the order you want to book.
    4. Click the Invoice button at the top right.
    5. Click the Submit Invoice button at the bottom of the page.

    Test and Production

    It is highly recommended to test the plugin in a test environment, before entering the production codes.

    It is possible to obtain the test credentials (API key) in the test environment. In the area, there will also be test cards that can be used to execute successful and negative transactions. At this stage it is necessary to verify that the orders are created correctly, also checking the details of the orders.

    Switch to production

    To carry out the transition to production it is necessary to create the production credentials (API Key). To generate the new credentials follow these steps:

    1. Log in to Nexi Business.
    2. Sign in to the XPay Web Back Office.
    3. In the Admin section click on APIKey.
    4. Click on Add new APIKey.
    5. Once the terminal has been selected, click on Add to generate the production API Key.

    Once the API Key has been created, the module configuration must be updated as below:

    1. Log in to the Magento back office.
    2. In the payment configuration section click on Nexi.
    3. Disable the TEST mode and enter the API Key generated on Nexi Business.
    4. Save the new configuration.

    It is advisable to carry out a proof of payment with a real card with the transition to production.

    Was this helpful?

    What was your feeling about it?