An overview of the Reprint request message.
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.
- Reprint request originating from the client app to reprint a transaction receipt.
- Reprint response originating from the Card terminal app to return the result of a reprint request.
Using a Reprint request, the user can reprint a transactions receipt using the POS application from a third-party app. For a typical Reprint request, the client app must provide the following information:
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=print" + "&callback=mycallbackscheme://result" + "&command=reprint" + "&orderCode=1020304050607080"; 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);
After executing a Reprint request, the Card Terminal App responds with a response to indicate if the reprint request has been successful or not.
The result is received as a URI in the callback activity intent:
Uri result = getIntent().getData();
The table below summarises the contents of an approved response.
A reprint response result looks as follows:
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 Wallet POS app for Android||Mini Card Reader, Pocket Card Terminal connected via Bluetooth or USB to the Viva Wallet POS app for Android.|
|Linux Card Terminals||Countertop, IM20, S900, S800, D200.|
If you have any questions about our solutions, or questions about how to integrate with our solutions, please refer to our Get Support page.