Skip to main content

LiqPay

LiqPay is the internet acquiring of PrivatBank. When a payment reaches its final status, LiqPay sends a server notification with the result. Sent to the Flows address, it starts your flows: the payment went through, failed or was refunded — and the payer gets a thank-you or a note that the payment did not go through.

The catch is where the address lives. A shop module passes its own notification address in every payment and confirms the order on the site with it. So the Flows address fits payments made without a site — by buttons and links from the LiqPay cabinet. For a shop, take the "paid" event from the shop itself.

Written from LiqPay documentation

This page is written from the public documentation of LiqPay and has not been checked on a live account yet.

What you need​

  • An active LiqPay shop. Any plan will do.
  • If the payments go through a module of your site — WooCommerce, Horoshop, OpenCart, Prom and the like — change nothing in LiqPay. The module passes its own address (server_url) in every payment, and putting the Flows address there breaks the confirmation of payments on the site. Take the "paid" event from the shop or the CRM instead: for example, a KeyCRM trigger on a change of the payment status to Paid sends order_paid, the event the ready-made templates expect.
  • If you take payments without a site — by buttons or links made in the LiqPay cabinet — set the address in the shop settings as below. That field is described by third-party instructions only, not by the official LiqPay documentation.

Step 1. Create a connection​

  1. Open Flows → Connections, press Connect a system and choose LiqPay.
  2. Press Copy address. It looks like https://events.alphasms.net/hooks/<TOKEN> — keep it secret.

Step 2. Set up LiqPay​

For payments by buttons and links made in the LiqPay cabinet:

  1. Open your shop in the LiqPay cabinet and go to the API tab. This is not confirmed by the official documentation.
  2. Find the field of the server notification. Third-party instructions call it "Server-server notification URL"; the exact label in the interface is not confirmed. Paste the address from the cabinet and save.
  3. Do not give anyone the LiqPay keys — public_key and private_key, us included. The secret of the connection is already in the address.

The address in the shop settings applies only to payments that do not carry their own: a server_url passed in a payment overrides it.

Step 3. Send a test​

Pay 1 UAH by your own button or link, then refund it in the LiqPay cabinet. Two notifications come — success and reversed — and appear in Flows → Connections → Event journal as payment_succeeded and refund_issued. The connection shows Recognised: LiqPay.

Events​

LiqPay statusAlphaFlow eventProperties
successpayment_succeededorder_id, total, currency, payment_id
failure, errorpayment_failedorder_id, total, currency, payment_id
reversedrefund_issuedorder_id, total, currency, payment_id
  • Every event also carries status, description (the purpose of the payment) and paytype (the way of payment).
  • total is in hryvnias, not in kopecks.
  • The other statuses — wait_*, hold_wait, processing, 3ds_verify and the statuses of regular payments subscribed and unsubscribed — start nothing.

The contact is found by the phone of the payer (sender_phone) and by the id of the buyer on your site (customer); the first name comes from sender_first_name. The phone is not always there — it depends on the way of payment; customer comes only if the shop passed it in the payment; the email of the payer is not in the notification at all. An event without a phone and an id is refused with no_contact.

Payment events are not among the events of the ready-made templates (see Recommended events): create the flow From scratch and choose the event as its start.

Good to know​

  • LiqPay sends the notification when the payment reaches its final status. Repeats are not described in its documentation; a repeated notification has the same payment and status and is not recorded twice.
  • The signature of the notification is optional: the secret in the address is enough.
  • LiqPay packs the data into a form field in base64. AlphaFlow unpacks it itself — nothing to set up.
  • The address always answers 200. Above the daily event limit the event is refused in AlphaFlow with quota_exceeded and shown in the journal; nothing changes in LiqPay.

LiqPay documentation​