Running an action
Quote each switch as a whole, as above. The CLI exits with code
0 once the result file is written, whatever the
result: always read the file.
Actions
AuthorizeXml, ManualAuthorizeXml, VoidXml, RefundXml, CaptureXml, InquireXml, Signature, Test and
Version: the names rCharge used, kept so POS systems that ran rCharge work unchanged. Each calls the
API action of the same name without Xml (AuthorizeXml is a sale on the terminal, Authorize in the
API; see Earlier action names). Sales from a token or saved card (AuthorizeToken) go through the
API directly.
Example: a sale
The result file
The answer, as XML with one element per line:RespStat is A approved, C declined, E error (see Formats and Errors).
Lost answers
If a sale’s answer doesn’t come back (a network drop), the CLI looks the sale up by itsOrderId and writes the
approved result if it went through. Send a unique OrderId with every sale so this can work.
Interactive mode
Runmojo.exe with no -a= to type actions at a prompt, which is useful for testing. mojo --help lists the actions and
mojo --version prints the version.