Creating & Sending Request
v1.0.0
Crafting request, powering transactions.
Creating & Sending Request
Crafting request, powering transactions.
To initiate a transaction, the POS application communicates with the Smart Terminal via the Smart Terminal SDK. This process includes constructing the transaction request, encoding it into a format compatible with the terminal, and transmitting it for processing. The SDK offers dedicated APIs to streamline this communication, handling request encoding, transmission, and response handling in a reliable and structured manner.
Sequence Flow
For more information about request creation and sending, please refer to Creating & Sending Request.
Process Flow
- POS creates a request object.
- The POS application calls encodeRequest() from the ICodecManager to convert the request object into a byte format, ensuring it can be properly interpreted and processed by the Terminal.
- The SDK encodes the request.
- POS calls sendRequest() from the IReader to send the encoded request.
- The SDK sends the encoded request to the Smart Terminal.
- The Smart Terminal processes the incoming request and responds to the SDK with a result indicating whether it was successfully received.
Successful The SDK returns a success response to the POS. Fails The SDK returns an error response to the POS.