Skip to content

Connect to Viva account

What information do you need from Viva (Merchant ID, API Key, Payment Source, Source Code) and what fields of plugin enter.

Applies to v2.0.2 Updated 18 Nov 2026 2 min read Step 4 of 13
v2.0.2 · WooCommerce 7.0+ · PHP 7.4+ Buy Support

The plugin is linked to Viva with the classic API details of your account and sends the customer to Viva payment page (redirect). For the connection you need an active Viva business account with online payments and SSL (https) in e-shop.

1. Merchant ID and API Key#

  1. Login to your Viva account.
  2. Open the API access section of the account (Settings → API Access).
  3. Copy Merchant ID and the API Key.
  4. In WordPress paste them into the fields Viva Merchant ID and Viva API Key.
    The fields “Viva Merchant ID” and “Viva API Key” in Viva Payments settings, supplemented with test values
    The fields "Viva Merchant ID" and "Viva API Key" (here with test values).

Caution: plugin no uses Smart Checkout's Client ID / Client Secret. If you created such data, you do not need it here.

2. Payment Source for the site#

On the plugin configuration page, above the fields, the exact URLs of your own site are displayed. With these, create Payment Source on Viva:

Viva Payments settings with the site's Success URL and Failure URL are flagged
Success URL and Failure URL are displayed at the top of the configuration page.
  1. In Viva open Sales → Online payments → Websites/Apps and press Add Website/App.
  2. The Protocol select https.
  3. The Domain name write the site domain without https:// and without / at the end (e.g. www.example.gr), as the site opens.
  4. The Integration method let go Redirection/Native Checkout v2.
  5. The Success URL write only the path after domain: wc-api/WC_Gateway_Viva/.
  6. The Failure URL write wc-api/WC_Gateway_Viva/?status=fail.
  7. Save and note code (Source Code) of the source.
  8. In WordPress write the code in the field Source Code and press Save Changes.
    The ‘Source Code’ field and the ‘Storage Changes’ button in Viva Payments settings markedly
    Write the code in the "Source Code" and save.

The plugin still writes the old route Sales → Payment Sources and shows the URLs whole, along with the domain. In Viva the domain enters only in Domain name.

Demo and live elements are different. What you put must belong to the same environment as the Viva Payments Host (Demo or Live).

Detailed fields will be found in the article Plugin Settings.

Did this article help you?
It's not solved?

Send a request; the plugin and the article are automatically completed.

Request support