The library handles function calls asynchronously. The system returns results in the form of callbacks. All calls to the library are non-blocking.
Calls will return a result to say whether or not they were accepted. You provide a callback function in the call. If a call is accepted, you will receive a response in the user-provided callback function. You must write functions to handle the response.
Because the library processes asynchronously, and callbacks are required to get additional info from the attendant, a number of callback routines must be specified. The library returns these callbacks to the above calls whenever additional input is required.
These callbacks are asynchronous responses to a synchronous call:
- Library initialization callback
- Register POS callback
- Register PED callback
- Create tender callback
- Cancel or Refund callback
- Show Screen callback
- TxStoreReport callback
- Library exit callback
These callbacks are related to transactions, and will require actions to be performed:
These callbacks are related to transactions, and will require no actions to be performed: