Troubleshooting
“Test connection” fails
Section titled ““Test connection” fails”- Check the mode: test credentials only work in test mode and live credentials only in live mode (the demo and live Viva accounts have different credentials).
- Check for spaces before or after the Client ID and secret. Use the Smart Checkout credentials (Client ID and Client Secret), not the Merchant ID and API Key, in those two fields.
- “Merchant ID / API Key were refused”: the Smart Checkout login works but the Basic credentials do not; copy the Merchant ID and the API Key again from Settings > API Access in Viva. They are only needed for refunds and captures.
- The Log tab shows Viva’s answer (masked).
invalid_clientmeans the Client ID or secret is wrong;Unauthorizedmeans the token or the credentials were refused. - Your server must be able to reach
*.vivapayments.comover HTTPS (outgoing port 443) and have a current CA bundle.
Customers cannot start a payment
Section titled “Customers cannot start a payment”- “Viva does not take [currency]”: the order is in a currency that is not in the multicurrency list (EUR, GBP, RON, PLN, CZK, HUF, SEK, DKK) and the store has no euro currency with a rate. Add EUR under Settings > Currencies.
- A Viva error such as “Person does not support currency” means the Viva account is not set up for that currency; Viva activates multicurrency on request.
- “does not have a source with code … assigned or the source is disabled”: the payment source code on the Connection page is wrong or the source is switched off in Viva (the code is case-sensitive).
- Amounts below 0.30 are refused by Viva.
The order stays pending after the customer paid
Section titled “The order stays pending after the customer paid”- Set up the webhook in Viva (Settings > API Access > Webhooks) for Transaction Payment Created and press Verify; without it Viva’s transaction id can be missing when the customer closes the browser. The order tab then says “Viva reports this order as paid but the transaction id has not arrived”.
- Bank payments such as IRIS confirm within about 20 minutes.
- Open the order’s Viva payment tab and press Check status at Viva.
- Check that the cron job runs (Jobs tab).
The customer returns to the shop but sees the home page
Section titled “The customer returns to the shop but sees the home page”The browser that comes back is not the one that started the payment (another device or a lost session). The payment is still confirmed by Viva’s notification and the order e-mail follows. Nothing needs to be done.
The order has a note under “Last error”
Section titled “The order has a note under “Last error””- “Paid amount differs …”: Viva has a different amount than the order. The payment is recorded but the order was not moved to a paid status. Check it in the Viva app, then refund or edit the order.
- “Duplicate payment …”: another attempt of the same order was paid first. Refund this payment.
- “card dispute”: Viva reports a dispute (chargeback) on the payment. Check it in the Viva app before shipping.
Refunds fail
Section titled “Refunds fail”- “Merchant ID and API Key are needed”: add them on the Connection page.
- “PaymentsInvalidAmountForVoid”: the amount is higher than what is left of the payment.
- “PaymentsNonReversibleTransaction”: the payment was already refunded or cannot be refunded with its method.
- Tick Allow refunds in the Viva app (Settings > API Access).
- A refund row marked “To be confirmed” is a request whose answer was lost. While it waits, no other refund of that payment can start (the tab says so). Repeating the same amount first looks for the refund in the order’s transaction list at Viva and adopts it; if the list is not available the request is sent again with the same key, so it is never refunded twice. The Viva notification confirms it too.
Webhooks are rejected
Section titled “Webhooks are rejected”- The web address must be the one on the Connection page, reachable from the internet over HTTPS and not behind a login, a redirect or an IP filter (Viva warns that a redirect can stop its notifications from being delivered).
- If you ticked “Accept notifications only from Viva addresses” and your hosting puts a proxy or CDN in front of PHP, untick it: PHP then sees the proxy’s address, not Viva’s.
- The Viva “Verify” button needs a public address with TLS 1.2 or later and the Smart Checkout credentials saved for the same mode.
- Rejected events are listed in the log with the action “webhook”.
The cron address answers “Forbidden”
Section titled “The cron address answers “Forbidden””The key in the address is wrong. Copy the address again from the settings page.
Still stuck
Section titled “Still stuck”Contact us through https://cs-cart.kaviolabs.com with the add-on version, the CS-Cart version and the relevant log lines (secrets and personal data are masked automatically).