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.
- POS Activation request originating from the client app to trigger the POS activation.
- POS Activation response originating from the card terminal app to return the result of the POS activation request.
POS Activation request
With the POS Activation action the user can activate the POS. For a typical POS activation 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" + "&appId=com.example.myapp" + "&action=activatePos" + "&apikey=qwerty123456" + "&apiSecret=qwerty123456" + "&sourceID=qwerty123456" + "&pinCode=123142" + "&skipExternalDeviceSetup=true" + "&activateMoto=true" + "&activateQRCodes=true" + "&callback=mycallbackscheme://result")); payIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); payIntent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); startActivity(payIntent);
POS Activation response
After executing a POS activation, the Card Terminal App responds with a POS activation response result to indicate if the POS activation was successfull or not.
The result is received as a URI in the callback activity intent:
Uri result = getIntent().getData();
The table below summarizes the contents of an approved response.
A POS activation response result for an approved transaction looks as follows:
It is expected that POS activation will fail for various reasons. A POS activation response looks as follows:
If you have any questions about our solutions, or questions about how to integrate with our solutions, please refer to our Get Support page.