Send logs request

The client app must implement a mechanism to send messages using URL schemes and to receive the result in a custom URI callback.

Send logs request

Using send logs action user can trigger the application to upload the application logs.

Field Description Example
scheme The Viva's custom URL scheme, the host and the version. 'vivapayclient://pay/v1'
merchantKey The merchant's key. For successful validation, should not be empty.
Deprecated: you may pass any value
'SG23323424EXS3'
appId The client app ID. For successful validation, should not be empty. 'com.example.myapp'
action Cancel transaction. For successful validation, should not be empty. 'sendLogs'
callback The URI callback that will handle the result. For successful validation, should not be empty. 'interapp-callback’

The above information elements must create a URI call, i.e.

   // USE LIKE THIS
    func sendLogs() {
        let sendLogsUrlString = Constants.sendLogsUrlString //"vivapayclient://pay/v1?callback=interapp-callback&merchantKey=SG23323424EXS3&appId=com.vivawallet.InterAppDemo&action=sendLogs"
        (UIApplication.shared.delegate as? AppDelegate)?.performInterAppRequest(request: Constants.sendLogsUrlString)
    }

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. Also, we should state that the response from the abort action is actually a response of a failed transaction.

The result is received as a URI in the application(_:open:options:) method on the AppDelegate file.

The table below summarises the contents of a successful response.

Field Description Example
callback The URI callback that will handle the result. 'interapp-callback://result'
status The status of the request. 'success'
message A string containing information about the send logs status. 'Logs sent!'
action Send logs. 'sendLogs'

A send logs response result looks as follows:

"interapp-callback://result?status=success&message=Logs%2520sent!&action=sendLogs"

Get Support

If you have any questions about our solutions, or questions about how to integrate with our solutions, please refer to our Get Support page.