Skip to content

Tpay Payments (BLIK, Pay-by-link, cards) changelog

All notable changes to Tpay Payments (kv_tpay) are documented here. The format follows Keep a Changelog and the project uses Semantic Versioning.

  • Compatibility: CS-Cart and Multi-Vendor 4.22.x
  • Uninstalling no longer deletes your payment records. The Tpay payments, refunds, queued refunds, the connection (API credentials) and the settings (including the license key) are now kept, and the payment methods are linked to the add-on again when you install it again, so you can still refund older orders (the rest of a partial refund too) after a reinstall. The new root setting “Permanently delete all payment records on uninstall” (off by default) deletes them on the next uninstall; only the log is always removed. Upgrading from 1.0.1 or earlier: upload the new zip over the installed add-on (Add-ons > Manage add-ons > upload) or use the Upgrade Center, NOT “the safe way”: the safe way runs the uninstall of the version you have installed now, and that version still deletes the payment records.
  • Multi-Vendor marketplace owner mode: a cart with products of several vendors is paid as one Tpay payment on the parent order, which the admin and vendor panels never open. The payment tab, refunds and the “refund at order status” setting now work on the child (vendor) orders: each child order shows the shared payment and refunds only its own share of it (manual refund and status refund), never more than the payment. The transactions list links the child orders.
  • Every payment attempt of an order is listed on the order tab, each paid attempt with its own refund form; a second payment of an already paid order is flagged as a duplicate (the order is not touched again) and can be refunded from the order page. The automatic refund at an order status refunds every paid attempt. A new payment is refused when any earlier attempt of the order was paid, not only the newest one.
  • A payment whose amount no longer matches the order (the order was edited while the payment was pending) is booked on the payment but no longer marks the order as paid; the order tab says why, so the admin refunds the payment or adjusts the order.
  • The customer’s return for a payment that is paid while its order is not (yet) in a paid status no longer shows “transaction cancelled” with the cart kept: the cart is emptied and the order page is shown.
  • Currency minor units follow the complete ISO 4217 table (the currencies Tpay accepts were already correct: PLN).
  • Return while the payment is still pending: the saved cart rows (user_session_products) are deleted too, so a signed-in customer cannot get the cart back and pay twice.
  • Vendors cannot run the global queue (run_now is admin only).
  • Multi-Vendor: refunds are a privilege of the store administrator in marketplace owner mode; a vendor only refunds from an account of their own (vendor mode). The refund job and the refund-status trigger follow the same rule.
  • Vendor mode: the checkout visibility check reads the account of the vendor that receives the payment, not the storefront company.
  • Names, addresses, cities and descriptions are cut by characters, not bytes; address 255 and city 64 as in the reference; fields below the minimum length of 3 are left out.
  • Refunds: database lock per payment; the amount is reserved before the request; an unclear answer is reconciled with Tpay’s refund list and never repeated blindly (admin may retry after 2 minutes, status jobs after 15).
  • Return, notification and cron are serialised per payment; a return while pending no longer restores the cart (double payment).
  • A card refund made in the Tpay panel (chargeback) now sets the local status to refunded.
  • A notification with tr_paid different from tr_amount (payer fees) is accepted when tr_amount matches; the read-back checks the amount again.
  • The PLN amount is converted from the primary currency in one step.
  • Pending payments are re-read every 5 minutes for the first hour, then hourly, for 7 days.
  • PHP 7.4 is the declared minimum.
  • Initial release.
  • Tpay payment method: OAuth 2.0 access (/oauth/auth), POST /transactions with payer, callbacks and optional BLIK / bank group, redirect to the Tpay payment page.
  • Notification verification as documented: JWS signature (X-JWS-Signature, certificate chain of Tpay), md5sum and merchant id; answer TRUE; idempotent events.
  • An order is marked paid only after GET /transactions/{id} confirms amount, currency and reference; lost-notification recovery by the payer’s return and a recurring check.
  • Refunds from the order page (full as the documented empty request, partial with an amount) and by order status; reconciliation with the Tpay refund list after an unclear answer; refunds cancelled by Tpay give the amount back.
  • Per payment method choice of all methods, BLIK only (group 150) or one payment group.
  • Connection page with encrypted client ID / secret / security code, merchant ID, sandbox and live mode, connection test.
  • Job queue with retries and back-off, cron (command line and secret address), log viewer with CSV export.
  • Multi-Vendor: marketplace owner mode or one Tpay account per vendor.