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 Viva.com account (a demo account for testing, a live account for real payments) with a payment source for your shop and the Smart Checkout credentials (Viva app: Settings > API Access).
- A cron job on your server (see step 8).
Install the add-on
Section titled “Install the add-on”- Download the
kv_viva_payments-<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 Viva.com Smart Checkout in the list and make sure its status is Active.
- Enter your license key under Settings > License (Kavio Labs downloads) and click Check now.
Set up Viva
Section titled “Set up Viva”Do this in your Viva account first (demo account for testing, live account later):
- Payment source. Sales > Online payments > Websites/Apps > Add Website/App. Enter your domain, upload your logo and note the 4-digit Source Code. Leave the integration method on “Redirection/Native Checkout v2”.
- Success URL and Failure URL. On the same source enter the two addresses shown on the add-on’s Connection page (the Success URL ends in
payment_notification.return, the Failure URL inpayment_notification.cancel). Viva fills in the order code and the transaction id when it sends the customer back. - Smart Checkout credentials. Settings > API Access: the Client ID and Client Secret for Smart Checkout. For refunds and captures also note the Merchant ID and the API Key, and tick Allow refunds (and, for pre-authorizations, Allow recurring payments and pre-auth captures via API).
- Webhook. Settings > API Access > Webhooks > Create Webhook: enter the Notification URL from the Connection page and press Verify (the add-on answers Viva’s check). Create it for the events Transaction Payment Created, Transaction Failed, Transaction Reversal Created and Order Updated, and tick Active.
Connect the add-on
Section titled “Connect the add-on”- Open Orders > Viva payments and the Connection tab, or Add-ons > Manage add-ons > Viva.com Smart Checkout > Settings and click Connection.
- Choose Test mode and enter the test Client ID, Client secret, payment source code, Merchant ID and API key. Save and click Test connection: a green message means the credentials work.
- Open Administration > Payment methods, add a method, choose the processor Viva and activate it.
- Place a test order with a Viva test card (listed on the test cards page of the Viva developer portal) and check that the order becomes paid.
- Switch to Live mode and enter the live credentials only after a successful test; test again.
- Repeat the Viva set-up (steps 1 to 4 above) in your live Viva account.
- IRIS is not available in the Viva demo environment; test it with a small real payment after going live (you can cancel it in the Viva app).
- 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 Viva account in the vendor panel (Connection tab); each vendor then uses their own payment source.
Update
Section titled “Update”- Upload the new package the same way. Your settings, credentials and data are kept.
- 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. Payment records, refunds, the connection and the settings are kept by default so that you can still refund older orders after installing the add-on again; your Viva payment methods are linked again on reinstall. To delete them for good, install the add-on, tick Permanently delete all payment records on uninstall in its settings, and uninstall again.