Nexi XPay Build
The Nexi XPay Build payment extension for WordPress provides the possibility to directly host the payment form within your own e-commerce website, maintaining high security standards while at the same time avoiding the need to handle payment card data.
Through this extension, the number of steps required to complete the payment is reduced.
To use this plugin, the Woocommerce module must be installed on the Wordpress site.
Installation
The Nexi XPay Build plugin for Wordpress is available for free at wordpres.org, from which it will be possible to check the compatibility of the versions.
It is possible to install the extension using the appropriate installer made available by Wordpress.
- Log into the Wordpress administrative panel.
- Make sure you have installed the Woocommerce plugin.
- In the left navigation bar, select Plugin > Add New.
- On the new page, enter Nexi XPay Build in the search bar.
- Locate the XPay plugin and click Install Now.
The installation phase is complete, proceed with the configuration.
Configuration
Here are the instructions to correctly configure the Nexi XPay Build plugin:
- Log into the Wordpress administrative panel.
- In the left navigation bar, select Plugins > Installed plugins .
- On the new page look for the Nexi XPay Build plugin in the list and click on Settings .
- Proceed with the configuration of the module:
Field | Description |
---|---|
Enable | Enable the Nexi XPay Build payment module. |
Typology | Select API Key |
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. |
Enable TEST mode | Enable test mode: register in the test area to receive your credentials. Test credentials can be found in the Test area section. |
Enable the 3D Secure 2 service | 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 | Available only through payment cards: enable this option to allow payment via card in various 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. |
Test and production
It is highly recommended that you test the plugin in a test environment, before entering the production code.
It is possible to obtain the test credentials (API key) in the test area. In the area there will also be test cards that can be used to carry out successful and negative transactions. In this phase 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:
- Log into the Wordpress administrative panel.
- In the left navigation bar, select Plugins > Installed plugins .
- On the new page look for the Nexi plugin in the list and click on Settings .
- 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.
Payment methods
The Nexi plugin offers customers various payment methods:
Payment by cards
With this solution, the customer remains on the merchant's e-commerce until checkout. It is redirected to the Nexi environment to make the payment and then return to the merchant's website at the end of the transaction.
Recurring payment
This solution allows you to purchase products with recurring charges (eg subscriptions).
During the first payment, a token is assigned that allows Nexi to save the pairing between the user and the payment card used.
Subsequent payments will be made automatically on the date set in the subscription product settings.
To use this mode you need to install the plugin Woocommerce Subscription
Pay-By-Link
This solution involves generating an order on the Woocommerce side, selecting the appropriate products and the customer who wishes to make the purchase.
An email will be sent to the customer containing a link to make the payment. The customer will be redirected to the checkout page of the ecommerce site.
Alternative Payment Methods (APM)
The plugin offers several alternative payment methods. 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 a new payment method has been enabled from the XPay back office, it will be necessary to save the plugin configuration to update the APM list and show the new payment method in the ecommerce site checkout.
Back office functionality
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
You can perform full or partial refund operations. This operation will reverse the desired amount by refunding the customer and changing the status of the Woocommerce order. Here are the operations to perform:
- Log into the Wordpress administrative panel.
- In the navigation bar on the left, select Woocommerce > Orders .
- Click on the order to be refunded.
- In the Product section click on the Refund button and select the products to be refunded.
Capture
You can perform full or partial capture operations. This operation will capture the desired amount on the XPay gateway.
By default, total capture of the amount occurs automatically at midnight, use this option only in case of non-standard terminal configurations.
Here are the steps to take:
- Log in to the Wordpress administrative panel.
- In the navigation bar on the left, select Woocommerce > Ordini.
- Click on the order to be captured.
- In the XPay payment details section, enter the amount to be captured and click on the Capture button.