Installation and setup
Requirements
Section titled “Requirements”- CS-Cart and Multi-Vendor 4.17.2 or later.
- Administrator access to the store’s admin panel.
- A Tpay merchant account with API access. In the Tpay merchant panel create an Open API key (Integration > API > Open API Keys > Add new key) and copy the client ID and secret; the merchant ID and the security code are in the panel too (Notifications > Security). Test with a sandbox account (register.sandbox.tpay.com).
- A cron job on your server (see step 6).
Install the add-on
Section titled “Install the add-on”- Download the
kv_tpay-<version>.zippackage from your Kavio Labs or CS-Cart Marketplace account. - In the admin panel, open Add-ons > Manage add-ons.
- Click the gear button and choose Manual installation, then upload the archive.
- Find Tpay Payments in the list and make sure its status is Active.
- Enter your license key under Settings > License (Kavio Labs downloads) and click Check now.
Connect Tpay
Section titled “Connect Tpay”- Open Orders > Tpay (the add-on page) and the Connection tab, or Add-ons > Manage add-ons > Tpay Payments > Settings and click Connection.
- Choose Test mode and enter the sandbox client ID and secret, the security code and the merchant ID. Save and click Test connection: a green message (it also names the number of payment groups of the account) means the credentials work.
- The notification address is sent with every transaction (
callbacks.notification.url). In the Tpay panel (Settings > Notifications) the option Allow override must be on, or the same address entered there. It must be reachable from the internet over HTTPS (TLS 1.2), without redirects: Tpay does not follow 301 / 302. - Switch to Live mode and enter the live credentials only after a successful test; test again.
- Open Administration > Payment methods, add a method, choose the processor Tpay and activate it.
- Add the cron job from the settings page (Cron section), every minute is fine. Overlapping runs are prevented.
Multi-Vendor
Section titled “Multi-Vendor”By default the marketplace owner connects one account for all vendors (Marketplace owner mode on). Switch it off to let each vendor connect their own Tpay account in the vendor panel (Connection tab).
Update
Section titled “Update”- Upload the new package the same way, over the installed add-on (or use the Upgrade Center). Your settings, credentials and data are kept. Never use “the safe way” to upgrade from 1.0.1 or earlier: it runs the uninstall of the installed version, which still deletes the payment records.
- The add-on adds missing tables and settings by itself on the first request after the update.
See CHANGELOG for what changed in each version.
Uninstall
Section titled “Uninstall”Open Add-ons > Manage add-ons, click the add-on’s gear button and choose Uninstall.
- Uninstall keeps your payment records. The Tpay payments and refunds, queued refunds, the connection (stored credentials) and the settings (including the license key) stay in the database; only the add-on’s texts and the log are removed. The payment methods are disabled while the add-on is uninstalled. Installing the add-on again picks everything up: the payment methods are linked and enabled again as they were, and you can refund older orders from the order page as before.
- Delete everything: finish open refunds, export what you need from Tpay payments and the log, tick Permanently delete all payment records on uninstall in the add-on settings, save, and uninstall. If the add-on is already uninstalled, install it, tick the setting and uninstall again.
- Upgrading from 1.0.1 or earlier: upload the new zip over the installed add-on (or use the Upgrade Center), never “the safe way”: the uninstall step of the earlier version still deletes the payment records.