# Viva Merchant configuration

Login to Viva merchant portal with your merchant account credentials.

&#x20;

**Webhook setup**

Click on “Settings” menu ==> “API Access”. Switch to “Webhook” tab and click on “Create Webhook”.

<figure><img src="/files/IzKzHLQL9OviZAKo82i5" alt=""><figcaption></figcaption></figure>

On the new popup window fill the fields as below:

URL: <https://api.sandbox.sensepass.com/api/transactions/viva/webhook/merchant/37xxxxx>

o   Please replace “37xxx” with your Viva merchant ID (can be taken from “General Tab” – Merchant ID).

o   Make sure this is the merchant ID you have set in the SensePass Parters Dashboard ==> Payment Method ==> Viva credentials.

o   In **production**, make sure to use the following URL <https://api.sensepass.com/api/transactions/viva/webhook/merchant/37xxxxx>

* Click “Verify”.&#x20;
* Check “Active”.
* Choose “Transaction Pos Ecr Session Completed” as the Event type.
* Click “Save”.

<figure><img src="/files/MhSDzhgcmwkGclQ2plnG" alt=""><figcaption></figcaption></figure>

**Apps setup**

Click on “Sales” menu ==> “Online Payments” ==> “Websites/Apps” menu and click on “Add Website/App”.

<figure><img src="/files/fZOnECindW8ktZlLqaSY" alt=""><figcaption></figcaption></figure>

On the new popup window fill the fields as below:

·      Code – sensepass

·      Source name – Sensepass

·      Protocol – Https

·      Domain Name - api.sandbox.sensepass.com (In **production**, make sure to use the following URL:   api.sensepass.com)

·      Logo – you can upload the merchant logo or keep it as is

·      Success URL – api/transactions/viva/callback/success

·      Failure URL - api/transactions/viva/callback/failure

·      Fill the below fields under “Advanced configuration”:

* Order Code – ocode
* Transaction ID – tid
* Language – lang

<figure><img src="/files/9rZic5FXsVf1FlOTIxwd" alt=""><figcaption></figcaption></figure>

&#x20;Check all below options:

* My website is available via a public domain name
* A privacy and data security policy exists and is referred to
* Terms & Conditions include delivery methods and return/cancellation policy
* Customer service contact details are available and easy to find on the website
* viva.com logo is displayed on payment screens


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sensepass.com/sensepay/how-to.../viva-merchant-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
