Skip to content

Netopia card payments in PrestaShop: install and set up the module

· The AYT team · 5 min read

Woman in sunglasses holding many shopping bags

To take card payments through Netopia (NETOPIA Payments, a Romanian card processor) in PrestaShop, you create a point of sale for the shop in your NETOPIA Payments account, download the official mobilpay_cc module from Netopia's GitHub, upload it in Modules → Module Manager and enter the point of sale's signature plus the public and private keys. After a test payment you request activation by email, and from then on customers can pay by card.

What you need

  • A NETOPIA Payments merchant account, with the contract signed.
  • A point of sale dedicated to the PrestaShop shop, created in the Netopia account.
  • The shop on HTTPS, with a valid certificate. If you haven't turned it on yet, see PrestaShop SSL.
  • The pages a Romanian online shop has to have: terms and conditions, delivery and returns policy, company details. The list is in the article on required pages for an online shop.

Step 1: the signature and keys from your Netopia account

In the Netopia merchant account open Points of Sale, pick the shop's point of sale and, from the options menu (⋮), go to Technical Settings. From there you take:

  • the point of sale signature (Account Signature);
  • the public key (the certificate);
  • the private key.

The private key is secret. Don't email it and don't put it in a public folder of the site.

Step 2: prepare the module archive

The module is published on Netopia's GitHub. Its README says it's tested up to PrestaShop 9.0.2, with PHP 8.2; for older PrestaShop versions there are separate branches in the same repository.

  1. On the repository page click Code → Download ZIP.
  2. Unzip it and find the mobilpay_cc folder.
  3. Zip only that folder, named mobilpay_cc.zip. An archive of the whole repository won't install.

Step 3: install the module in PrestaShop

  1. In the back office go to Modules → Module Manager → Upload a module.
  2. Pick mobilpay_cc.zip, wait for the install confirmation and click Configure.
  3. If you come back later, the module is listed in Module Manager under Payments, as "Mobilpay - credit card".

Step 4: configure the module

On the configuration page you fill in:

Field What goes in
Account Signature the point of sale signature
Private Key the private key's content
Public Key the public key's content
Shopping Cart Description the text shown on Netopia's payment page
Test Mode Yes while you test, No for real payments

Below them you decide which status the order gets for each answer from Netopia: payment confirmed, under anti-fraud review, pending, cancelled, refunded. A simple rule: the order moves to "Payment accepted" only when the payment is confirmed. For "Pending verification" (the money is held but the transaction is being checked for fraud risk) use a separate status and don't ship until it's confirmed.

Click Update settings.

Step 5: a test payment

With Test Mode on Yes, the payment goes to Netopia's test environment, not to the bank.

  1. Place an order in the shop and choose card payment.
  2. On Netopia's page use a test card from their documentation.
  3. After paying, check in the back office that the order status changed by itself.

The status has to change without you touching it, because Netopia reports the payment result with a request from their server to your shop, separate from the customer returning to the site. If the status doesn't change, usually that request isn't reaching the shop:

  • the shop is in maintenance mode or behind a password;
  • a firewall or security rule blocks the request;
  • the SSL certificate is expired or invalid.

PrestaShop debug mode and the server's error log show you what happens to the request.

Step 6: request activation

Once the test payment works end to end, write to implementare@netopia.ro and request final validation of the point of sale. After Netopia activates it, set Test Mode to No and make a real payment for a small amount, which you then refund from the Netopia account.

Common problems

The module doesn't show at checkout

Check in Payment → Preferences that the module is allowed for the currency (RON), the country and the carriers you use. PrestaShop hides payment methods whose restrictions aren't set.

Upload error

The archive holds the whole repository instead of the mobilpay_cc folder. Rebuild it as in step 2.

The customer paid, but the order status didn't change

Netopia's answer didn't reach the shop (see step 5) or the statuses in the configuration aren't set. Check the transaction in the Netopia account before you ship.

For WooCommerce, the steps are in the article on Netopia for WooCommerce.

Your PrestaShop shop on AYT

On AYT you install PrestaShop in one click from the PrestaShop Toolkit, and the Let's Encrypt SSL certificate is issued and renewed automatically. You test the payment module on a staging copy first, on a subdomain, then install it on the live shop. If the order status doesn't change after a payment, check the ModSecurity page in the panel (what the application firewall stopped) and the Errors page (the site's error log). Plans are on the hosting page.

More articles

All articles