Skip to content
All Guide to One Page

Nexi XPay WooCommerce (Alpha Bank X Pay)

Install Nexi XPay (Alpha Bank X Pay), enter the API key and configure instalments, surcharges and IRIS. Learn how to capture or void payments and troubleshoot common problems.

WooCommerce 6.0+ · WordPress 6.0+ · PHP 7.4 – 8.3

1. Overview and guide

Guide to the Nexi XPay plugin (Alpha Bank X Pay) at WooCommerce: what it does, what you need and all steps up to live.

The plugin connects WooCommerce to the Nexi XPay Nexti Greece, a partner of Alpha Bank. The customer pays with a card or IRIS on the Nexi page. Supports Greek instalments with discount or charge, returns, capital and void from the order, HPOS and Cart & Checkout Blocks.

Nexi Xpay WooCommerce plugin configuration page for Alpha Bank
The plugin configuration page at WooCommerce.

Who's it for?#

For e-shops Under the Nexi Xpay contract via Alpha Bank. Live API Key is created by you at the back office of Nexi Xpay. If you have Cardlink data (Merchant ID, Shared Secret), see Alpha Bank e-Commerce.

Pre-conditions#

  • Convention e-commerce and API Key (sandbox and live).
  • WordPress 5.8+, WooCommerce 6.0+, PHP 7.4+, HTTPS, active REST API.
  • License from OBS.

All Guides#

  1. Nexi XPay for WooCommerce: installation and activation
  2. Nexi XPay for WooCommerce: license and updates
  3. Nexi XPay for WooCommerce: connection to Nexi
  4. Nexi XPay for WooCommerce: plugin settings
  5. Nexi XPay for WooCommerce: notifications and return URLs
  6. Nexi XPay for WooCommerce: test transactions and verification by Nexi
  7. Nexi XPay for WooCommerce: instalments in Greece
  8. Nexi XPay for WooCommerce: discounts for payment in full and instalment surcharges
  9. Nexi XPay for WooCommerce: IRIS payments
  10. Nexi XPay for WooCommerce: order statuses
  11. Nexi XPay for WooCommerce: refunds, captures and voids
  12. Nexi XPay for WooCommerce: migrating from Alpha Bank Cardlink
  13. Nexi XPay for WooCommerce: common problems

Article: Overview and guide →

2. Installation and activation

How to download the plugin Nexi XPay from the OBS account, install it on WordPress and open the settings.

What you need#

  • WordPress 5.8+, WooCommerce 6.0+ and PHP 7.4+.
  • HTTPS (SSL) throughout e-shop.
  • Active WordPress REST API, accessible from the internet. This is where Nexi alerts come from.

Installation steps#

  1. Login to your obstechnologies.gr account and open the section Downloads.
  2. The Alpha Bank X Pay (Nexi XPay) press the button Download v... the last version and save the ZIP. Don't decompress it.
  3. In WordPress open Plugins → Add Add Add Add (page opens with title Add Plugins) and press Transhipment Plugin.
  4. Press Select File, select ZIP and press Install Now.
    The plugins → Add new → Download plugin with selected ZIP and installation button now
    Select ZIP and press "Register Now".
  5. When completed, press Enable Plugin.
    The successfully installed screen with the Plugin Enable button
    After installation press "Enable plugin".
  6. Open WooCommerce → Settings → Payments → Nexi XPay. Plugin appears in the list as OBS Nexi XPay for WooCommerce.
    WooCommerce's payment providers list with Nexi Xpay and the Management button
    "Nexi XPay" appears in Payments. The "Managing" button opens its settings.

Upgrade from earlier version#

Before each upgrade hold backup files and base. Upload the new ZIP the same way. WordPress will tell you that the plugin already exists: press Replace current with downloaded. Your settings remain as they are, because they are stored on the base rather than on the plugin files.

WordPress screen requesting replacement of the already installed plugin with downloaded version
With a newer version ZIP WordPress shows the two versions and the replacement button.

Make the upgrade in time with a little movement and, if you can, first in a copy (staging) of e-shop.

OBS does free installation and customization. If you prefer, open a request for support and we will take care of it.

Do you already have an earlier version?#

Don't uninstall her. Put the news up. The existing Title, Description, API Key (API Key), Test Mode (Test Mode) and Debug Log are kept. The new modules (payments, pricing rules, IRIS) start off incapacitated.

If you come from the old Alpha Bank plugin (Cardlink), see transition from Cardlink.

Article: Installation and activation →

3. License to use and updates

How you manage the plugin Nexi XPay license from the OBS account, how you change domain and where you find new versions.

Is there a License key field on WordPress?#

No. Version 2.1.x has no field or License key button the arrangements. Once you have Nexi's API Key, the method works. The license is managed by your OBS account and corresponds to one e-shop.

Statement and change domain to OBS account#

  1. Login to your account at obstechnologies.gr and open Licences.
  2. On the plugin card you will see the license key. With the button Copy You copy it without mistakes.
  3. The Activated domains press + Add domain, write his domain e-shop (e.g. example.gr) and press Enable.
  4. To transfer to new domain press Change domain next to the old one, write the new one and press Save. Narin Release Release the position.

Each licence shall cover one e-shop. If the license limit does not allow for change, use the link Licence help at the bottom of the page or open a request for support.

Updates#

  1. Open them. Downloads in your account. There is a clear picture of Last version and Previous publications.
  2. Press Download v... and upload the ZIP over the existing version as described by the guide installation.
  3. Check the instalment settings and make a test payment.

Updates are free for as long as the license is valid. After update clean the site's cache to load the new checkout files.

Article: License and updates →

4. Connection with Nexi

What information do you need from Alpha Bank / Nexi Greece for the Nexi XPay plugin, where you get API Key and what to ask.

The plugin connects WooCommerce to the Nexi XPay (Nexi Greece, partner of Alpha Bank). The customer pays on the Nexi payment page (Hosted Payment Page) and returns to e-shop.

What you need#

  • Convention e-commerce with Alpha Bank / Nexi Greece and access to the Nexi merchant portal.
  • For testing, a test API Key Nexi publishes them on the page. Test environment You're not asking the bank.
  • For live, one API Key created by you at Nexi XPay's back office after checking the site.

Ask Nexi#

  • If the terminal does direct charge (implicit) or pre-approval It depends on whether it will be necessary. capture.
  • If instalments have been activated and how many.
  • According to Nexi, it is available automatically to all Greek traders of Nexi XPay.

Steps#

  1. Open WooCommerce → Settings → Payments → Nexi XPay.
  2. Paste on API Key a test key for plugins from the page Test environment of Nexi: Api-Key IMPLICIT accounting terminal for direct charge; or Api-Key EXPLICIT terminal accounting for pre-approval.
  3. Check. Test Mode (Test Mode), i.e. checkbox Enable a sandbox, and press Save Changes.
    API Key Fields and Test Mode in Nexti Xpay Settings
    The field of API Key (hidden with dots) and Test Mode (the ‘Test Mode’).
  4. Do it. Tests.
  5. Once it has checked your site, Nexi emails you access details for the Nexi XPay back office (xpaydashboard.nexigroup.com). The link to the code is valid 24 hours.
  6. Connect to Admin account, open Admin → Terminals → Api Keys and press Create New Api Key.
  7. Put the new key in API Key, uncheck the Test Mode and press Save Changes.

You don't need Merchant ID, Shared Secret or URL notifications. The plugin creates its own secure URL for each order. If you have Merchant ID and Shared Secret from developer.cardlink.gr (Cardlink, business partner Nexi), you have Cardlink account: you need Alpha Bank e-Commerce plugin.

Article: Connection with Nexi →

5. Plugin Settings

All plugin Nexi XPay settings for WooCommerce, grouped as in management, with what each does.

Settings are in WooCommerce → Settings → Payments → Nexi XPay. With Greek management the names appear translated (in parenthesis).

Nexi Xpay WooCommerce plugin: activation, title, API Key and Test Mode
General settings: activation, title and description in checkout, API Key and Test Mode.

General#

FieldWhat's he doing?
Enable/Disable (Enable Nexi XPay)Displays method on checkout.
Title, DescriptionText at checkout. Defaults Credit/Debit Card and Secure payment via Nexi Xpay.. Nexi usually asks for Nexi Xpay to be mentioned.
API Key (API Key)Nexi's key. For testing, a test key from Nexi's Test Environment page. For live, a key you create at Nexi XPay's back office.
Test Mode (Test Mode)He sends the transactions to Nexi's sandbox. Checkbox is called Enable a sandbox.
Debug Log (Registration of Error Tracking)Registration without card codes and data, source obs-nexi-xpay The WooCommerce → Status → Logs.
Nexi Xpay's general settings: activation, title, description, API key, test function and recording
General: fields prior to instalment section.

Greek Instruments (instalments)#

FieldWhat's he doing?
Enable instalments (Enable installments)Offers instalments at checkout.
Maximum number of instalments (Maximum installments)Total maximum, 1 to 99. 1 means one.
Amounts of payments found (Installment amount ranges)Optional amount limits in JSON. See instalments.
The Section Instalments (Greece) with activation, maximum number and amounts found
The “Greek Installments” section.

OBS Installment Pricing Rules#

FieldWhat's he doing?
One-off payment discount (%) (Single-payment discount)Discount for one-off payment.
Instalment Charges (Installment surcharge rates)Charge by number of instalments.
Excluded product categories (Excluded product categories)Charges without discount or charge.
Product page assessment (Product-page estimate)Instalment assessment on the product page. See tariff rules.
Section OBS Instalment Pricing Rules with Discount, Charges, Excluded Categories and Product Estimate
The “OBS Installment Pricing Rules” section.

IRIS Payment#

FieldWhat's he doing?
Enable IRIS (Enable IRIS)It shows IRIS as an acceptable method.
IRIS as default (IRIS as default)Defaults IRIS on Nexi's page. See IRIS.
IRIS Payment Module with IRIS and IRIS activation options as default
The ‘IRIS Payment’ section (‘IRIS Payment’).

Article: Plugin settings →

6. Return notifications and URLs

How to update the order by Nexi XPay: REST notifications, return page and what you should not block.

The order is updated in two ways, so that no payment is lost if the client closes the browser:

  • Server-to-server alarm From Nexi to https://το-domain-σας/wp-json/obs-nexi-xpay/v1/s2s/<αριθμός παραγγελίας> (POST).
  • Return of the customer The e-shop. Then the plugin asks Nexi about the final state of payment.

Both URLs are automatically created for each order and sent to Nexi with the payment request. You're not reporting it anywhere. Each notice is checked with a unique security token of the order and with the amount and currency that waited for e-shop.

What should not be blocked#

  • The /wp-json/obs-nexi-xpay/v1/ must answer from the internet. Flugins close REST API or firewall (WAF) blocking POST there stop notifications.
  • No password (HTTP auth), maintenance mode or mandatory connection to live site.
  • Exclude from cache URLs with obs_nexi_return and obs_nexi_cancel.

Control#

  1. Open Tools → Health website and make sure there is no error for REST API or loopback requests.
  2. Make a test payment and close the browser on the Nexi page after success.
  3. Check that the order is made Edited without returning the client.

Article: Return notifications and URL →

7. Test transaction and Nexi control

How you try Nexi XPay with Test Mode and sandbox API Key, what Nexi wants in the site control and what you check before live.

Test Mode Trials#

  1. Put it on. API Key a test key for plugins from the page Test environment Nexi, check Test Mode (Test Mode) and save. To try capture and void, use the EXPLICIT key.
  2. Make a small order with the Nexi test cards. With another card the sandbox rejects the transaction.
    Checkout with active Test Mode: yellow test function indication, selection of instalments and Nexi card banner
    With an active Test Mode checkout shows the indication "REACT TEST LEASURE". On live it should not appear.
  3. Success: order made Edited with a result note.
  4. Disposal: Failed. Cancel on Nexi's page: Cancelled. The customer returns to the basket with a message that the payment was not completed.
  5. Payment with maximum number of instalments, in classic checkout and Blocks.
  6. Total and partial return from order. In explicit terminal and capital/void.
  7. IRIS: with key Api-Key for testing IRIS Payments and the DIA simulator, as in Nexi's steps (IRIS Payments). If QR is not created in sandbox, do the final test on live with a small amount.

Checking the site by Nexi#

After the test transactions, Alpha Bank / Nexi checks your website and suggests corrections. Then it gives you access to live. It usually asks:

  • The method of payment at checkout to report Nexi Xpay. Change Title or Description And remove old references to another system.
  • Logos of accepted cards. From 2.1.3 checkout shows Nexi card banner.
  • Updated terms of payment and transaction security.

Check before start#

  • Live API Key and Test Mode Inactive. Never sandbox key to live.
  • Instalments and charges such as the contract.
  • REST API accessible, Debug Log Closed.
  • A small real payment that agrees with the Nexi portal.

Article: Test transaction and Nexi control →

8. Greek instalments

How to activate instalments in the Nexi XPay plugin, how to write amount limits in JSON and what the customer sees at checkout.

The instalments need a Greek terminal activated by Nexi for the instalment program (ACQUIRER_AGREEMENT). Find out first the maximum you are allowed.

Instalment and Pricing Rules Settings at Nexi Xpay WooCommerce plugin
The sections "Greek Installments" and "OBS Installment Pricing Rules". Image values are examples.

Configure#

  1. Open WooCommerce → Settings → Payments → Nexi XPay, Section Greek Installments.
  2. Check. Enable instalments (Enable installments).
  3. The Maximum number of instalments (Maximum installments) choose the maximum contract.
  4. If you want instalments depending on the amount, write to Amounts of payments found (Installment mountain ranges) e.g. [{"amount":100,"installments":6},{"amount":500,"installments":12}].
    Instalment activation settings, maximum number of instalments and range of instalments
    Activate the instalments, set maximum and optional amounts.
  5. Press Save Changes.

How limits are read#

For each total, the highest limit covered, always within the Maximum number of instalments. With the example: from 100 € to 6 instalments, from 500 € to 12. Empty field means that the maximum applies to each amount.

What the customer sees#

Under the method the option appears Number of instalments, with the amount per instalment, in classic and Blocks checkout. Known issue of version 2.1.5: in Blocks checkout the option can be displayed with English text and characters &nbsp;&euro; instead of the symbol €. If you see it, let OBS know. The first option is Single payment (1 instalment). The option is sent to Nexi and a note is written on the order.

The list Number of instalments with the amount per instalment under the payment method in the classic checkout
Classic checkout: list of "Number of instalments" with the amount per instalment.

For a one-off discount or a charge per instalment, see instalment pricing rules.

Do not show instalments? Enable instalments is active, that the maximum is over 1 and that JSON is valid. If the terminal has no instalments, Nexi rejects the payment by instalments.

Article: Greek instalments →

9. One-off discount and instalment charge

How you set a one-off discount, a charge per instalment, excluded categories and a instalment estimate on the product page.

The Section OBS Installment Pricing Rules add optional commercial rules on instalments. They are calculated in the eligible basket, by tax heading.

FieldWhat do you set?
One-off payment discount (%) (Single-payment discount)Discount rate when the customer pays one-off. 0 = no discount.
Instalment Charges (Installment surcharge rates)One charge rate for each number of instalments, from 2 to maximum.
Excluded product categories (Excluded product categories)Slugs categories separated by party, e.g. prosfores,dorokartesTheir products do not get discount or charge.
Product page assessment (Product-page estimate)Shows on Product Page List Budget of the European Communities with a cash value, amount per instalment and total.

Steps#

  1. Set it first. Maximum number of instalments (Maximum installations) and press Save Changes.
  2. The table Instalment Charges (Installment survey rates) now shows one line per number of instalments. Fill in the percentages.
    The table Instalment Charges with a percentage for each number of instalments
    One line per number of instalments, from 2 to the maximum you set.
  3. Complete discount and exceptions if you want, and save again.

What the customer sees#

In the basket and order, the line is shown One-off payment discount or Instalment Charge With the amount. From 2.1.5 the rate does not appear to the client. It's only left in an internal note. The assessment on the product page is informative. Whatever is selected in the checkout applies.

The checkout table with the instalment line
The “Instalment surcharge” line at checkout.
The Estimate of Instalments Budget on Product Page
The instalment assessment on the product page is informative.

Make sure your contract with the bank allows a charge on the installments before you activate it.

Guide: Discount for payment in full and instalment surcharge →

10. Payments IRIS

How you activate IRIS in the Nexi XPay plugin, what it means "IRIS as default" and what it needs from Nexi.

IRIS is a Greek method of payment from account to account, managed by the DIAS. According to Nexi, it is available automatically to all Greek traders of Nexi XPay and appears as an option on the Nexi payment page.

IRIS settings at Nexi Xpay WooCommerce plugin
The options "Enable IRIS" and "IRIS as default".

Enable#

  1. Open WooCommerce → Settings → Payments → Nexi XPay, Section IRIS Payment.
  2. Check. Enable IRIS (Enable IRIS) to show IRIS as an acceptable method in checkout.
  3. If you want Nexi to open directly on IRIS, check and IRIS as default (IRIS as default).
    IRIS and IRIS activation options as default in the settings
    The two options of the "IRIS Payment" section.
  4. Press Save Changes and make an IRIS payment with a small amount.

How the customer pays#

The customer selects the same Next XPay method in checkout and Nexi page selects IRIS instead of a card. Order is updated as on cards.

Good to know.#

  • For testing on sandbox, Nexi gives a separate key (Api-Key for testing IRIS Payments) and a DIA simulator. See the steps on the page IRIS Payments. If QR is not created in sandbox, make the final test on live with a small amount.
  • The Enable IRIS shows only the IRIS logo on your checkout. If IRIS does not appear on Nexi's page, call Nexi's support at 210 624 4300.
  • Instalments only concern cards.

Article: IRIS payments →

11. Order statuses

What status does WooCommerce order go to for every result of Nexi XPay and what it means "amount/currency mismatch".

Result in NexiStatus at WooCommerce
EXECUTED OR AUTHORIZEDEdited, with a result note and the transaction code.
DECLINED, DENIED_BY_RISK, 3D Secure failureFailed (Payment failed at Nexi XPay.).
Cancellation by customerCancelled.
PENDINGHe's staying. Payment pending until the final answer comes.
Amount or currency do not matchStanding by with a note ‘Nexi paymentamount/currency mismatch — manual review required.’

In failure the customer returns to basket with message The payment was not completed. Please try again.. If you press cancellation on Nexi's page, return to the basket with the message The payment was cancelled..

Pre-approval (explicit terminal)#

If the terminal pre-authorizes, the order is made Edited the commitment of the amount. The collection is done with the capture action. See refunds, capture and void.

When you see "Waiting" with mismatch#

  1. Do not execute the order.
  2. Find the transaction at the Nexi portal and compare the amount and currency.
  3. Usually the total was changed after transfer to Nexi. Return or ask the customer for a new payment.

Article: Order Statements →

12. Refunds, capture and void

How you make total or partial refund, capture and cancellation of pre-approval (void) Nexi XPay from the WooCommerce order.

Refund#

  1. Open the order and press Refund.
    The order page with the Back Money button
    The "Return Money" button on the order page.
  2. Fill in the amount or quantities (total or partial refund).
  3. Press the return button through the payment method (not the manual).
    The return form with the return button via Nexi XPay
    Press the "Nexi XPay" button, not the "Hand Return" button.
  4. Order takes note Refunded … via Nexi XPay.. If Nexi rejects the request, a message appears with the reason.

Capture and void (explicit terminal)#

In order of Nexi Xpay, in box Order Actions two additional actions are shown:

EnergyWhat's he doing?
Capture Nexi authorisation (in Greek) Nexi Authorisation Commitment)The amount pre-approved shall be collected. Note written Nexi authorisation captured..
Void Nexi authorisation (Cancel Nexi Authorization)Cancels pre-authorization and order is made Cancelled.
  1. Select the action from the box list Order Actions.
    Order Actions Box with selected Nexti Authorisation Commit Action
    The action is selected from the list and executed with the button next to it.
  2. Press the button next to the list.
  3. Read the note added. In failure he writes Nexi capture failed or Nexi void failed I'm sorry. I'm sorry.

In terminal with direct charge (implicit) the capture is not needed and the refund is done with refund. Actions are only shown in orders that have reference Nexi.

Article: Returns, capture and void →

What you do when Alpha Bank transfers you from Cardlink to Nexi XPay: new items, new plugins, installments and old payments.

When Alpha Bank transfers you to Nexi XPay, the processor changes. The old Cardlink data (Merchant ID, Shared Secret, Form Post Url) are not valid in Nexi.

  1. For testing, put a test key on the page Test environment The live key is later created at Nexi XPay's back office.
  2. Install Nexi Xpay, ideally first in a copy (staging) of e-shop, and try it on Test Mode.
  3. At the live site the old gateway stays active until you have the live API Key.
  4. Check the instalments (below).
  5. With live API Key, disable Alpha Bank method e-Commerce The WooCommerce → Settings → Payments.
    The list of payment providers with Alpha Bank e-Commerce and Nexi XPay
    In Payments both plugins appear. The old stays active until you have the live API Key.

When enabled, the plugin tries to transfer the old instalment settings without writing on settings you have already set. If he doesn't recognize their form, he doesn't write anything: then here you go manually. Maximum number of instalments (Maximum installments), Amounts of payments found (Installment mountain ranges) and Instalment Charges (Installment surcharge rates). Form ελάχιστο@μέγιστο@δόσεις of Cardlink is written in Nexi as JSON, e.g. [{"amount":100,"installments":6}].

Payments started at the old gateway are not transferred. If a client did not complete, a new payment starts with the Nexi XPay. Old returns are made from the back office of the old system.

OBS makes the transition free along with the installation. Open request before turning off the old plugin.

Article: Transition from Alpha Bank Cardlink →

14. Common problems

Solutions for the most common problems with Nexi XPay at WooCommerce: discards, wrong data, pending payments, installments.

The plugin requests API Key, but I have Merchant ID and Shared Secret#

Solution: your account is Cardlink. Use it Alpha Bank e-Commerce or contract Nexi XPay through Alpha Bank and create API Key at Nexi XPay's back office. See transition.

‘Transaction Declined’ in tests or live#

Reason: in the sandbox, a card that is not Nexi's test. On live, usually rejected by the customer's bank or 3D Secure failure.

Solution: See the reason at the Nexi portal. The customer tests another card or communicates with his bank.

Discard when the holder name has dots or symbols#

Solution: the client writes on Nexi's page the name as it is printed on the card, without symbols.

The customer paid, but the order remains "Failure to pay"#

Reason: the notification did not reach the REST API or Nexi has no final status yet.

Solution: See Notifications and confirm at the Nexi portal before executing the order.

Nexi does not approve of live site#

Solution: See what he wants Nexi control.

No instalments or Capture/Void appear#

Solution: See instalments and capture and void. In implicit terminal the capture does not need to.

IRIS does not appear#

Solution: The Enable IRIS (Enable IRIS) shows only the IRIS logo on your checkout. On Nexi's page IRIS automatically appears for Greek traders. If she's missing there, call Nexi's support at 210 624 4300.

Article: Common issues →