Milan / Paylink System Manual Issue 1.5 29 January 2020
CONFIDENTIAL
Not to be disclosed without prior written permission from Aardvark Embedded Solutions Ltd
Page 40 of 71
Processing
Credit Card Sequencing
Note that for each function CurrentState will normally return the transient state CR_BUSY before
becoming the state shown in the table.
The following table shows the normal sequence of states taken by CurrentState during a typical credit
card transaction:
Normally Entered Because:
Paylink discovers the cashless unit
Application Calls CashlessEnable or CashlessReset
System idle with e.g. MDB Level 3 "always Idle" processing
enabled.
Application Calls CashlessRequestCredit and the credit is
available.
Application Calls CashlessTakeCredit
Application Calls CashlessRequestCredit and the credit is
not available.
Application Calls CashlessCancel
The State "CR_AVAILABLE_IDLE" should in general be processed in exactly the same way as
"CR_AVAILABLE", the only difference being that it is the normal state of the unit and the value in
Ticket Sequencing
The following table shows the normal sequence of states taken by CurrentState during a typical ticket
transaction:
Normally Entered Because:
Paylink discovers the cashless unit or CashlessReset
Application calls SubmitTicket with a valid ticket reference
Application Calls CashlessRequestCredit for the value on
the ticket.
Application Calls CashlessTakeCredit
Application Calls CashlessRequestCredit and the credit is
not avaiable.
Application Calls CashlessCancel
Abnormal Processing
The above table represent the normal way that credit acquisition proceeds. Paylink however includes
facilities to handle abnormal situations. These situations use the fields: TotalAcquisitions and
TotalCredit.