1. Home
  2. Articles
  3. LiqPay Payment Integration for a Website: Setup, Testing and Fiscalization

LiqPay Payment Integration for a Website: Setup, Testing and Fiscalization

LiqPay integration is connecting a payment service to a website so that a customer can pay for an order by card and the site automatically receives payment confirmation and updates the order status.

LiqPay Payment Integration for a Website: Setup, Testing and Fiscalization

LiqPay is one of the best-known ways to accept online payments in Ukraine, but simply adding a button is not enough. For payments to work reliably you need to configure keys, signature, the checkout page and receiving the service's response correctly, and a business should also take care of receipts. Below is a practical guide: what to prepare, how to connect to OpenCart and WordPress, how to set up fiscalization, how to test and what to avoid.

Why LiqPay is often chosen for online payments in Ukraine

LiqPay is one of the payment services that let you accept card payments on a website without a complex bank integration. For small and medium businesses, quick connection, a ready checkout page, a test mode and additional services such as a software cash register are attractive. But choosing a payment service is always a comparison of terms: fees, payout times, restrictions and support. Confirm the terms with the service itself, as they change. We described alternatives and general principles in the material on payment integration on a website.

  • A quick start: registration, a dashboard, access keys and a test mode.
  • A ready checkout page: you do not need to store card data on your site.
  • Payment status notifications to your server (callback).
  • A software cash register service in the ecosystem for fiscal receipts.
  • Documentation and sample libraries for developers.

What to prepare before integration

Most delays come not from code but from organizational questions. Prepare them in advance and the connection will go faster.

  • The legal status of the business and an account for payouts: the data is needed to register a merchant.
  • A description of the website and sales terms: the service may require public delivery and return terms and contacts on the site.
  • Access to the LiqPay dashboard and keys: public and private; the private key must never be published or put in site code.
  • A list of scenarios: one-time payment, prepayment, subscription, partial refund.
  • A decision on receipts: whether fiscalization is needed and through which service.
  • A test environment of the site to verify payment before launch.

How payment works: checkout page and callback

The scheme is simple and the same on any engine. The site builds a payment request with parameters: amount, currency, description, order number, the return address for the buyer and the address for receiving the service's response. These parameters are encoded and signed with the key, after which the buyer is sent to the LiqPay checkout page. After payment the service sends a status message to your server, and you verify the signature and only then change the order status. This verification protects against forgery: never consider an order paid just because the buyer landed on a "Thank you" page. Take the exact signature algorithm and the parameter list from the official documentation and do not copy them from random examples: they may be outdated.

  • Building the request: amount, currency, order_id, description, result_url for the buyer's return.
  • server_url: an address on your site where the service sends the payment status.
  • Verifying the response signature with the private key before changing the order.
  • Handling several statuses: success, error, pending, cancellation, refund.
  • Idempotency: a repeated message must not fulfil the order twice.
  • A fallback: checking payment status via the API if the notification did not arrive.

Connecting LiqPay to a site on OpenCart and WordPress

On ready CMSs a payment is usually connected through a module. For OpenCart and WordPress there are third-party modules and plugins, but it is important to check their compatibility with your CMS version: quality and support depend on the developer, not on LiqPay itself. For OpenCart 4, ready modules exist from third-party authors, so before buying check the declared version support, reviews and whether the code is obfuscated. If custom logic is needed, the module is adapted or an integration is written directly according to the documentation. We discussed general questions of choosing an engine and modules in the materials on OpenCart modules and extensions and OpenCart store development.

  • OpenCart: a third-party payment module with public and private key settings and a test mode.
  • WordPress: a payment plugin for your store plugin; check that it supports your version.
  • Custom integration: per the documentation if there is no ready module or flexibility is needed.
  • A separate test site to check module updates before installing them on the live one.
  • Regular module updates and checks after CMS updates.

Fiscalization of payments: setting up a PRRO

If your business is required to issue fiscal receipts, online payment does not exempt you from it: a receipt must be generated for every payment. LiqPay has its own software cash register service: for connected merchants it generates receipts from online payments, and the seller sends them to the buyer electronically. To set it up you need to register a point of sale, a PRRO and a cashier in the tax system and configure rates and product categories. If you already use another PRRO service, for example Checkbox, the link between the store and it is built as a separate integration: ready solutions depend on the CMS, so support for a specific version should be verified. General questions on who needs a cash register and what a PRRO is are covered in the material on fiscalization of online payments. Fiscalization obligations depend on your status, so confirm final requirements with your accountant.

  • Registering the point of sale and the PRRO in the tax system.
  • Registering a cashier and configuring rates and product categories.
  • Automatic receipt generation for each successful payment.
  • Sending the receipt to the buyer electronically and keeping a copy.
  • Shift control and closing according to the service's rules.
  • A separate scenario for refunds: a refund receipt.

Testing payments: how to verify everything works

You should test not only a "successful payment" but the full set of scenarios. LiqPay provides a test mode with separate keys and test cards that let you reproduce success and errors without real charges. Run a payment from start to finish on the test site: order creation, going to payment, return, receiving the notification, status change, email to the customer, receipt. Then repeat several times with different outcomes and check that the keys in live mode have been replaced with working ones. After launch, make one real payment of a small amount and make sure the funds and the receipt appeared.

  • Successful payment: the order status changes, an email arrives, a receipt is generated.
  • Card decline or error: the order is not marked as paid.
  • A closed checkout page: the order stays pending rather than vanishing.
  • A repeated notification: the order is not fulfilled twice.
  • A forged request without a valid signature is rejected.
  • A refund and the corresponding receipt.

Common mistakes when integrating LiqPay

Typical problems repeat across projects, and most of them relate to response verification and configuration.

  • An order is marked as paid when the buyer lands on the success page without verifying the signature.
  • The private key ended up in front-end code or a public repository.
  • Test keys left in live mode or the other way around.
  • The server_url address is unreachable from outside, so the payment status never arrives.
  • Intermediate statuses are not handled and orders "hang".
  • No plan for receipts: payments go through but fiscal documents are not generated.

Cost of a turnkey LiqPay integration

Cost depends on the engine, scenarios and whether a ready module exists. Connecting a typical module to an already working store is a small amount of work. More complex projects need a custom integration, handling of several statuses and refunds, a link to the accounting system, fiscalization and testing across scenarios. Separately account for the payment service's fees, which the service itself sets, not the developer, and for the ongoing cost of supporting the module. For projects where payment is part of a larger task, it is convenient to plan it together with online store development; if you only need the integration, describe your CMS, payment scenarios and fiscalization needs and we will prepare an estimate.

Examples of work

All projects

Need help with your project?

We'll break down your task, propose the best solution, and prepare an implementation plan.

Call me back

FAQ

Didn’t find the answer? Message us — we reply during business hours.

How do I connect LiqPay to a website?

Register a merchant and get the public and private keys, set up a module for your CMS or a custom integration, specify the address for receiving payment status, test in test mode and only then switch on the live keys.

Is fiscalization needed when paying through LiqPay?

If your status requires issuing fiscal receipts, they are needed for online payments too. LiqPay has its own PRRO service, and another service can also be used. Confirm final requirements with your accountant.

How can I test a payment without real money?

Use the test mode with test keys and the test cards from LiqPay's documentation. Check success, decline and repeated notifications.

Why does the order not change status after payment?

Most often the server_url address is unreachable, or the signature or intermediate statuses are not handled. Check request logs and the payment status in the dashboard.

Is there a ready LiqPay module for OpenCart?

Yes, third-party modules exist, but their quality and version support depend on the author. Before installing, check compatibility with your OpenCart version and reviews.

Request a quote Call

Let’s discuss your project

Leave your contacts and we’ll get back to you during business hours.