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.
- Foreground request originating from the client app to bring Card terminal app to foreground.
Using the foreground action, the user can bring to foreground Android POS App from a third-party app. For a typical foreground request, the client app must provide the following information:
This action does not send back a response.
The above information elements must create a URI call, i.e.
String reqStr = "vivapayclient://pay/v1" + "?merchantKey="MY_MERCHANT_KEY" + "&appId=com.example.myapp" + "&action=foreground" + "&callback=mycallbackscheme://result"; Intent payIntent = new Intent(Intent.ACTION_VIEW, Uri.parse( reqStr)); payIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); payIntent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); startActivity(payIntent);
If you have any questions about our solutions, or questions about how to integrate with our solutions, please refer to our Get Support page.