Settlement
METHOD NAME settlement
Requires state
IDLE
and during process moves toSETTLEMENT
Description
Perform a settlement request to the host. Firstly, the terminal will update the parameters. Then, depending on the terminal configuration, it will pack the batch file and send all the transactions currently stored in the batch file. This settlement will have an id and batch number if any transaction is batched. This method returns once the request has been completed.
Parameters
object
-
host
string
REQUIRED
Currently, the value isSHVA
only -
reportFormat
ReportFormat
The format for the report. DefaultNARROW
(1) Show values-
ReportFormat
The format of a report sent back from Shva.
NARROW
Narrow paper printerMEDIUM
Medium sized paper printerWIDE
wide paper printerXML
XML format
-
END
-
-
resetGen
boolean
Reset all parameters generation revision. Defaultfalse
.
Result
object
when a request is valid and settlement starts processing.
-
result
Result
Possible results are:OK
,GENERAL_ERROR
(1) Show values-
Result
Result of new request. Each command has possible values in the field.
OK
Request is okGENERAL_ERROR
An error occurredCANCELED
Command was canceled either by the user (on-screen) or throughcancel
command,TIMEOUT
Operation was timed out.HOST_ERROR
Host returned an error regarding the request.SMART_READER_ERROR
An error occurred with the smart-readerSMART_CARD_ERROR
An error occurred with the smart card, or the reader couldn't communicate with the card.NONE_CREDIT_CARD
Industrial card was detected when performing a transaction.CARD_NOT_ALLOWED
When the detected card is not allowed to be processed
-
-
settlement
Settlement
Settlement payload
Errors
HostDisabled
MissingParams
IllegalState
ScreenNotReady