Android UI Demo
We offer you the Android Wirecard ePOS Demo for testing the SDK functionalities through UI.
Android Integration Tests
A variety of integration tests are provided in the examples
directory, as shown below:
Each of these is described briefly below.
AuthenticationTest.java
Provides sample code with a variety of functionality from the User Manager component that you can use for testing, including:
- get the current user
- get active cashiers
- change a password
- obtain the password policy
- PIN validation
BaseDemoTest.java
Provides a basic test of the demo application.
CashTests.java
Provides comprehensive code for testing the Cash Management feature, which is implemented in the Sales Manager and Cash Drawer components (the latter is also known as the Cash Register component). This includes:
- request user and cash register information
- shift management including opening a new shift
- shift reporting for any closed shifts
- pay in/out reporting for shifts
- execution of a cash sale
CatalogueTests.java
Demonstrates how to use a variety of functionality provided by the Inventory Manager to manage your catalogues, product categories and products, including:
- obtaining catalogue data
- identifying changes in the data
This includes obtaining image data that you can use to display a visual catalogue in your payment acceptance app.
InitializationTest.java
Demonstrates how the SDK can be initialized, including adding extensions for hardware. Also shows how to update credentials using the updateUserCredentials
method.
OtherTests.java
Miscellaneous tests including getting the server time and date.
PrinterTest.java
Enables you to test the Printer Manager component, including:
- detecting available printers
- printing a receipt
SalesTest.java
Illustrates basic usage of the Sales Manager and User Manager components, including a basic login to get the current user followed by a simple retrieval of sales using the getSales()
method.
StatsTest.java
Demonstrates how to use the Sales Manager component to obtain sales statistics, based on a time period that you define, including:
- maximum sale
- minimum sale
- sales turnover
TerminalTest.java
Helps you test features of the Terminal Manager component, including:
- discovery of terminals
- check for updates for the terminals
- carry out a card sale with a Spire terminal
UserTest.java
Shows how to use the User Manager component to:
- test credentials and get a user
- remind the user of their password
- help a user reset their password