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.
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#
- Login to your Viva account.
- Open the API access section of the account (Settings → API Access).
- Copy Merchant ID and the API Key.
- In WordPress paste them into the fields Viva Merchant ID and Viva API Key.

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:

- In Viva open Sales → Online payments → Websites/Apps and press Add Website/App.
- The Protocol select https.
- The Domain name write the site domain without
https://and without/at the end (e.g.www.example.gr), as the site opens. - The Integration method let go Redirection/Native Checkout v2.
- The Success URL write only the path after domain:
wc-api/WC_Gateway_Viva/. - The Failure URL write
wc-api/WC_Gateway_Viva/?status=fail. - Save and note code (Source Code) of the source.
- In WordPress write the code in the field Source Code and press Save Changes.

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.
Send a request; the plugin and the article are automatically completed.