End of Trip
The end of trip defines the step where the client application uploads the offline basket to the Self-Scanning Service. The Self-Scanning Service then performs several internal steps to process the transaction:
- Reload all master data and create a complete transaction
- Reload the business unit and customer information
- Recalculate the transaction (by calling PCE)
- Call the Fraud Detection Service to check whether a fraud check is necessary or not
- Save the transaction in the GK transaction pool
Once the end of trip is done, the Self-Scanning Service returns the updated transaction information to the clients. In addition, a suspension number, if returned, can later be used at the checkout station to retrieve the transaction from the transaction pool.
If something fails during the end of trip or the Fraud Detection Service requests additional checks (e.g. partial or full rescan), the Self-Scanning Service returns the operatorNecessary=true state. This means that the customer cannot proceed with mobile payment at this moment and needs to contact a store employee.