The pos module in VivaISV groups the SDK’s ISV POS and Cloud Terminal helpers. It has three submodules: devices, transactions, and session.
Initialize the ISV client
The clientId and clientSecret are your ISV-level OAuth 2.0 credentials. POS methods use Bearer token authentication.
Module map
Search POS devices
Use searchDevices() to list devices for a merchant. Filter by device status or source code when needed.
Start a sale on a terminal
Use initSale() to initiate a POS card-reader sale request.
Refund a POS transaction
Use refundTransaction() with the original parent session ID.
Terminal actions
Use createAction() to schedule a terminal action, then getActionDatas() to retrieve its result.
Abort a session
Use vivaIsv.pos.session.abortSession() to abort an existing POS session.
Cloud Terminal token
When your ISV integration needs Cloud Terminal access, request a token with the parent VivaISV client:
getCloudTerminalAccessToken() does not cache the token. Reuse the returned token until expires_in elapses, then request a new one.