Send Logs request
An overview of the Send Logs request message for Android.
👉 The Send Logs request is used to send the logs of the Viva Terminal App to the Viva Wallet payment platform. This is particularly useful for troubleshooting purposes.
The client app must implement a mechanism to send messages using Android intents and URI calls and to receive the result in a custom URI callback.
- Send Logs request originating from the client app to trigger the application to upload logs
- Send Logs response originating from the card terminal app to return the result of a Send Logs request
Send Logs request
For a typical Send Logs request, the client app must provide the following information:
The above information elements must create a URI call, i.e.
Intent payIntent = new Intent(Intent.ACTION_VIEW, Uri.parse( "vivapayclient://pay/v1" + "?merchantKey=MY_MERCHANT_KEY" + "&appId=com.example.myapp" + "&action=sendLogs" + "&callback=mycallbackscheme://result")); payIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); payIntent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); startActivity(payIntent);
Send Logs response
After executing an abort transaction, the Card Terminal App responds with an abort response result to indicate if the abort request has been successful or not. It should be noted that the response from the abort action is actually the response of a failed transaction.
The result is received as a URI in the callback activity intent:
Uri result = getIntent().getData();
The table below summarizes the contents of a successful response:
A send logs response result looks as follows:
mycallbackscheme://result?status=success&message=Send Logs completed&action=sendLogs
Key to card terminal product categories
To understand the icons used on the above tables, see the below table.
|Product category||Terminal models||Icon|
|Android Card Terminals||Android Card Terminal Ethernet, Android Card Terminal 4G, Mobile Card Terminal Plus, Mobile Card Terminal.|
|Viva Terminal App for Android||Mini Card Reader, Pocket Card Terminal connected via Bluetooth or USB to the Viva Terminal App for Android.|
|Linux Card Terminals||Countertop, IM20, S900, S800, D200.|
If you would like to integrate with Viva Wallet, or if you have any queries about our products and solutions, please see our Contact & Support page to see how we can help!