Magento 2
This guide describes how to install, configure, and use Nexi XPay checkout webshop module for Magento 2.
Download
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.
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:
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:
- Login to the Magento admin panel.
- In the left navigation bar, select Stores > Configuration.
- In the new menu on the left, select Sales > Payment methods > Nexi XPay.
- Proceed with the configuration of the module:
Configuration | Description |
---|---|
Typology | Select API Key |
Enabled | Enable the Nexi XPay payment module. |
Enable TEST Mode | Enable 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 OneClick | This 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 2 | The 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 Multicurrency | Enable 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-Link | Maximum time in hours for which the Pay-By-Link link will be usable. |
Sort order | Manages the position of the payment method on the checkout page relative to other payment methods |
API Key | Code 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:
- Login to the Magento admin panel.
- In the left navigation bar, select Sales > Orders.
- Select the order you want to refund.
- In the menu on the left, select Invoices and click on the corresponding invoice.
- Select Credit note in the top right.
- 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.
- Login to the Magento admin panel.
- In the left navigation bar, select Sales > Orders.
- Select the order you want to book.
- Click the Invoice button at the top right.
- 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:
- Log in to Nexi Business.
- Sign in to the XPay Web Back Office.
- In the Admin section click on APIKey.
- Click on Add new APIKey.
- 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:
- Log in to the Magento back office.
- In the payment configuration section click on Nexi.
- Disable the TEST mode and enter the API Key generated on Nexi Business.
- Save the new configuration.
It is advisable to carry out a proof of payment with a real card with the transition to production.