Proper error handling when trying to perform an installation when the CCV SoftPOS app is not installed on the Android device.
Preparation
Make sure the CV SoftPOS app is not installed on your Android device
Execution
Start the POS app and go through the login/activation flow
Start the SoftPOS installation process from the POS app
POS Server checks the terminalInstallationStatus of the SoftPOS terminal by making an API request to CCV, a GET request at /softpos/terminal/{terminalId}
POS Server initiates an installation by making an API Request to CCV, a POST request to /softpos/terminal/{terminalId}/install
The POS app tries to start the CCV SoftPOS app with an Android Intent
POS app show message ‘CCV SoftPOS app is not installed’
optional: action to go to the Google Play Store
Install the CCV softPOS app
During validation, install the DEV version of CCV SoftPOS on your device instead of the PROD version from the Google Play Store
Reopen the POS app
Retry installation action in the POS app
POS Server initiates an installation by making an API Request to CCV, a POST request to /softpos/terminal/{terminalId}/install
CCV SoftPOS app opens automatically
Android Intent started to open the CCV SoftPOS app
Give necessary permissions in the CCV SoftPOS app
POS app comes back in the foreground
Finish installation
POS Server finilises the installation by making an API request to CCV, a POST request to /softpos/terminal/{terminalId}/install-completed
POS app is able to start a transaction/sale
Expected result
Clear indication that the CCV SoftPOS app is not installed at the first installation attempt
Optional: action to go to the Google Play Store to install the CCV SoftPOS app.
PS: the Google Play Store only has a production version of the CCV SoftPOS app. This will not work during the validation session, you need to install the DEV version during this test.