Viva Wallet
Last updated
Last updated
In this section, we will see how to use My Azur API to make a payment through a Viva Wallet terminal. This tutorial is aimed at Point of Sales developers who want to quickly integrate a Viva Wallet terminal with their software.
Prerequisities:
You created a My Azur account and registered your company on My Azur platform;
Your company profile has been verified by Sita Software;
You have a verified account on vivawallet.com;
You have a physical Smart POS Viva Wallet terminal (Android based).
Go to and login with your Viva Wallet account.
Select the Blue Account (Merchant Account), the Purple one is the ISV account.
Now navigate using the sidebar to the menu Sales -> Physical Payments -> Card Terminals
Now click the green button New Card Terminal
on the top right. On the physical terminal launch the Viva Wallet app and click "Sign-in with activation code", the app will display a code that you'll put into the new card terminal form. After confirmation your new terminal will appear in the list above. The mobile app is now ready to start a new payment session.
Write down the Terminal ID (TID), we will need it in the next section.
Now navigate using the sidebar to the menu Settings->API Access
Write down the Merchant ID, we will need it in the next section.
In My Azur, each Company can have a set of Stores, and for each Store, one or more Machines can be defined. Each Machine will be associated with one or more Payment Terminals.
Let's start by adding a Store to our Company. In this tutorial we assume our company id = 13.
Let's add now a machine to our new store:
We now have everything we need to register the Viva Wallet Payment terminal to My Azur:
Let's break down the meaning of each fields passed in the payload:
payment_terminal_type_id = 1 indicate this is a Viva Wallet terminal
code: put here the Viva Wallet Terminal ID (TID) that you got on the previous section Activate your terminal on Viva Wallet.com
merchant_code: put here the Viva Wallet Merchant ID that you got on the previous section Activate your terminal on Viva Wallet.com
fee: you can specify a percentage fee that Sita Software will receive as percentage for each transaction, in this example 0.6%.
We can now create a new Payment session:
Let's break down the meaning of each fields passed in the payload:
type_id = 1 means this is a SALE, see Payment Session for more details about this field;
merchant_reference: this can be used to pass a reference, for example the internal document number used by your Point of Sale system;
amount: transaction amount in euro.
Viva Wallet terminal will wait for the payment:
It is recommended to wait about 4 seconds, after that you can start polling for the status of the payment session by sending a refresh request to My Azur API, that will fetch the status from the physical terminal and returns the current status as json:
As response you will get:
status_id = 3 means the transaction has been successful. To learn more about the meaning of each of the fields that you get in the response please refer to Payment Session
Congratulations: you completed your first transaction with the Viva Wallet Smart POS.